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