Makefile revision 3089
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#
2686N/A# Copyright (c) 2011, 2014, 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/A# Enable ASLR for this component
1392N/AASLR_MODE = $(ASLR_ENABLE)
1392N/A
100N/A# common targets
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
3089N/A# With coreutils version 8.23, there are currently six tests that are failing:
3089N/A# 1/ test-getlogin - this is a known problem. See:
3089N/A# http://www.linuxfromscratch.org/pipermail/lfs-dev/2012-April/066264.html
3089N/A#
3089N/A# After GNU coreutils has been built, it's possible to successfully run
3089N/A# the test manually from a terminal with:
3089N/A#
3089N/A# $ cd build/amd64/gnulib-tests && \
3089N/A# gmake NON_ROOT_USERNAME=nobody -k check-TESTS && \
3089N/A# gmake check TESTS=test-get-login
3089N/A
3089N/A# 2/ test-mbrtowc3
3089N/A# 3/ test-mbrtowc4
3089N/A# 4/ test-mbsalign
3089N/A# 5/ test-mbsrtowcs4 - these four multi-byte problems have been reported to
3089N/A# the G11N team. CR #19368946 & #19370120 have been filed.
3089N/A#
3089N/A# 6/ test-posixtm - this is due to a problem with the Solaris mktime
3089N/A# utility. CR #19344177 has been filed.
3089N/A
1999N/Atest: install $(TEST_64)
100N/A
100N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
100N/A
100N/Ainclude ../../make-rules/depend.mk