[csw-devel] SF.net SVN: gar:[19582] csw/mgar/gar/v2/gar.pkg.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Nov 9 22:17:42 CET 2012


Revision: 19582
          http://gar.svn.sourceforge.net/gar/?rev=19582&view=rev
Author:   dmichelsen
Date:     2012-11-09 21:17:42 +0000 (Fri, 09 Nov 2012)
Log Message:
-----------
mGAR v2: Propagate PARALLELMFLAGS and PARALLELMODULATIONS to platforms

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.pkg.mk

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2012-11-09 20:09:04 UTC (rev 19581)
+++ csw/mgar/gar/v2/gar.pkg.mk	2012-11-09 21:17:42 UTC (rev 19582)
@@ -1029,13 +1029,17 @@
 # this will also make it visible to the build environment. Some software builds
 # use hard-coded non-GNU make which then errs out on -I (unknown option).
 
+_PROPAGATE_ENV += PARALLELMFLAGS
+_PROPAGATE_ENV += PARALLELMODULATIONS
+_PROPAGATE_ENV += PATH
+
 platforms: _PACKAGING_PLATFORMS=$(if $(ARCHALL),$(firstword $(PACKAGING_PLATFORMS)),$(PACKAGING_PLATFORMS))
 platforms:
 	$(foreach P,$(_PACKAGING_PLATFORMS),\
 		$(if $(PACKAGING_HOST_$P),\
 			$(if $(filter $(THISHOST),$(PACKAGING_HOST_$P)),\
 				$(MAKE) GAR_PLATFORM=$P _package && ,\
-				$(SSH) -t $(PACKAGING_HOST_$P) "PATH=$$PATH:/opt/csw/bin $(MAKE) -I $(GARDIR) -C $(CURDIR) GAR_PLATFORM=$P _package" && \
+				$(SSH) -t $(PACKAGING_HOST_$P) "$(foreach V,$(_PROPAGATE_ENV),$(if $($V),$V=$($V))) $(MAKE) -I $(GARDIR) -C $(CURDIR) GAR_PLATFORM=$P _package" && \
 			),\
 			$(error *** No host has been defined for platform $P)\
 		)\

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list