author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7245 | 934578b959f0 |
permissions | -rw-r--r-- |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
1 |
# |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
3 |
# |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
7 |
# |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
12 |
# |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
18 |
# |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@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:
5660
diff
changeset
|
21 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@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:
5660
diff
changeset
|
25 |
BUILD_BITS= 64 |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
27 |
|
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= gzip |
5880
caab292318a0
23189614 Update gzip to version 1.8
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
29 |
COMPONENT_VERSION= 1.8 |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
755
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
5880
caab292318a0
23189614 Update gzip to version 1.8
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
31 |
sha256:1ff7aedb3d66a0d73f442f6261e4b3860df6fd6c94025c2cb31a202c9c60fe0e |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
32 |
COMPONENT_ANITYA_ID= 1290 |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
33 |
|
5880
caab292318a0
23189614 Update gzip to version 1.8
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
34 |
TPNO= 28039 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1204
diff
changeset
|
35 |
|
7245
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
5880
diff
changeset
|
36 |
# Enable adiheap and adistack security extensions |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
5880
diff
changeset
|
37 |
ADIHEAP_MODE = $(ADIHEAP_ENABLE) |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
5880
diff
changeset
|
38 |
ADISTACK_MODE = $(ADISTACK_ENABLE) |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
5880
diff
changeset
|
39 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
40 |
INSTALL_TARGET= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
41 |
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:
5660
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/gnu-component.mk |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
43 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
44 |
# Prevent gzip assembly code usage; which segv's with Studio 12.3 and 12.4. |
1204
c8e9f85492a3
16447337 gzip cores when built with studio 12.3 on intel
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
45 |
CONFIGURE_OPTIONS += gzip_cv_assembler=no |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
47 |
|
977
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
48 |
# Needed for "gmake test" to work successfully. |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
49 |
# If SHELLOPTS is exported (as it is by the userland makefiles), |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
50 |
# then all shell options get exported to child invocations of bash, |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
51 |
# which results in test failures due to nounset and xtrace being |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
52 |
# set unexpectedly, and errors such as "$1: unbound variable" and |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
53 |
# diffs failing due to script tracing in output files. |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
54 |
unexport SHELLOPTS |
4a6b2f8dca71
7183526 Update gzip to version 1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
55 |
|
1030
faf1845e3b13
7161330 gzgrep -e option no longer works
Petr Sumbera <petr.sumbera@oracle.com>
parents:
977
diff
changeset
|
56 |
COMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if) |
faf1845e3b13
7161330 gzgrep -e option no longer works
Petr Sumbera <petr.sumbera@oracle.com>
parents:
977
diff
changeset
|
57 |
|
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
58 |
# Fix references to Solaris renamed programs (z*->gz*) in man pages, info |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
59 |
# pages and in wrapper scripts. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
60 |
COMPONENT_PRE_INSTALL_ACTION = \ |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
61 |
(cd $(COMPONENT_SRC) ; \ |
748
34aa5d11ee93
6888036 Problem with utility/gzip
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
62 |
for file in `ls *.1 doc/*.info z*.in` ; do \ |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
63 |
mv $$file $$file.tmp ; \ |
750
9da3e3e3c604
7157415 gzip 1.4 integration is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
748
diff
changeset
|
64 |
$(GSED) -f $(COMPONENT_DIR)/renaming.sed $$file.tmp > $$file ; \ |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
65 |
$(RM) $$file.tmp ; \ |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
66 |
done) |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
67 |
|
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
68 |
# Rename installed programs and man pages in proto dir (z*->gz*). |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
69 |
COMPONENT_POST_INSTALL_ACTION = \ |
755
e7d0aed114ef
7157429 gzip 1.4 integration still has a couple of problems
Rich Burridge <rich.burridge@oracle.com>
parents:
750
diff
changeset
|
70 |
(for dir in $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) ; do \ |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
71 |
cd $$dir; \ |
177
fd9cb2273c9d
7015392 the build should really fail if the pkg tools fail
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
96
diff
changeset
|
72 |
for zfile in `ls z*`; do \ |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
73 |
mv $$zfile g$$zfile ; \ |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
74 |
done ; \ |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
75 |
done) |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
76 |
|
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
77 |
# Provide missing man pages. |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
78 |
GZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzegrep.1 |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
79 |
GZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzfgrep.1 |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
80 |
|
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
81 |
$(GZGREP_MAN_VARIANTS): |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
82 |
$(RM) $@; echo ".so man1/gzgrep.1" > $@ |
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
83 |
|
4732
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
84 |
# Get the binaries to test from the component build area. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
85 |
COMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:$(USRBINDIR) |
4732
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
86 |
|
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
87 |
# Use the installed gzip binary from /usr/bin. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
88 |
COMPONENT_SYSTEM_TEST_ENV += PATH=/usr/xpg4/bin:$(USRBINDIR) |
4732
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
89 |
|
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
90 |
COMPONENT_TEST_TRANSFORMS += \ |
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
91 |
'-n ' \ |
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
92 |
'-e "/PASS/p" ' \ |
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
93 |
'-e "/FAIL/p" ' |
d072001cb0ea
21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
94 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5660
diff
changeset
|
95 |
install: $(INSTALL_64) $(GZGREP_MAN_VARIANTS) |
96
0cad26ba1671
7019038 move gzip to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff
changeset
|
96 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
97 |
REQUIRED_PACKAGES += runtime/python-27 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
98 |
REQUIRED_PACKAGES += shell/bash |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
99 |
REQUIRED_PACKAGES += system/xopen/xcu4 |