Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=92a18e59158e47c818df09f2605248f8a731c17e
commit 92a18e59158e47c818df09f2605248f8a731c17e Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sun May 4 03:51:12 2008 +0200 makepkg: handle the case when the user is not in the ccache group - chrooted build is still ok, but raise a warning - host build would be broken so error out with a userful error message diff --git a/scripts/makepkg b/scripts/makepkg index 8636c92..56e2430 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -1483,6 +1483,16 @@ if [ "$NOCCACHE" = "0" -a -d /usr/lib/ccache/bin ]; then export CCACHE_DIR=/var/cache/ccache/$pkgname export CCACHE_NOLINK=1 export CCACHE_UMASK=002 + if [ ! -w /var/cache/ccache/ ]; then + if [ "$INCHROOT" != "1" ]; then + error "You installed ccache but you are not in the ccache group." + plain "Either add yourserlf to the ccache group or" + plain "use the -B option to disable ccache support." + exit 1 + else + warning "The fst user is not in the ccache group, ccache will be disabled." + fi + fi fi # build _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
