Makefile revision 3089
2880N/A#
2880N/A# CDDL HEADER START
2880N/A#
2880N/A# The contents of this file are subject to the terms of the
2880N/A# Common Development and Distribution License (the "License").
2880N/A# You may not use this file except in compliance with the License.
2880N/A#
2880N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2880N/A# or http://www.opensolaris.org/os/licensing.
2880N/A# See the License for the specific language governing permissions
2880N/A# and limitations under the License.
2880N/A#
2880N/A# When distributing Covered Code, include this CDDL HEADER in each
2880N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2880N/A# If applicable, add the following below this CDDL HEADER, with the
2880N/A# fields enclosed by brackets "[]" replaced with your own identifying
2880N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2880N/A#
2880N/A# CDDL HEADER END
2880N/A#
2880N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
2880N/A#
2880N/Ainclude ../../make-rules/shared-macros.mk
2880N/A
4604N/ACOMPONENT_NAME= coreutils
2880N/ACOMPONENT_VERSION= 8.23
2880N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
2880N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2880N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
2880N/ACOMPONENT_ARCHIVE_HASH= \
2880N/A sha256:ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d
2880N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
2880N/ACOMPONENT_BUGDB= utility/gnu-coreutils
2880N/A
2880N/ATPNO= 18521
2880N/A
2880N/Ainclude ../../make-rules/prep.mk
2880N/Ainclude ../../make-rules/configure.mk
2880N/Ainclude ../../make-rules/ips.mk
4604N/A
2880N/A# We need the GNU grep command to configure/build.
2880N/APATH=/usr/gnu/bin:/usr/bin
2880N/A
2880N/APATCH_LEVEL= 0
2880N/A
2880N/ACONFIGURE_PREFIX = /usr/gnu
2880N/ACONFIGURE_OPTIONS += --bindir=/usr/gnu/bin
2880N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
2880N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
2880N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
2880N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2880N/A
2880N/A# Recreate configure and Makefile to pick up changes in .../src/local.mk
2880N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
2880N/A
2880N/A# Always show the build and link lines for easier debugging.
2880N/ACOMPONENT_BUILD_ARGS += V=1
2880N/A
2880N/A# Enable ASLR for this component
2880N/AASLR_MODE = $(ASLR_ENABLE)
2880N/A
2880N/A# common targets
2880N/Abuild: $(BUILD_32_and_64)
2880N/A
2880N/Ainstall: $(INSTALL_32_and_64)
2880N/A
2880N/A# Needed for "gmake test" to work successfully.
2880N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
2880N/A# then all shell options get exported to child invocations of bash,
2880N/A# which results in test failures due to nounset and xtrace being
2880N/A# set unexpectedly, and errors such as "$1: unbound variable" and
2880N/A# diffs failing due to script tracing in output files.
2880N/Aunexport SHELLOPTS
2880N/A
2880N/A# Get the binaries to test from the component proto area.
2880N/ACOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
2880N/A
2880N/A# With coreutils version 8.23, there are currently six tests that are failing:
2880N/A# 1/ test-getlogin - this is a known problem. See:
2880N/A# http://www.linuxfromscratch.org/pipermail/lfs-dev/2012-April/066264.html
2880N/A#
2880N/A# After GNU coreutils has been built, it's possible to successfully run
2880N/A# the test manually from a terminal with:
2880N/A#
2880N/A# $ cd build/amd64/gnulib-tests && \
2880N/A# gmake NON_ROOT_USERNAME=nobody -k check-TESTS && \
2880N/A# gmake check TESTS=test-get-login
2880N/A
2880N/A# 2/ test-mbrtowc3
2880N/A# 3/ test-mbrtowc4
2880N/A# 4/ test-mbsalign
2880N/A# 5/ test-mbsrtowcs4 - these four multi-byte problems have been reported to
2880N/A# the G11N team. CR #19368946 & #19370120 have been filed.
2880N/A#
2880N/A# 6/ test-posixtm - this is due to a problem with the Solaris mktime
2880N/A# utility. CR #19344177 has been filed.
2880N/A
2880N/Atest: install $(TEST_64)
2880N/A
2880N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2880N/A
2880N/Ainclude ../../make-rules/depend.mk
2880N/A