[pacman-dev] [ABS] fails if INCLUDE env variable is set

Ivan Stojic ivstojic at inet.hr
Mon Oct 11 07:59:25 EDT 2010


ABS (Arch Build System 2.3.4.1) fails if INCLUDE environment variable is set:


[~]# abs
==> Starting ABS sync...
Unexpected remote arg: rsync.archlinux.org::abs/i686/
rsync error: syntax or usage error (code 1) at main.c(1204)
[sender=3.0.7]
[~]# echo $INCLUDE
/opt/intel/Compiler/11.1/073/ipp/ia32/include:/opt/intel/Compiler/11.1/073/mkl/include
[~]# INCLUDE="" abs
==> Starting ABS sync...
receiving file list ... done

sent 132 bytes  received 282939 bytes  43549.38 bytes/sec
total size is 13144299  speedup is 46.43


This is because it uses INCLUDE like this:
$SYNCCMD $SYNCARGS $INCLUDE $EXCLUDE ${SYNCSERVER}::abs/{${ARCH},any}/ $ABSROOT

which expands to:
rsync -mrtv --no-motd --delete-after --no-p --no-o --no-g
--delete-excluded
/opt/intel/Compiler/11.1/073/ipp/ia32/include:/opt/intel/Compiler/11.1/073/mkl/include
--filter=-_/testing/ --filter=-_/community-testing/ --filter=-_/staging/
--filter=-_/community-staging/ --filter=-_/gnome-unstable/
--filter=P_/local/ --filter=P_/README
rsync.archlinux.org::abs/{i686,any}/ /var/abs/


INCLUDE should be set to "" at the start of abs script, along with
EXCLUDE to prevent env variables from being used, patch is in
the attachment.
-------------- next part --------------
--- abs	2010-10-10 23:32:19.000000000 +0200
+++ abs-mod	2010-10-10 23:31:34.000000000 +0200
@@ -20,6 +20,12 @@
 #
 
 ##
+# Local variables
+##
+INCLUDE=""
+EXCLUDE=""
+
+##
 # Constants
 ##
 ABS_VERSION="2.3.4.1"


More information about the pacman-dev mailing list