100N/A#
100N/A# CDDL HEADER START
100N/A#
100N/A# The contents of this file are subject to the terms of the
100N/A# Common Development and Distribution License (the "License").
100N/A# You may not use this file except in compliance with the License.
100N/A#
100N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
100N/A# or http://www.opensolaris.org/os/licensing.
100N/A# See the License for the specific language governing permissions
100N/A# and limitations under the License.
100N/A#
100N/A# When distributing Covered Code, include this CDDL HEADER in each
100N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
100N/A# If applicable, add the following below this CDDL HEADER, with the
100N/A# fields enclosed by brackets "[]" replaced with your own identifying
100N/A# information: Portions Copyright [yyyy] [name of copyright owner]
100N/A#
100N/A# CDDL HEADER END
100N/A#
5680N/A
5680N/A#
5512N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
100N/A#
5680N/ABUILD_BITS= 64_and_32
100N/Ainclude ../../make-rules/shared-macros.mk
100N/A
100N/ACOMPONENT_NAME= coreutils
5512N/ACOMPONENT_VERSION= 8.25
1109N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
5512N/A sha256:31e67c057a5b32a582f26408c789e11c2e8d676593324849dcf5779296cdce87
1258N/ACOMPONENT_BUGDB= utility/gnu-coreutils
100N/A
5512N/ATPNO= 27001
2899N/A
5680N/ATEST_TARGET= install $(TEST_64)
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
100N/A
3089N/A# We need the GNU grep command to configure/build.
5680N/APATH=$(GNUBIN):$(USRBINDIR)
3089N/A
3089N/APATCH_LEVEL= 0
3089N/A
5680N/ACPPFLAGS += -I$(USRINCDIR)/gmp
5680N/ACONFIGURE_PREFIX = $(USRGNUDIR)
100N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
100N/A
3089N/A# Recreate configure and Makefile to pick up changes in .../src/local.mk
2686N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
2686N/A
4745N/A# Needed to get tests to work when run directly from the tests subdirectory.
4745N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4745N/A
2803N/A# Always show the build and link lines for easier debugging.
2806N/ACOMPONENT_BUILD_ARGS += V=1
2803N/A
1109N/A# Needed for "gmake test" to work successfully.
1109N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
1109N/A# then all shell options get exported to child invocations of bash,
1109N/A# which results in test failures due to nounset and xtrace being
1109N/A# set unexpectedly, and errors such as "$1: unbound variable" and
1109N/A# diffs failing due to script tracing in output files.
1109N/Aunexport SHELLOPTS
1109N/A
1109N/A# Get the binaries to test from the component proto area.
1109N/ACOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
4745N/ACOMPONENT_TEST_DIR = $(@D)/tests
1109N/A
3702N/A# Always show the build and link lines for easier debugging.
3702N/ACOMPONENT_TEST_ARGS += V=1
3089N/A
5512N/A# Master test results are different between x86 and SPARC (different # of
5512N/A# tests run).
5512N/ACOMPONENT_TEST_MASTER = \
5512N/A $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
5512N/A
3702N/ACOMPONENT_TEST_TRANSFORMS += \
4745N/A '-n ' \
4745N/A '-e "/TOTAL/p" ' \
4745N/A '-e "/SKIP/p" ' \
4745N/A '-e "/PASS/p" ' \
4745N/A '-e "/FAIL/p" ' \
4745N/A '-e "/ERROR/p" '
3702N/A
4745N/A# Get the binaries to test from their installed locations.
4745N/ACOMPONENT_SYSTEM_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
4745N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
3089N/A
3817N/AREQUIRED_PACKAGES += library/gmp