21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= coreutils |
25 COMPONENT_NAME= coreutils |
26 COMPONENT_VERSION= 8.5 |
26 COMPONENT_VERSION= 8.16 |
27 COMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/ |
27 COMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/ |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:dd243e2ac7d0ed203b170ecfb8299643779e7501fec2b45ae1cea8a450fa8ca0 |
31 sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067 |
32 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE) |
32 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE) |
33 |
33 |
34 include ../../make-rules/prep.mk |
34 include ../../make-rules/prep.mk |
35 include ../../make-rules/configure.mk |
35 include ../../make-rules/configure.mk |
36 include ../../make-rules/ips.mk |
36 include ../../make-rules/ips.mk |
42 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
42 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
43 |
43 |
44 # common targets |
44 # common targets |
45 build: $(BUILD_32) |
45 build: $(BUILD_32) |
46 |
46 |
47 # |
|
48 # whoami is in both /usr/bin and /usr/gnu/bin; mistake? |
|
49 # |
|
50 install: $(INSTALL_32) |
47 install: $(INSTALL_32) |
51 |
48 |
52 test: $(TEST_32) |
49 # Needed for "gmake test" to work successfully. |
|
50 # If SHELLOPTS is exported (as it is by the userland makefiles), |
|
51 # then all shell options get exported to child invocations of bash, |
|
52 # which results in test failures due to nounset and xtrace being |
|
53 # set unexpectedly, and errors such as "$1: unbound variable" and |
|
54 # diffs failing due to script tracing in output files. |
|
55 unexport SHELLOPTS |
|
56 |
|
57 # Get the binaries to test from the component proto area. |
|
58 COMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin |
|
59 |
|
60 test: install $(TEST_32) |
53 |
61 |
54 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
62 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
55 |
63 |
56 include ../../make-rules/depend.mk |
64 include ../../make-rules/depend.mk |