diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-22 14:29:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-22 14:29:56 +0000 |
commit | 60de2a776a298ed92b8dd405bbe553ec33517df6 (patch) | |
tree | 564575ffb4acf0b8e59750cac1ee687d10ebd8d4 /abuild.in | |
parent | c20c6132306391271a30eadf6d3b429d31c8dae4 (diff) | |
download | abuild-60de2a776a298ed92b8dd405bbe553ec33517df6.tar.gz abuild-60de2a776a298ed92b8dd405bbe553ec33517df6.tar.bz2 abuild-60de2a776a298ed92b8dd405bbe553ec33517df6.tar.xz abuild-60de2a776a298ed92b8dd405bbe553ec33517df6.zip |
abuild: add support to mask out given CLIBC in options
For example, to mask out musl, add:
options="!libc_musl"
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1350,6 +1350,11 @@ check_arch() { list_has $CARCH $arch || [ "$arch" = "noarch" ] || [ "$arch" = "all" ] } +# return true if libc is not masked in options +check_libc() { + ! list_has "!libc_$CLIBC" $options +} + # check if package is up to date apk_up2date() { getpkgver || return 1 @@ -1397,6 +1402,7 @@ abuildindex_up2date() { up2date() { check_arch || return 0 + check_libc || return 0 apk_up2date && abuildindex_up2date } @@ -1705,6 +1711,7 @@ uninstalldeps (){ all() { if ! [ -n "$force" ]; then check_arch || return 0 + check_libc || return 0 fi if up2date && [ -z "$force" ]; then msg "Package is up to date" |