Makefile revision 1273
96fc773162e93e5b85686ab152f11baf4498d868rbb#
8a76b3f3c93d39930182afa227d258218f80926brbb# CDDL HEADER START
78f2608a1583b3cb409e12be701392ad1a929653rbb#
78f2608a1583b3cb409e12be701392ad1a929653rbb# The contents of this file are subject to the terms of the
78f2608a1583b3cb409e12be701392ad1a929653rbb# Common Development and Distribution License (the "License").
78f2608a1583b3cb409e12be701392ad1a929653rbb# You may not use this file except in compliance with the License.
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb#
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb# or http://www.opensolaris.org/os/licensing.
c5c3b5e33fca6425dc716e1dc51c10733d9b6bc3rbb# See the License for the specific language governing permissions
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# and limitations under the License.
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb#
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# When distributing Covered Code, include this CDDL HEADER in each
be7b08f10dc6b0be088c8b41009d89ea49ad4acarbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a0c3663b66c9af764267ac3c4e140e659598474ben# If applicable, add the following below this CDDL HEADER, with the
2a0c3663b66c9af764267ac3c4e140e659598474ben# fields enclosed by brackets "[]" replaced with your own identifying
2a0c3663b66c9af764267ac3c4e140e659598474ben# information: Portions Copyright [yyyy] [name of copyright owner]
2a0c3663b66c9af764267ac3c4e140e659598474ben#
8a76b3f3c93d39930182afa227d258218f80926brbb# CDDL HEADER END
8a76b3f3c93d39930182afa227d258218f80926brbb#
8a76b3f3c93d39930182afa227d258218f80926brbb# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
8a76b3f3c93d39930182afa227d258218f80926brbb#
11d400383ba9f941cc49e1a8da562fd172d3d7c5stoddardPARFAIT_BUILD=no
11d400383ba9f941cc49e1a8da562fd172d3d7c5stoddard
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbbinclude ../../make-rules/shared-macros.mk
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbb
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbbCOMPONENT_BUGDB= utility/ksh93
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbb
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbbCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
528e2a7d7cf6b8879291b59dd5afd8f6c7ae1b6brbb
1a3161b56ebbbd036730d5372d4800cc495db212rbb# These are required if retrieving packages from the AT&T website.
1a3161b56ebbbd036730d5372d4800cc495db212rbbATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
1a3161b56ebbbd036730d5372d4800cc495db212rbbATT_PASSWD= "."
1a3161b56ebbbd036730d5372d4800cc495db212rbb
1a3161b56ebbbd036730d5372d4800cc495db212rbb# This flag controls the prep.mk behaviour to patch each archive individually
2d87d8f191175a0683f430d790d81a5604b74ec6rbbPATCH_EACH_ARCHIVE = 1
2d87d8f191175a0683f430d790d81a5604b74ec6rbb
2d87d8f191175a0683f430d790d81a5604b74ec6rbbCOMPONENT_NAME = ksh93
2d87d8f191175a0683f430d790d81a5604b74ec6rbbCOMPONENT_SRC_NAME = INIT
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbbCOMPONENT_VERSION = 2011-02-08
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbbCOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbbCOMPONENT_ARCHIVE = $(COMPONENT_SRC).tgz
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbbCOMPONENT_ARCHIVE_HASH = \
6bcee6b60a2fc4c96328af30e79bad4927ff30f3rbb sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbbCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbbCOMPONENT_PATCHES =
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbb
1e8d4cfede0bad3a1a33e3b2eef0ba6754746f72rbb# Patch only required if building ksh93 only and not ast-base
5600cf225f3be88ed9b5385a0737ccde7d0775bbrbb# package-pax-suid.patch
5600cf225f3be88ed9b5385a0737ccde7d0775bbrbb
5600cf225f3be88ed9b5385a0737ccde7d0775bbrbb# The ksh93 tarballs don't unpack cleanly into their own directories.
5600cf225f3be88ed9b5385a0737ccde7d0775bbrbbUNPACK_ARGS= -r $(COMPONENT_SRC)
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbb
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbNUM_EXTRA_ARCHIVES= 1
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_NAME_1= ast-base
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_VERSION_1= 2011-02-08
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_ARCHIVE_HASH_1= \
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbb sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbbCOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
84b76faff9e8fa4b16b587b95d3930e36fe3c405rbb solaris_alias.patch \
bcef91d7068817e2e56854f5c5b22b6eb4663a85rbb CR6919590.patch CR7033181.patch \
bcef91d7068817e2e56854f5c5b22b6eb4663a85rbb CR7071431.patch CR7036535.patch \
bcef91d7068817e2e56854f5c5b22b6eb4663a85rbb CRXXX_Error_Catalog.patch CR7025778.patch \
445997e06464e7625c7f0e22917f8f2d9876cfffrbb CR7065478.patch CR7026179.patch \
445997e06464e7625c7f0e22917f8f2d9876cfffrbb CR7065900.patch CR7110983.patch \
445997e06464e7625c7f0e22917f8f2d9876cfffrbb CR7105086.patch multi_lang_arith.patch \
445997e06464e7625c7f0e22917f8f2d9876cfffrbb CR7057565.patch CR7046434.patch \
445997e06464e7625c7f0e22917f8f2d9876cfffrbb CR7032821.patch CR7009897.patch \
a2c240fe8836beba2330b03d55569d9e31bb3358trawick CR6964621.patch CR7032068.patch \
a2c240fe8836beba2330b03d55569d9e31bb3358trawick CR7061011.patch CR6934836.patch \
a2c240fe8836beba2330b03d55569d9e31bb3358trawick CR7089799.patch CR6917338.patch \
a2c240fe8836beba2330b03d55569d9e31bb3358trawick CR7019368.patch CR6729252.patch \
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb MAP_TYPE_64_Bits.patch CR7167466.patch \
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb CR7168611.patch CR7178717.patch \
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb CR7175995.patch
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddard# Fixup HOSTTYPE to match uname output and bits
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddardHOSTTYPE32=sol11.$(shell uname -p)
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddardHOSTTYPE64=sol11.$(shell uname -p)-64
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanf
3568de757bac0b47256647504c186d17ca272f85rbb# Make the unpack of the second archive relocate to a sensible place
3568de757bac0b47256647504c186d17ca272f85rbbUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
3568de757bac0b47256647504c186d17ca272f85rbb
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
98f3c8c547839251cb43e9f917114cc8b16ced9efanf# nor fast, and causes the build to deadly embrace).
1a411968bb62cc88c3cbf14a53caf6587c224259fanfLD_B_DIRECT=
1a411968bb62cc88c3cbf14a53caf6587c224259fanf
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanf# Disable nmake's probing of runpaths
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanfCC.RUNPATH=
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanfCC.LD.RUNPATH=
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanfCC.LD.ORIGIN=
60777c94cb33363389d4848524c0809c235ba5e5rbbCC.DLL.ORIGIN=
6f06d481dafc90f1b553f1d2828bcea50a039854fielding
b5140df3124b186e4a977812fd9828d1e295c080wrowe# Fix up the permissions of the compiler wrapper scripts from the patch
b5140df3124b186e4a977812fd9828d1e295c080wroweCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
b5140df3124b186e4a977812fd9828d1e295c080wrowe
b5140df3124b186e4a977812fd9828d1e295c080wrowe# Prevent nmake from taking over the entire machine
b5140df3124b186e4a977812fd9828d1e295c080wroweNPROC=1
c9dafaafc2650994e47f88f5239f643c97ec4cb3wrowe
c9dafaafc2650994e47f88f5239f643c97ec4cb3wrowe# Set the built to build all targets, install all of ast-base, and test ksh93.
c9dafaafc2650994e47f88f5239f643c97ec4cb3wroweCOMPONENT_BUILD_TARGETS +=
c9dafaafc2650994e47f88f5239f643c97ec4cb3wroweCOMPONENT_INSTALL_PACKAGES += ast-base
c9dafaafc2650994e47f88f5239f643c97ec4cb3wroweCOMPONENT_TEST_TARGETS = ksh93
41aef8943f349ee0b5b510dd436301b4c33c628cwrowe
41aef8943f349ee0b5b510dd436301b4c33c628cwrowe# Unpack the ast-base tarball and copy it into the INIT tree,
bb360f1d9bdce4f55f290de07a711db006b25957wrowe# mark it as un-patched
5727f68f33838686d447f55a100309e54efb20f8fieldingCOMPONENT_POST_UNPACK_ACTION_1= \
5727f68f33838686d447f55a100309e54efb20f8fielding $(RM) $(COMPONENT_SRC)/*patched_1; \
5727f68f33838686d447f55a100309e54efb20f8fielding $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
5727f68f33838686d447f55a100309e54efb20f8fielding
5727f68f33838686d447f55a100309e54efb20f8fielding# Add the two tarball paths to the paths to be cleaned
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbbCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbb $(COMPONENT_NAME).$(COMPONENT_VERSION)
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbb
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbb# ksh.kshrc needs to be installed with the ksh package
d28c69d8e5f2e88e653d61436bb6fa6302a212b4rbbCOMPONENT_POST_INSTALL_ACTION= \
b974a8fc59a9d6193305dcd8690992a411d88232rbb @$(MKDIR) -p $(PROTO_DIR)/etc/; \
b974a8fc59a9d6193305dcd8690992a411d88232rbb $(CP) ksh.kshrc $(PROTO_DIR)/etc/
b974a8fc59a9d6193305dcd8690992a411d88232rbb
b974a8fc59a9d6193305dcd8690992a411d88232rbb# Packaging information.
b974a8fc59a9d6193305dcd8690992a411d88232rbb# Note how the AT&T "version letter symbol date" code is translated
fa996ff928f6170678c8789c8073c368f56d770arbb# into the IPS version number:
fa996ff928f6170678c8789c8073c368f56d770arbb#
fa996ff928f6170678c8789c8073c368f56d770arbb# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
fa996ff928f6170678c8789c8073c368f56d770arbb#
fa996ff928f6170678c8789c8073c368f56d770arbb# <letter representation> is the numeric place in the alphabet of the
fa996ff928f6170678c8789c8073c368f56d770arbb# major version letter.
a1bbc66131c63e718e3f73fc11a348f7552d7947rbb#
a1bbc66131c63e718e3f73fc11a348f7552d7947rbb# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
a1bbc66131c63e718e3f73fc11a348f7552d7947rbb# version code. The "+" represents a point/bugfix release and would appear as
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# "93<version letter>+" in the human readable form.
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe#
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# EXAMPLE:
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# AT&T Version string: 93u+ 2011-02-08
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe# IPS Version number: 93.21.1.20110208
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe#
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464abenIPS_PKG_NAME= ksh93
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464abenIPS_COMPONENT_VERSION= 93.21.0.20110208
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464abenIPS_HUMAN_VERSION= "93u 2011-02-08"
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464aben
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464aben# common targets
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbbbuild: $(BUILD_32_and_64)
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbbinstall: $(INSTALL_32_and_64)
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbbtest: $(TEST_32_and_64)
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbbBUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbbPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
cab10c98980b42562a7850410cecd37798e170ecrbb
cab10c98980b42562a7850410cecd37798e170ecrbbinclude ../../make-rules/prep.mk
cab10c98980b42562a7850410cecd37798e170ecrbbinclude ../../make-rules/attpackagemake.mk
cab10c98980b42562a7850410cecd37798e170ecrbbinclude ../../make-rules/ips.mk
cab10c98980b42562a7850410cecd37798e170ecrbbinclude ../../make-rules/depend.mk
71715c646d5231de578431f8961e711764b899d3fanf