diff -r c35c8f1a6df1 -r 3d935de46ca9 components/php-5_2/php-sapi/Makefile --- a/components/php-5_2/php-sapi/Makefile Fri Oct 10 10:07:08 2014 -0700 +++ b/components/php-5_2/php-sapi/Makefile Thu Nov 20 15:41:15 2014 -0800 @@ -18,7 +18,7 @@ # # CDDL HEADER END # -# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. # include ../../../make-rules/shared-macros.mk @@ -85,6 +85,7 @@ CONFIGURE_ENV += $(CONF_ENVLINE) COMPONENT_POST_BUILD_ACTION = ( \ + set -e; \ cat $(BUILD_DIR_32)/scripts/phpize | \ sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \ sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ @@ -97,13 +98,15 @@ sed -e "s%^builddir=.*%builddir=$(BUILD_DIR_32)%" \ > phpize-proto ; \ chmod 755 phpize-proto ) ; \ - ( cat $(BUILD_DIR_32)/scripts/php-config | \ + ( set -e; \ + cat $(BUILD_DIR_32)/scripts/php-config | \ sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \ sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ sed -e "s%^include_dir=.*%include_dir=$(SOURCE_DIR)%" \ > php-config-proto ; \ chmod 755 php-config-proto ) ; \ - ( cat $(BUILD_DIR_32)/scripts/php-config | \ + ( set -e; \ + cat $(BUILD_DIR_32)/scripts/php-config | \ sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \ sed -e "s%^prefix=.*%prefix=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \ sed -e "s%^include_dir=.*%include_dir=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \ @@ -112,6 +115,7 @@ chmod 755 php-config-proto.zts ) ADD_APACHE2_MODULE_SUPPORT = ( \ + set -e; \ $(MKDIR) $(PROTO_DIR)/$(APACHE2_PHP); \ $(CP) $(COMPONENT_DIR)/../Solaris/php$(PHP_REL).conf \ $(PROTO_DIR)/$(APACHE2_PHP)/php$(PHP_REL).conf; \ @@ -126,6 +130,7 @@ # Ship a default php.ini to simplify ease of use. FIX_CONFIG_FILES = ( \ + set -e; \ cd $(SOURCE_DIR); \ $(GPATCH) -p1 -o php.ini-patched -i ../patches-other/php_ini.patch; \ $(GSED) -e "s@<>@$(PHP_REL)@g" < php.ini-patched > php.ini; \ @@ -133,11 +138,13 @@ ) INSTALL_DOCS = ( \ + set -e; \ $(MKDIR) $(PROTO_DIR)/$(DOCDIR); \ $(UNPACK) -r $(PROTO_DIR)/$(DOCDIR) $(COMPONENT_ARCHIVE_1); \ ) INSTALL_SAMPLES = ( \ + set -e; \ $(MKDIR) $(PROTO_DIR)/$(SCRIPTS_DIR); \ $(MKDIR) $(COMPONENT_DIR)/tmp; \ cd $(COMPONENT_DIR); \ @@ -158,6 +165,7 @@ # patch installation to support pear installation. PATCH_PEAR = ( \ + set -e; \ cd $(PROTO_DIR)/$(PHP_BIN); \ $(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_pecl.patch; \ $(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_php_config.patch; \ @@ -172,6 +180,7 @@ # Create symbolic links # Not strictly necessary but makes the proto area more correct. CREATE_SYMLINKS = ( \ + set -e; \ cd $(PROTO_DIR)/usr/php; \ $(RM) bin lib include modules doc man; \ $(SYMLINK) $(PHP_REL)/bin . ; \ @@ -189,6 +198,7 @@ ) COMPONENT_POST_INSTALL_ACTION = ( \ + set -e; \ $(ADD_APACHE2_MODULE_SUPPORT); \ $(FIX_CONFIG_FILES); \ $(FIX_CONFIG_FILES_2); \