Makefile revision 5680
276e28f813ffef042d5a6e9f3373ef4e2ad37996Mark Andrews# CDDL HEADER START
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# The contents of this file are subject to the terms of the
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Common Development and Distribution License (the "License").
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# You may not use this file except in compliance with the License.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman# See the License for the specific language governing permissions
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# and limitations under the License.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# If applicable, add the following below this CDDL HEADER, with the
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
bcf15a19ae0efa72a22cdfb50666a3c6ce39eb9fTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# CDDL HEADER END
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews sha256:97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
09d72af3e9961c210d7baa6179165b6cd81e8dd0Tinderbox User# Prevent gzip assembly code usage; which segv's with Studio 12.3 and 12.4.
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Needed for "gmake test" to work successfully.
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# If SHELLOPTS is exported (as it is by the userland makefiles),
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# then all shell options get exported to child invocations of bash,
fc74b733bf679e1b3fb1599e32d445dffe325208Tinderbox User# which results in test failures due to nounset and xtrace being
fc74b733bf679e1b3fb1599e32d445dffe325208Tinderbox User# set unexpectedly, and errors such as "$1: unbound variable" and
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# diffs failing due to script tracing in output files.
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if)
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# Fix references to Solaris renamed programs (z*->gz*) in man pages, info
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# pages and in wrapper scripts.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews $(GSED) -f $(COMPONENT_DIR)/renaming.sed $$file.tmp > $$file ; \
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# Rename installed programs and man pages in proto dir (z*->gz*).
82d13321f4dcc79a9aec992c7a1c4aaff8983adaAutomatic Updater (for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# Provide missing man pages.
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsGZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzegrep.1
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsGZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzfgrep.1
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# Get the binaries to test from the component build area.
67adc03ef81fb610f8df093b17f55275ee816754Evan HuntCOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:$(USRBINDIR)
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Use the installed gzip binary from /usr/bin.
67adc03ef81fb610f8df093b17f55275ee816754Evan HuntCOMPONENT_SYSTEM_TEST_ENV += PATH=/usr/xpg4/bin:$(USRBINDIR)
f2016fcecf098726740507a5522dca04c49aeb82Tinderbox User '-e "/PASS/p" ' \
984c2e9f76e66e86f7d9aca99a774836ddf196eaAutomatic Updater '-e "/FAIL/p" '