[csw-devel] [PATCH] mGAR v2: Set CATALOG_RELEASE based on hostname
Maciej Blizinski
maciej at opencsw.org
Mon Mar 14 08:32:18 CET 2011
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>
---
gar/v2/gar.pkg.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gar/v2/gar.pkg.mk b/gar/v2/gar.pkg.mk
index d34308c..4c2a706 100644
--- a/gar/v2/gar.pkg.mk
+++ b/gar/v2/gar.pkg.mk
@@ -57,7 +57,10 @@ GARSYSTEMVERSION ?= $(shell $(SVN) propget svn:externals $(CURDIR) | perl -ane '
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))
--
1.7.3.2
More information about the devel
mailing list