author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7476 | c2f56b2bf427 |
child 7910 | 054905eb71e9 |
permissions | -rw-r--r-- |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
1 |
# |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
3 |
# |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
7 |
# |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
12 |
# |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
18 |
# |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
20 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
21 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7476
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
27 |
|
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= coreutils |
7476
c2f56b2bf427
PSARC 2016/622 GNU coreutils 8.26
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
29 |
COMPONENT_VERSION= 8.26 |
987
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
7476
c2f56b2bf427
PSARC 2016/622 GNU coreutils 8.26
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
32 |
sha256:155e94d748f8e2bc327c66e0cbebdb8d6ab265d2f37c3c928f7bf6c3beba9a8e |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
987
diff
changeset
|
33 |
COMPONENT_BUGDB= utility/gnu-coreutils |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7476
diff
changeset
|
34 |
COMPONENT_ANITYA_ID= 343 |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
35 |
|
7476
c2f56b2bf427
PSARC 2016/622 GNU coreutils 8.26
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
36 |
TPNO= 32865 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1900
diff
changeset
|
37 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
38 |
TEST_TARGET= install $(TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
39 |
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/gnu-component.mk |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
41 |
|
2050
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
42 |
# We need the GNU grep command to configure/build. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
43 |
PATH=$(GNUBIN):$(USRBINDIR) |
2050
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
44 |
|
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
45 |
PATCH_LEVEL= 0 |
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
46 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
47 |
CPPFLAGS += -I$(USRINCDIR)/gmp |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5514
diff
changeset
|
48 |
CONFIGURE_PREFIX = $(USRGNUDIR) |
100
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
385905d9554d
7021215 migrate gnu-coreutils from sfw to userland gate
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
50 |
|
2050
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
51 |
# Recreate configure and Makefile to pick up changes in .../src/local.mk |
1833
0edb05d72e6b
16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
1465
diff
changeset
|
52 |
COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake) |
0edb05d72e6b
16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
1465
diff
changeset
|
53 |
|
4747
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
54 |
# Needed to get tests to work when run directly from the tests subdirectory. |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
55 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
56 |
|
1898
5c902a3c6e7e
18744156 /usr/gnu/bin/chroot is killed when executed with an invalid command argument
Rich Burridge <rich.burridge@oracle.com>
parents:
1895
diff
changeset
|
57 |
# Always show the build and link lines for easier debugging. |
1900
e587944ed7de
18744156 /usr/gnu/bin/chroot is killed when executed with an invalid command argument (adjust approach)
Rich Burridge <rich.burridge@oracle.com>
parents:
1898
diff
changeset
|
58 |
COMPONENT_BUILD_ARGS += V=1 |
1898
5c902a3c6e7e
18744156 /usr/gnu/bin/chroot is killed when executed with an invalid command argument
Rich Burridge <rich.burridge@oracle.com>
parents:
1895
diff
changeset
|
59 |
|
987
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
60 |
# Needed for "gmake test" to work successfully. |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
61 |
# If SHELLOPTS is exported (as it is by the userland makefiles), |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
62 |
# then all shell options get exported to child invocations of bash, |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
63 |
# which results in test failures due to nounset and xtrace being |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
64 |
# set unexpectedly, and errors such as "$1: unbound variable" and |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
65 |
# diffs failing due to script tracing in output files. |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
66 |
unexport SHELLOPTS |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
67 |
|
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
68 |
# Get the binaries to test from the component proto area. |
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
69 |
COMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin |
4747
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
70 |
COMPONENT_TEST_DIR = $(@D)/tests |
987
810b92005f34
PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
71 |
|
3702
a4cf62e97757
20432269 GNU coreutils version 8.23 test-localename test dumps core
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
72 |
# Always show the build and link lines for easier debugging. |
a4cf62e97757
20432269 GNU coreutils version 8.23 test-localename test dumps core
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
73 |
COMPONENT_TEST_ARGS += V=1 |
2050
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
74 |
|
5514
85bd4f23ede1
PSARC 2016/128 GNU coreutils 8.25
Rich Burridge <rich.burridge@oracle.com>
parents:
5169
diff
changeset
|
75 |
# Master test results are different between x86 and SPARC (different # of |
85bd4f23ede1
PSARC 2016/128 GNU coreutils 8.25
Rich Burridge <rich.burridge@oracle.com>
parents:
5169
diff
changeset
|
76 |
# tests run). |
85bd4f23ede1
PSARC 2016/128 GNU coreutils 8.25
Rich Burridge <rich.burridge@oracle.com>
parents:
5169
diff
changeset
|
77 |
COMPONENT_TEST_MASTER = \ |
85bd4f23ede1
PSARC 2016/128 GNU coreutils 8.25
Rich Burridge <rich.burridge@oracle.com>
parents:
5169
diff
changeset
|
78 |
$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
85bd4f23ede1
PSARC 2016/128 GNU coreutils 8.25
Rich Burridge <rich.burridge@oracle.com>
parents:
5169
diff
changeset
|
79 |
|
3702
a4cf62e97757
20432269 GNU coreutils version 8.23 test-localename test dumps core
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
80 |
COMPONENT_TEST_TRANSFORMS += \ |
4747
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
81 |
'-n ' \ |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
82 |
'-e "/TOTAL/p" ' \ |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
83 |
'-e "/SKIP/p" ' \ |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
84 |
'-e "/PASS/p" ' \ |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
85 |
'-e "/FAIL/p" ' \ |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
86 |
'-e "/ERROR/p" ' |
3702
a4cf62e97757
20432269 GNU coreutils version 8.23 test-localename test dumps core
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
87 |
|
4747
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
88 |
# Get the binaries to test from their installed locations. |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
89 |
COMPONENT_SYSTEM_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin |
0e43ac303e45
21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
90 |
COMPONENT_SYSTEM_TEST_DIR = $(@D)/tests |
2050
7c6a1559c620
PSARC 2014/271 GNU coreutils 8.23
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
91 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3702
diff
changeset
|
92 |
REQUIRED_PACKAGES += library/gmp |