Timo Teräs c9d3df08b3 functions.sh: exclusively use apk --print-arch to detect build arch
Originally "gcc -dumpmachine" was used to detect build gcc triplet.
However, abuild does not depend on gcc or build-base (but installs
it if needed to build) so gcc might not be there. Additionally
abuild-sign can be used standalone, and does not have gcc dependency.

Using ${CC:-gcc} is problematic in cross-compile, as CC might be
already set for the cross-compiler and would result giving the target
host triplet.

It was deemed simplest to use "apk --print-arch" exclusively to detect
the builder host type, or specify CBUILD manually. If there is need
to use abuild/abuild-sign on non-Alpine hosts withou apk, we can
later add fallback that uses "uname -m" to detect the architecture
and guess Alpine CBUILD from it.

Fixes #9974
Fixes: 5adf47c1 "functions.sh: use apk --print-arch for CARCH if gcc is missing"
Fixes: 95cd15c0 "functions.sh: dont die if gcc is missing"
2020-02-07 23:14:23 +02:00
2019-11-07 11:32:37 +00:00
2016-05-20 10:19:08 +02:00
2019-09-30 12:08:17 +00:00
2020-01-30 10:41:06 +00:00
2019-11-07 11:42:23 +00:00
2019-11-07 11:42:23 +00:00
2016-08-12 15:26:06 +02:00
2016-08-12 15:26:06 +02:00
2019-12-19 15:17:57 +00:00
2018-10-03 08:24:18 +00:00
2016-06-13 12:34:05 +00:00
Description
Build script to build Alpine packages (forked to remove busybox dependency)
1.2 MiB
Languages
Shell 61.4%
Roff 12%
C 10.4%
Perl 9.4%
Ruby 4.9%
Other 1.9%