125N/A#
125N/A# CDDL HEADER START
125N/A#
125N/A# The contents of this file are subject to the terms of the
125N/A# Common Development and Distribution License (the "License").
125N/A# You may not use this file except in compliance with the License.
125N/A#
125N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
125N/A# or http://www.opensolaris.org/os/licensing.
125N/A# See the License for the specific language governing permissions
125N/A# and limitations under the License.
125N/A#
125N/A# When distributing Covered Code, include this CDDL HEADER in each
125N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
125N/A# If applicable, add the following below this CDDL HEADER, with the
125N/A# fields enclosed by brackets "[]" replaced with your own identifying
125N/A# information: Portions Copyright [yyyy] [name of copyright owner]
125N/A#
125N/A# CDDL HEADER END
125N/A#
125N/A
125N/A#
5451N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
125N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
125N/Ainclude ../../make-rules/shared-macros.mk
125N/A
125N/ACOMPONENT_NAME= diffutils
6705N/ACOMPONENT_VERSION= 3.5
4034N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
6705N/A sha256:dad398ccd5b9faca6b0ab219a036453f62a602a56203ac659b43e889bec35533
1326N/ACOMPONENT_BUGDB= utility/gnu-diffutils
125N/A
6705N/ATPNO= 31287
2899N/A
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
125N/A
4034N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f)
412N/A
5680N/ACONFIGURE_PREFIX= $(USRGNUDIR)
125N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5680N/ACONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
125N/A
4735N/A# Needed for "gmake test" to work successfully.
4735N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4735N/A# then all shell options get exported to child invocations of bash,
4735N/A# which results in test failures due to nounset and xtrace being
4735N/A# set unexpectedly, and errors such as "$1: unbound variable" and
4735N/A# diffs failing due to script tracing in output files.
4735N/Aunexport SHELLOPTS
4735N/A
4735N/ACOMPONENT_TEST_DIR = $(@D)/tests
4735N/A
4735N/ACOMPONENT_TEST_TRANSFORMS += \
4735N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "s|^/usr/gnu/bin/make.*$$|XXX_CC_XXX|g" ' \
4735N/A '-e "/^XXX_CC_XXX$$/d" '
4735N/A
4735N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
4735N/ACOMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
4735N/A
5451N/AREQUIRED_PACKAGES += library/libsigsegv
3817N/AREQUIRED_PACKAGES += system/library