83N/A#
83N/A# CDDL HEADER START
83N/A#
83N/A# The contents of this file are subject to the terms of the
83N/A# Common Development and Distribution License (the "License").
83N/A# You may not use this file except in compliance with the License.
83N/A#
83N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83N/A# or http://www.opensolaris.org/os/licensing.
83N/A# See the License for the specific language governing permissions
83N/A# and limitations under the License.
83N/A#
83N/A# When distributing Covered Code, include this CDDL HEADER in each
83N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
83N/A# If applicable, add the following below this CDDL HEADER, with the
83N/A# fields enclosed by brackets "[]" replaced with your own identifying
83N/A# information: Portions Copyright [yyyy] [name of copyright owner]
83N/A#
83N/A# CDDL HEADER END
83N/A#
5680N/A
83N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
83N/Ainclude ../../make-rules/shared-macros.mk
83N/A
83N/ACOMPONENT_NAME= patch
4610N/ACOMPONENT_VERSION= 2.7.5
844N/ACOMPONENT_ARCHIVE_HASH= \
4610N/A sha256:7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f
1258N/ACOMPONENT_BUGDB= utility/gpatch
83N/A
4610N/ATPNO= 22293
2899N/A
5680N/A# Although system-test doesn't run against the built bits, the tests
5680N/A# require the bits are built. Using build as a pre-requisite
5680N/A# to system-test separates the compilation output from the
5680N/A# test output, so the master test results will be consistent between
5680N/A# test and system-test targets.
5680N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
83N/A
4610N/A# Needed for "gmake test" to work successfully.
4610N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4610N/A# then all shell options get exported to child invocations of bash,
4610N/A# which results in test failures due to nounset being
4610N/A# set unexpectedly, and errors such as "$1: unbound variable"
4610N/Aunexport SHELLOPTS
4610N/A
3291N/ACOMPONENT_INSTALL_ARGS += bindir=$(USRBINDIR)
3291N/A
4743N/ACOMPONENT_SYSTEM_TEST_ENV += PATCH=$(GPATCH)