Makefile revision 5425
830N/A#
830N/A# CDDL HEADER START
830N/A#
830N/A# The contents of this file are subject to the terms of the
830N/A# Common Development and Distribution License (the "License").
830N/A# You may not use this file except in compliance with the License.
830N/A#
830N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
830N/A# or http://www.opensolaris.org/os/licensing.
830N/A# See the License for the specific language governing permissions
830N/A# and limitations under the License.
830N/A#
830N/A# When distributing Covered Code, include this CDDL HEADER in each
830N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
830N/A# If applicable, add the following below this CDDL HEADER, with the
830N/A# fields enclosed by brackets "[]" replaced with your own identifying
830N/A# information: Portions Copyright [yyyy] [name of copyright owner]
830N/A#
830N/A# CDDL HEADER END
830N/A#
5266N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
830N/A#
839N/A
5129N/A# the parfait build fails strangely (22276647)
5129N/Aexport PARFAIT_BUILD=no
5129N/A
830N/Ainclude ../../make-rules/shared-macros.mk
830N/A
1300N/ACOMPONENT_BUGDB= utility/ksh93
1258N/A
830N/ACOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
830N/A
830N/A# These are required if retrieving packages from the AT&T website.
5127N/AATT_USERNAME= "I accept www.opensource.org/licenses/eclipse"
830N/AATT_PASSWD= "."
830N/A
5127N/ACOMPONENT_TEST_MASTER = \
5127N/A $(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS).$(MACH).master
5127N/A
5127N/ACOMPONENT_TEST_TRANSFORMS += \
5127N/A '-e "s|\(^$(CC)\).*|\\$$(CC)|"' \
5127N/A '-e "s|\(temporary directory\).*|\1|"' \
5127N/A '-e "1,/package: test start/d"' \
5127N/A '-e "s|\(begins\).*|\1|"' \
5127N/A '-e "s|\(passed\).*\(\[\)|\1 \2|"' \
5127N/A '-e "s|\(failed\).*\(with exit code\)|\1 \2|"' \
5127N/A '-e "s|\(package: test done\).*|\1|"'\
5127N/A '-e "/usage: sleep/d"' \
5127N/A '-e "/invalid interval/d"' \
5127N/A '-e "s|\(took\).*\(expected\)|\1 x secs \2|"' \
5127N/A '-e "s|\(expected .* sec\).*\(got\).*|\1 \2 x secs|"' \
5127N/A '-e "s|^.*\(shcomp-.*\).*|\1|"'
5127N/A
5127N/A# Enable ASLR for this component
5127N/AASLR_MODE = $(ASLR_ENABLE)
5127N/A
830N/A# This flag controls the prep.mk behaviour to patch each archive individually
830N/APATCH_EACH_ARCHIVE = 1
830N/A
1244N/ACOMPONENT_NAME = ksh93
1244N/ACOMPONENT_SRC_NAME = INIT
5127N/ACOMPONENT_VERSION = 2012-08-01
1244N/ACOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
1244N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tgz
844N/ACOMPONENT_ARCHIVE_HASH = \
5127N/A sha256:c40cf57e9b2186271a9c362a560aa4a6e25ba911a8258ab931d2bbdbce44cfe5
5127N/ACOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE)
830N/A
5127N/ATPNO= 16530
2899N/A
830N/A# Patch only required if building ksh93 only and not ast-base
830N/A# package-pax-suid.patch
830N/A
830N/A# The ksh93 tarballs don't unpack cleanly into their own directories.
830N/AUNPACK_ARGS= -r $(COMPONENT_SRC)
830N/A
830N/ANUM_EXTRA_ARCHIVES= 1
830N/ACOMPONENT_NAME_1= ast-base
5127N/ACOMPONENT_VERSION_1= 2012-08-01
830N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
830N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
844N/ACOMPONENT_ARCHIVE_HASH_1= \
5127N/A sha256:3bd668dbd922790f1d24c78e3522ef4816501e9cf80abf3c480f554c74f4dbac
5127N/ACOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE_1)
854N/A
902N/A# Fixup HOSTTYPE to match uname output and bits
902N/AHOSTTYPE32=sol11.$(shell uname -p)
902N/AHOSTTYPE64=sol11.$(shell uname -p)-64
830N/A
830N/A# Make the unpack of the second archive relocate to a sensible place
830N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
830N/A
830N/A# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
830N/A# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
830N/A# nor fast, and causes the build to deadly embrace).
830N/ALD_B_DIRECT=
830N/A
830N/A# Disable nmake's probing of runpaths
830N/ACC.RUNPATH=
830N/ACC.LD.RUNPATH=
830N/ACC.LD.ORIGIN=
830N/ACC.DLL.ORIGIN=
830N/A
902N/A# Fix up the permissions of the compiler wrapper scripts from the patch
902N/ACOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
902N/A
830N/A# Prevent nmake from taking over the entire machine
902N/ANPROC=1
830N/A
830N/A# Set the built to build all targets, install all of ast-base, and test ksh93.
830N/ACOMPONENT_BUILD_TARGETS +=
830N/ACOMPONENT_INSTALL_PACKAGES += ast-base
902N/ACOMPONENT_TEST_TARGETS = ksh93
830N/A
830N/A# Unpack the ast-base tarball and copy it into the INIT tree,
830N/A# mark it as un-patched
830N/ACOMPONENT_POST_UNPACK_ACTION_1= \
830N/A $(RM) $(COMPONENT_SRC)/*patched_1; \
830N/A $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
830N/A
830N/A# Add the two tarball paths to the paths to be cleaned
830N/ACLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
830N/A $(COMPONENT_NAME).$(COMPONENT_VERSION)
830N/A
830N/A# ksh.kshrc needs to be installed with the ksh package
830N/ACOMPONENT_POST_INSTALL_ACTION= \
830N/A @$(MKDIR) -p $(PROTO_DIR)/etc/; \
830N/A $(CP) ksh.kshrc $(PROTO_DIR)/etc/
830N/A
990N/A# Packaging information.
990N/A# Note how the AT&T "version letter symbol date" code is translated
990N/A# into the IPS version number:
990N/A#
990N/A# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
990N/A#
990N/A# <letter representation> is the numeric place in the alphabet of the
990N/A# major version letter.
990N/A#
990N/A# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
990N/A# version code. The "+" represents a point/bugfix release and would appear as
990N/A# "93<version letter>+" in the human readable form.
990N/A#
990N/A# EXAMPLE:
990N/A# AT&T Version string: 93u+ 2011-02-08
990N/A# IPS Version number: 93.21.1.20110208
990N/A#
830N/AIPS_PKG_NAME= ksh93
5127N/AIPS_COMPONENT_VERSION= 93.21.1.20120801
5425N/AHUMAN_VERSION= 93u+ 2012-08-01
830N/A
5266N/A# Exposes a bug in ON.
5266N/Aifeq ($(BUILD_TYPE), evaluation)
5266N/ABUILD_32_and_64=
5266N/AINSTALL_32_and_64=
5266N/APUBLISH_STAMP=
5266N/Aendif
5266N/A
830N/A# common targets
830N/Abuild: $(BUILD_32_and_64)
830N/A
830N/Ainstall: $(INSTALL_32_and_64)
5266N/Aifneq ($(BUILD_TYPE), evaluation)
5127N/A (for binary in msgcvt msgcpp msgget msggen ksh shcomp alias; do \
5127N/A /usr/bin/elfedit -e 'dyn:delete RPATH' -e 'dyn:delete RUNPATH' \
5127N/A "$(PROTO_DIR)/$(MACH64)/bin/$$binary" ; \
5127N/A done )
5266N/Aendif
5127N/A
830N/Atest: $(TEST_32_and_64)
830N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
830N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
830N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/attpackagemake.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
3817N/A
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/library/security/crypto