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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Mar 16 09:19:14 CET 2011


Revision: 13832
          http://gar.svn.sourceforge.net/gar/?rev=13832&view=rev
Author:   wahwah
Date:     2011-03-16 08:19:14 +0000 (Wed, 16 Mar 2011)

Log Message:
-----------
mGAR v2: Set CATALOG_RELEASE based on hostname

Checkpkg needs to know, against which catalog release should given packages be
checked.  Since GAR invokes checkpkg, GAR needs to know that too.  On the
OpenCSW buildfarm, hosts are named after catalog releases, for example
'current9s' is a host with packages from 'current'.

This patch makes gar determine the checking catalog release based on the host
name.

A solution for off-buildfarm use has not been determined.

Signed-off-by: Maciej Blizinski <maciej at opencsw.org>

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

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2011-03-16 06:53:11 UTC (rev 13831)
+++ csw/mgar/gar/v2/gar.pkg.mk	2011-03-16 08:19:14 UTC (rev 13832)
@@ -57,8 +57,11 @@
 GARPKG_v1 = CSWgar-v1
 GARPKG_v2 = CSWgar-v2
 RUNTIME_DEP_PKGS_$(SRCPACKAGE) ?= $(or $(GARPKG_$(GARSYSTEMVERSION)),$(error GAR version $(GARSYSTEMVERSION) unknown))
-CATALOG_RELEASE ?= current
 
+# Set the catalog release based on hostname.  E.g. building on current9s will
+# set CATALOG_RELEASE to 'current'.
+CATALOG_RELEASE ?= $(shell hostname | gsed -e 's/[0-9].*$$//')
+
 define obsoleted_pkg
 CATALOGNAME_$(1) ?= $(call catalogname,$(1))
 # The length of the description has been limited to 100 characters,


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