summaryrefslogtreecommitdiffstats
path: root/functions.sh.in
Commit message (Collapse)AuthorAgeFilesLines
* functions.sh: exclusively use apk --print-arch to detect build archTimo Teräs2020-02-071-8/+5
| | | | | | | | | | | | | | | | | | | | | 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"
* functions.sh: use apk --print-arch for CARCH if gcc is missingNatanael Copa2020-01-311-0/+7
|
* functions.sh: dont die if gcc is missingNatanael Copa2019-11-071-1/+1
| | | | | | abuild-sign does not use gcc. fixes #9974
* feat: add support for ccacheJoseph Benden2019-09-301-1/+3
| | | | | | | | | | | This introduces basic support for ccache, during packaging builds. If you are building many packages, it is recommended to manually increase the maximum size of the ccache cache. This is typically achieved by modifying `~/.ccache/ccache.conf` and adjusting the `max_size` setting. Signed-off-by: Joseph Benden <joe@benden.us>
* Allow for git remote url to end in aports.git, (i.e., allow SSH git remotes)Pete Dietl2019-09-301-2/+3
|
* functions: adjust armhf tripletLuca Weiss2019-04-291-1/+1
| | | | | From what I could find, it was changed to -musleabihf during the Alpine 3.6 release cycle but this function was never updated to reflect that
* Allow forcing of colored outputCarlo Landmeter2019-02-251-1/+3
| | | | | In some cases (ie drone ci) there is no tty available but its still possible to display colors in the webui.
* abuild: add triplet definitions for mips architecturesNils Andreas Svee2017-12-111-0/+8
|
* functions.sh: add armel tripletTimo Teräs2017-06-011-0/+1
|
* Fix false `set -e` terminationAndrej2017-04-271-0/+1
| | | | | `readconfig()` would return the result of `[ -z "$CBUILDROOT" ]` condition (line 123) and trigger shell termination in abuild. This also fixes building packages with a different $CTARGET and therefore cross-compile tools.
* functions: fix abuild -ANatanael Copa2017-03-201-1/+1
| | | | | | fix so abuild -A does not exit with error if gitbase fails this was introduced with the set -e
* functions.sh: set host compiler when cross-compilingTimo Teräs2017-02-241-0/+7
| | | | | We chose to use kernel style HOST* instead of the gcc's *_FOR_HOST.
* functions: fix cross-compile triplet for armhf architectureWilliam Pitcock2017-02-141-1/+1
|
* abuild: add missing triplet definitions for ppc and ppc64 architecturesWilliam Pitcock2017-01-241-0/+4
|
* abuild: Add support for ppc64leBreno Leitao2017-01-171-0/+2
| | | | | This is the initial patches that starts to add support for the ppc64le platform.
* functions: add s390x triplet and archTimo Teräs2016-08-011-0/+2
|
* abuild: use proper strip for each subpkg according to it's archTimo Teräs2016-08-011-0/+1
|
* abuild: improve cross compiling supportTimo Teräs2016-08-011-0/+39
|
* default to host gcc's machine for CBUILDTimo Teräs2016-07-231-1/+2
|
* add aarch64 architectureTimo Teräs2016-07-081-0/+1
|
* add armv7 build targetTimo Teräs2015-11-121-1/+2
|
* functions: rename eglibc to glibc and use 'unknown' for unknown libcNatanael Copa2014-06-201-2/+2
|
* functions: only enable colors on terminalsNatanael Copa2014-04-301-1/+1
| | | | We dont want wolors enabled when output is a file or a pipe
* fix permissionsNatanael Copa2014-03-311-0/+0
|
* functions: rename prog to programNatanael Copa2013-10-251-1/+1
|
* abuild: move various functions to the shared functions.shNatanael Copa2013-10-251-46/+85
| | | | | specifically, every script that reads/parses ./APKBUILD needs to set CARCH.
* functions: msg should always return successNatanael Copa2013-07-091-2/+6
| | | | Otherwise abuild-sign will end with error
* functions: also honor .abuild file at gitbaseDubiousjim2013-07-091-0/+2
| | | | | This permits introducing branch-specific modifications to abuild.conf settings. Any settings there override /etc/abuild.conf and $HOME/.abuild/abuild.conf.
* various: fancier readconfig, permit env overridesDubiousjim2013-07-091-14/+61
|
* apkgrel, functions: refactor calculation of APKBUILD's pathDubiousjim2013-07-091-0/+13
|
* various: s/echo/msg/, s/echo/error/, tweak error messagesDubiousjim2013-07-091-1/+1
|
* abump, functions: refactor (and verify) calculation of APKBUILD pathDubiousjim2013-07-091-0/+12
|
* various: move conf-loading and i/o to functionsDubiousjim2013-07-091-0/+76