21954711 add SOLARIS_{11,12}_ONLY macros for FOSS evaluation project
authorJohn Beck <John.Beck@Oracle.COM>
Thu, 24 Sep 2015 14:08:43 -0700
changeset 4955 d9d2542d0224
parent 4954 282be77f1949
child 4956 a950d471ded6
21954711 add SOLARIS_{11,12}_ONLY macros for FOSS evaluation project
components/apache24/apache-24.p5m
make-rules/ips.mk
make-rules/shared-macros.mk
--- a/components/apache24/apache-24.p5m	Thu Sep 24 14:08:10 2015 -0700
+++ b/components/apache24/apache-24.p5m	Thu Sep 24 14:08:43 2015 -0700
@@ -242,7 +242,7 @@
 file path=usr/apache2/2.4/libexec/mod_proxy_connect.so
 file path=usr/apache2/2.4/libexec/mod_proxy_express.so
 file path=usr/apache2/2.4/libexec/mod_proxy_fcgi.so
-file path=usr/apache2/2.4/libexec/mod_proxy_fdpass.so
+$(SOLARIS_12_ONLY)file path=usr/apache2/2.4/libexec/mod_proxy_fdpass.so
 file path=usr/apache2/2.4/libexec/mod_proxy_ftp.so
 file path=usr/apache2/2.4/libexec/mod_proxy_html.so
 file path=usr/apache2/2.4/libexec/mod_proxy_http.so
--- a/make-rules/ips.mk	Thu Sep 24 14:08:10 2015 -0700
+++ b/make-rules/ips.mk	Thu Sep 24 14:08:43 2015 -0700
@@ -110,6 +110,8 @@
 PKG_MACROS +=		SOLARIS_VERSION=$(SOLARIS_VERSION)
 PKG_MACROS +=		OS_VERSION=$(OS_VERSION)
 PKG_MACROS +=		PKG_SOLARIS_VERSION=$(PKG_SOLARIS_VERSION)
+PKG_MACROS +=		SOLARIS_12_ONLY=$(SOLARIS_12_ONLY)
+PKG_MACROS +=		SOLARIS_11_ONLY=$(SOLARIS_11_ONLY)
 PKG_MACROS +=		HUMAN_VERSION=$(HUMAN_VERSION)
 PKG_MACROS +=		IPS_COMPONENT_VERSION=$(IPS_COMPONENT_VERSION)
 PKG_MACROS +=		COMPONENT_VERSION=$(COMPONENT_VERSION)
--- a/make-rules/shared-macros.mk	Thu Sep 24 14:08:10 2015 -0700
+++ b/make-rules/shared-macros.mk	Thu Sep 24 14:08:43 2015 -0700
@@ -98,6 +98,17 @@
 # Target OS version
 PKG_SOLARIS_VERSION ?= 5.12
 
+# We generally build the default branch on the latest release.  But for
+# the FOSS evaluation repo project, we build on the previous release.
+# Add macros to make that easier.
+ifeq ($(OS_VERSION),5.12)
+SOLARIS_12_ONLY =
+SOLARIS_11_ONLY =\#
+else
+SOLARIS_12_ONLY =\#
+SOLARIS_11_ONLY =
+endif
+
 include $(WS_MAKE_RULES)/ips-buildinfo.mk
 
 COMPILER ?=		studio