Makefile revision 6071
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# The contents of this file are subject to the terms of the
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# Common Development and Distribution License (the "License").
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User# You may not use this file except in compliance with the License.
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# These are required if retrieving packages from the AT&T website.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserATT_USERNAME= "I accept www.opensource.org/licenses/eclipse"
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# This flag controls the prep.mk behaviour to patch each archive individually
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews sha256:c40cf57e9b2186271a9c362a560aa4a6e25ba911a8258ab931d2bbdbce44cfe5
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE)
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox User# Patch only required if building ksh93 only and not ast-base
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# The ksh93 tarballs don't unpack cleanly into their own directories.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews sha256:3bd668dbd922790f1d24c78e3522ef4816501e9cf80abf3c480f554c74f4dbac
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~astopen/download/tgz/$(COMPONENT_ARCHIVE_1)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User CR7175995.patch CR7186440_ksh93_disable_predictive_editing.patch \
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt# Fixup HOSTTYPE to match uname output and bits
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# Make the unpack of the second archive relocate to a sensible place
27739dd25026283c24645c8a1044b95ef9eb5ac6Tinderbox User# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# nor fast, and causes the build to deadly embrace).
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User# Disable nmake's probing of runpaths
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Fix up the permissions of the compiler wrapper scripts from the patch
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Prevent nmake from taking over the entire machine
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Set the built to build all targets, install all of ast-base, and test ksh93.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Unpack the ast-base tarball and copy it into the INIT tree,
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# mark it as un-patched
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Add the two tarball paths to the paths to be cleaned
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# ksh.kshrc needs to be installed with the ksh package
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Packaging information.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# Note how the AT&T "version letter symbol date" code is translated
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User# into the IPS version number:
fd972434c29fc1169d66594e4cc7697d33036c2bTinderbox User# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
37d8e0a4455876fe1e4cca511076cc2c5ab9eedeTinderbox User# <letter representation> is the numeric place in the alphabet of the
fd972434c29fc1169d66594e4cc7697d33036c2bTinderbox User# major version letter.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# version code. The "+" represents a point/bugfix release and would appear as
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# "93<version letter>+" in the human readable form.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# AT&T Version string: 93u+ 2011-02-08
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# IPS Version number: 93.21.1.20110208
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# common targets
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User (for binary in msgcvt msgcpp msgget msggen ksh shcomp alias; do \
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews /usr/bin/elfedit -e 'dyn:delete RPATH' -e 'dyn:delete RUNPATH' \