author | Jesse Butler <jesse.butler@oracle.com> |
Tue, 18 Oct 2016 05:50:50 -0700 | |
changeset 7121 | 02252aa4d56c |
parent 6347 | 545ae06d138d |
child 7426 | abc5f049b858 |
permissions | -rw-r--r-- |
1316 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
21 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
22 |
# |
5349
aad9f1baf245
22593018 libarchives b64_encode conflicts with system one on 91
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
4997
diff
changeset
|
23 |
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
1316 | 24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
1316 | 26 |
include ../../make-rules/shared-macros.mk |
27 |
||
28 |
COMPONENT_NAME= libarchive |
|
6347
545ae06d138d
23640205 Update libarchive to version 3.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
6261
diff
changeset
|
29 |
COMPONENT_VERSION= 3.2.1 |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://www.libarchive.org/ |
1316 | 31 |
COMPONENT_ARCHIVE_HASH= \ |
6347
545ae06d138d
23640205 Update libarchive to version 3.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
6261
diff
changeset
|
32 |
sha256:72ee1a4e3fd534525f13a0ba1aa7b05b203d186e0c6072a8a4738649d0b3cfd2 |
1316 | 33 |
COMPONENT_ARCHIVE_URL= \ |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
34 |
$(COMPONENT_PROJECT_URL)downloads/$(COMPONENT_ARCHIVE) |
1316 | 35 |
COMPONENT_BUGDB= library/libarchive |
36 |
||
6347
545ae06d138d
23640205 Update libarchive to version 3.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
6261
diff
changeset
|
37 |
TPNO= 29683 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
38 |
|
6261
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
39 |
TEST_TARGET= install $(TEST_32_and_64) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/common.mk |
1316 | 41 |
|
42 |
# Userland default includes -mt which links with libthread which we don't need. |
|
43 |
studio_MT = |
|
44 |
||
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
45 |
CONFIGURE_OPTIONS += --disable-static |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --enable-shared |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
47 |
CONFIGURE_OPTIONS += --enable-largefile |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
48 |
# We prefer openssl over nettle. |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --without-nettle |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
50 |
CONFIGURE_OPTIONS += --with-openssl |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
51 |
CONFIGURE_OPTIONS += --with-pic |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --with-xml2 |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --with-zlib |
4684
6c8208a08539
21481012 libarchive fails to build when nettle is installed
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
54 |
|
1316 | 55 |
# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then |
56 |
# appends CFLAGS to that. Reset the former here so we can build with Studio. |
|
57 |
COMPONENT_BUILD_ARGS += COMMON_CFLAGS='' |
|
58 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
|
59 |
COMPONENT_TEST_ARGS += COMMON_CFLAGS='' |
|
60 |
COMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS)" |
|
5349
aad9f1baf245
22593018 libarchives b64_encode conflicts with system one on 91
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
4997
diff
changeset
|
61 |
COMPONENT_TEST_ENV += TMPDIR="$(COMPONENT_TEST_BUILD_DIR)" |
1316 | 62 |
|
6261
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
63 |
# Get correct libarchive.so from the proto area. |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
64 |
TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
65 |
TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
66 |
COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
67 |
|
1316 | 68 |
# We need GNU awk for the following to work; hence the PATH tweak. |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
69 |
# We then convert BSD-style section numbers in the libarchive man pages to |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
70 |
# Solaris-style section numbers. |
1316 | 71 |
COMPONENT_PREP_ACTION = \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
72 |
cd $(@D)/doc/man ; rm *.[135] ; env PATH=$(GNUBIN):$$PATH gmake all ; \ |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
73 |
cd $(@D)/libarchive ; \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
74 |
find . -name "*\.[35]" | xargs $(GSED) -i 's/\(Xr.*\|Dt.*\)3/\13ARCHIVE/' ; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5349
diff
changeset
|
75 |
find . -name "*\.[35]" | xargs $(GSED) -i \ |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
76 |
-e 's/Xr \(malloc\|getpwuid\|getgrgud\|strerror\|printf\|getpwnam\|getgrnam\) 3ARCHIVE/Xr \13C/' \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
77 |
-e 's/\(Dt.*LIBARCHIVE.*\)3ARCHIVE/\13LIB/' \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
78 |
-e 's/Xr \(libarchive\|archive\) 3ARCHIVE/Xr libarchive 3LIB/'; |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
79 |
|
1316 | 80 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man |
81 |
||
6261
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
82 |
# Needed for "gmake test" to work successfully. |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
83 |
# If SHELLOPTS is exported (as it is by the userland makefiles), |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
84 |
# then all shell options get exported to child invocations of bash, |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
85 |
# which results in test failures due to nounset and xtrace being |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
86 |
# set unexpectedly, and errors such as "$1: unbound variable" and |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
87 |
# diffs failing due to script tracing in output files. |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
88 |
unexport SHELLOPTS |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
89 |
|
3845
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
90 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
91 |
COMPONENT_TEST_TRANSFORMS += \ |
6261
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
92 |
'-n ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
93 |
'-e "/ ok/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
94 |
'-e "/ FAIL/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
95 |
'-e "/Totals:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
96 |
'-e "/Tests run:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
97 |
'-e "/Tests failed:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
98 |
'-e "/Assertions failed:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
99 |
'-e "/Skips reported:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
100 |
'-e "/Failing tests:/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
101 |
'-e "/ failure/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
102 |
'-e "/TOTAL/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
103 |
'-e "/SKIP/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
104 |
'-e "/PASS/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
105 |
'-e "/FAIL/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
106 |
'-e "/ERROR/p" ' \ |
1dda1578278c
23607593 Update libarchive to version 3.2.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
107 |
'-e "/=========/p" ' \ |
1316 | 108 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
109 |
REQUIRED_PACKAGES += compress/bzip2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
110 |
REQUIRED_PACKAGES += compress/xz |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
111 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
112 |
REQUIRED_PACKAGES += library/security/openssl |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
113 |
REQUIRED_PACKAGES += library/zlib |