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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sun Aug 15 16:55:05 CEST 2010


Revision: 10746
          http://gar.svn.sourceforge.net/gar/?rev=10746&view=rev
Author:   dmichelsen
Date:     2010-08-15 14:55:05 +0000 (Sun, 15 Aug 2010)

Log Message:
-----------
mGAR v2: Fix checkpkg_overrides for multiple package generation

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

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2010-08-15 12:38:42 UTC (rev 10745)
+++ csw/mgar/gar/v2/gar.pkg.mk	2010-08-15 14:55:05 UTC (rev 10746)
@@ -366,10 +366,10 @@
 		$$F[1] = "cswalternatives" if( $$F[2] =~ m,^/opt/csw/share/alternatives/[^/]+$$, );\
                 print join(" ", at F),"\n";'
 
-_PROTOTYPE_MODIFIERS += | ( cat; \
-		$(foreach SPEC,$(_PKG_SPECS),if test -f "$(WORKDIR_GLOBAL)/checkpkg_override.$(SPEC)";then echo "i checkpkg_override=checkpkg_override.$(SPEC)"; fi;))
+define checkpkg_override_filter
+  | ( cat; if test -f "$(WORKDIR_GLOBAL)/checkpkg_override.$(1)";then echo "i checkpkg_override=checkpkg_override.$(1)"; fi)
+endef
 
-
 # This file contains all installed pathes. This can be used as a starting point
 # for distributing files to individual packages.
 PROTOTYPE = $(WORKDIR)/prototype
@@ -401,13 +401,11 @@
 				-I $(call licensedir,$*)/license \
 				-I /etc/opt/csw/pkg/$*/cswmigrateconf \
 		      		-I /opt/csw/share/alternatives/$(call catalogname,$*) \
-				-I /opt/csw/share/checkpkg/overrides/$(call catalogname,$*) \
 		      )\
 		      $(foreach S,$(filter-out $*,$(SPKG_SPECS)),\
 				-X $(call licensedir,$S)/license \
 				-X /etc/opt/csw/pkg/$S/cswmigrateconf \
 				-X /opt/csw/share/alternatives/$(call catalogname,$S) \
-				-X /opt/csw/share/checkpkg/overrides/$(call catalogname,$S) \
 		      ) \
 		      $(foreach I,$(EXTRA_PKGFILES_INCLUDED) $(EXTRA_PKGFILES_INCLUDED_$*),-i '$I') \
 		      $(foreach X,$(EXTRA_PKGFILES_EXCLUDED) $(EXTRA_PKGFILES_EXCLUDED_$*),-x '$X') \
@@ -418,9 +416,9 @@
 	               ) \
 	              <$(PROTOTYPE); \
 	   if [ -n "$(EXTRA_PKGFILES_$*)" ]; then echo "$(EXTRA_PKGFILES_$*)"; fi \
-	  ) $(_CSWCLASS_FILTER) $(_PROTOTYPE_MODIFIERS) $(_PROTOTYPE_FILTER_$*) >$@; \
+	  ) $(call checkpkg_override_filter,$*) $(_CSWCLASS_FILTER) $(_PROTOTYPE_MODIFIERS) $(_PROTOTYPE_FILTER_$*) >$@; \
 	else \
-	  cat $(PROTOTYPE) $(_CSWCLASS_FILTER) $(_PROTOTYPE_MODIFIERS) $(_PROTOTYPE_FILTER_$*) >$@; \
+	  cat $(PROTOTYPE) $(call checkpkg_override_filter,$*) $(_CSWCLASS_FILTER) $(_PROTOTYPE_MODIFIERS) $(_PROTOTYPE_FILTER_$*) >$@; \
 	fi
 
 $(WORKDIR)/%.prototype-$(GARCH): | $(WORKDIR)/%.prototype


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