Makefile revision 3702
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#
3702N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
100N/A#
100N/Ainclude ../../make-rules/shared-macros.mk
100N/A
100N/ACOMPONENT_NAME= coreutils
3089N/ACOMPONENT_VERSION= 8.23
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
100N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1109N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
3089N/A sha256:ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d
100N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gnu-coreutils
100N/A
3089N/ATPNO= 18521
2899N/A
100N/Ainclude ../../make-rules/prep.mk
100N/Ainclude ../../make-rules/configure.mk
100N/Ainclude ../../make-rules/ips.mk
100N/A
3089N/A# We need the GNU grep command to configure/build.
3089N/APATH=/usr/gnu/bin:/usr/bin
3089N/A
3089N/APATCH_LEVEL= 0
3089N/A
100N/ACONFIGURE_PREFIX = /usr/gnu
1999N/ACONFIGURE_OPTIONS += --bindir=/usr/gnu/bin
100N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
100N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
100N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
100N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
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
2803N/A# Always show the build and link lines for easier debugging.
2806N/ACOMPONENT_BUILD_ARGS += V=1
2803N/A
1392N/AASLR_MODE = $(ASLR_ENABLE)
1392N/A
3477N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
1999N/Abuild: $(BUILD_32_and_64)
100N/A
1999N/Ainstall: $(INSTALL_32_and_64)
104N/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
1109N/A
3702N/A# Always show the build and link lines for easier debugging.
3702N/ACOMPONENT_TEST_ARGS += V=1
3089N/A
3702N/A# The additional coreutils specific set of transforms to be applied to the
3702N/A# test results to try to normalize them.
3702N/ACOMPONENT_TEST_TRANSFORMS += \
3702N/A '-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \
3702N/A '-e "s|\(/gnulib-tests/test-getlogin.c:\).*|\1|" ' \
3702N/A '-e "s|\(^/bin/bash: line 1:\).*|\1|" ' \
3702N/A '-e "s|\(^df-symlink.sh: skipped test:\).*|\1|" ' \
3702N/A '-e "s|\(^tail-n0f.sh: skipped test:\).*|\1|" '
3702N/A
3702N/A# There are currently two tests that are failing, for which the following
3702N/A# bugs are filed; see the bug reports for more details:
3702N/A# test-mbsalign - 20432332
3702N/A# test-posixtm - 19344177
3089N/A
1999N/Atest: install $(TEST_64)
100N/A
100N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
100N/A
100N/Ainclude ../../make-rules/depend.mk