cookutils rev 368
Handle CROSS_BUGS (will move the few CROSS var to it so all cross configs are prefixed with CROSS_ in cook)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 10 04:37:24 2012 +0200 (2012-05-10) |
parents | c29544de5093 |
children | ae512633e579 |
files | cook |
line diff
1.1 --- a/cook Thu May 10 04:28:16 2012 +0200 1.2 +++ b/cook Thu May 10 04:37:24 2012 +0200 1.3 @@ -141,7 +141,7 @@ 1.4 # Executed before sourcing a receipt. 1.5 unset_receipt() { 1.6 unset DEPENDS BUILD_DEPENDS WANTED EXTRAVERSION WGET_URL PROVIDE TARBALL 1.7 - unset HOST_ARCH CROSS_BUG 1.8 + unset HOST_ARCH CROSS_BUGS 1.9 } 1.10 1.11 # Paths used in receipt and by cook itself. 1.12 @@ -426,9 +426,11 @@ 1.13 separator 1.14 set_paths 1.15 1.16 - # Handle cross compilation 1.17 + # Handle cross compilation. 1.18 if [ "$HOST_ARCH" ] && [ ! $(echo "$HOST_ARCH" | fgrep $ARCH) ]; then 1.19 - echo "ERROR: This package dont build on: $ARCH" && exit 1 1.20 + echo "ERROR: This package dont cook or is not include in: $ARCH" 1.21 + [ "$CROSS_BUGS" ] && echo "Bug: $CROSS_BUGS" 1.22 + exit 1 1.23 fi 1.24 case "$ARCH" in 1.25 arm|x86_64)