Commit 49c7878
authored
Name the softfp world so makepkg can build in it (#184)
makepkg turns CARCH into shell variable names -- depends_$CARCH,
provides_$CARCH and five more -- so a world name with a hyphen in it is
not a name makepkg can use. With CARCH=vita-softfp, bash reads
${provides_vita-softfp[@]} as ${provides_vita-...}: the variable
provides_vita with the default value 'softfp[@]'. It appends that
literal string to all seven arrays, and then the matching unset fails
because the identifier is invalid and makepkg aborts.
The abort is what saved us. Without it every softfp package would have
shipped with a fabricated depends=softfp[@].
pacman assumes architectures are identifiers -- x86_64, aarch64, armv7h
-- and never says so, because nobody had used a hyphen. So the world is
vita_softfp now, and Profiles.cmake refuses any name that would break
the same way.1 parent e873ab7 commit 49c7878
5 files changed
Lines changed: 17 additions & 7 deletions
File tree
- cmake
- scripts
- tests
- ci
- protocol
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments