author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Thu, 29 Sep 2016 15:20:26 -0500 | |
changeset 7011 | 10c58c99afd6 |
parent 5843 | 9cefd39b551b |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
1 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
3 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
7 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
12 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
18 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
20 |
# |
4944 | 21 |
|
22 |
# |
|
5638
b88b6c00208e
22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5159
diff
changeset
|
23 |
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
24 |
# |
5843
9cefd39b551b
23175936 lp64 status regression for some components
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5682
diff
changeset
|
25 |
BUILD_BITS= 64 |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
27 |
|
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= git |
5672 | 29 |
COMPONENT_VERSION= 2.7.4 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
552
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://git-scm.com/ |
4944 | 31 |
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:
731
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
5672 | 33 |
sha256:dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b |
4944 | 34 |
COMPONENT_ARCHIVE_URL= https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
35 |
|
5672 | 36 |
TPNO= 27482 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1623
diff
changeset
|
37 |
|
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
38 |
# |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
39 |
# man pages are a separate archive |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
40 |
# |
5672 | 41 |
COMPONENT_SRC_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION) |
4948
692859999ccc
PSARC 2015/428 Normalization of Solaris man page section numbers
Rich Burridge <rich.burridge@oracle.com>
parents:
4944
diff
changeset
|
42 |
COMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.xz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
731
diff
changeset
|
43 |
COMPONENT_ARCHIVE_HASH_1 = \ |
5672 | 44 |
sha256:d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25 |
4944 | 45 |
COMPONENT_ARCHIVE_URL_1 = https://www.kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1) |
4948
692859999ccc
PSARC 2015/428 Normalization of Solaris man page section numbers
Rich Burridge <rich.burridge@oracle.com>
parents:
4944
diff
changeset
|
46 |
UNPACK_ARGS_1 = -r $(COMPONENT_SRC_1) |
692859999ccc
PSARC 2015/428 Normalization of Solaris man page section numbers
Rich Burridge <rich.burridge@oracle.com>
parents:
4944
diff
changeset
|
47 |
PKG_PROTO_DIRS += $(COMPONENT_SRC_1) |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
48 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5672
diff
changeset
|
49 |
include $(WS_MAKE_RULES)/common.mk |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
50 |
|
5672 | 51 |
PKG_HARDLINKS += usr/lib/git-core/git |
52 |
PKG_HARDLINKS += usr/lib/git-core/git-cvsserver |
|
53 |
PKG_HARDLINKS += usr/lib/git-core/git-gui |
|
4944 | 54 |
PKG_HARDLINKS += usr/lib/git-core/git-remote-ftps |
5672 | 55 |
PKG_HARDLINKS += usr/lib/git-core/git-shell |
56 |
PKG_HARDLINKS += usr/lib/git-core/git-upload-pack |
|
4944 | 57 |
|
3913
6975b8339adc
20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
58 |
PKG_MACROS += PYVER=$(PYTHON_VERSION) |
6975b8339adc
20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
59 |
|
1623
d468c2c1e73d
18042697 Various Userland components need ASLR'ing and 64-bit-ing
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
60 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
5672 | 61 |
CONFIGURE_SCRIPT = $(@D)/configure |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5672
diff
changeset
|
62 |
CPPFLAGS += "-I/usr/include/pcre" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5672
diff
changeset
|
63 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5672
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5672
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR) |
4944 | 66 |
CONFIGURE_OPTIONS += --with-libpcre |
277
12ebd29ad46c
7050602 userland consolidation should build with perl 5.12 by default
craig mohrman <craig.mohrman@oracle.com>
parents:
181
diff
changeset
|
67 |
CONFIGURE_OPTIONS += --with-perl=$(PERL) |
3913
6975b8339adc
20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
68 |
CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION)) |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
69 |
|
2191
fee221cf6a3c
15936294 git build has problems if PROFILE environment variable is set
Jan Noha <jan.noha@oracle.com>
parents:
1948
diff
changeset
|
70 |
# Build fails if environment variable PROFILE is set. |
fee221cf6a3c
15936294 git build has problems if PROFILE environment variable is set
Jan Noha <jan.noha@oracle.com>
parents:
1948
diff
changeset
|
71 |
COMPONENT_BUILD_ENV+= PROFILE= |
fee221cf6a3c
15936294 git build has problems if PROFILE environment variable is set
Jan Noha <jan.noha@oracle.com>
parents:
1948
diff
changeset
|
72 |
COMPONENT_INSTALL_ENV+= PROFILE= |
fee221cf6a3c
15936294 git build has problems if PROFILE environment variable is set
Jan Noha <jan.noha@oracle.com>
parents:
1948
diff
changeset
|
73 |
COMPONENT_TEST_ENV+= PROFILE= |
fee221cf6a3c
15936294 git build has problems if PROFILE environment variable is set
Jan Noha <jan.noha@oracle.com>
parents:
1948
diff
changeset
|
74 |
|
4944 | 75 |
# We set prefix_SQ empty to make sure that perl's MakeMaker module doesn't grab |
76 |
# the value from $prefix (set by configure) and force VENDORPREFIX to $prefix, |
|
77 |
# thereby putting the perl modules in /usr/lib/Git. |
|
78 |
COMPONENT_BUILD_ARGS+= prefix_SQ= |
|
79 |
COMPONENT_INSTALL_ARGS+= prefix_SQ= |
|
667
bf7a382b5272
7131234 userland should remove references to /usr/ucb
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
80 |
COMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)" |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
81 |
|
4050
253de46fd78c
20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3913
diff
changeset
|
82 |
# get rid of terminal escape codes in test output |
253de46fd78c
20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3913
diff
changeset
|
83 |
COMPONENT_TEST_ENV = TERM=dumb |
253de46fd78c
20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3913
diff
changeset
|
84 |
# many failures; keep going; later versions of git are much cleaner |
253de46fd78c
20761309 problem in UTILITY/GIT
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3913
diff
changeset
|
85 |
COMPONENT_TEST_ARGS += -k -i |
5672 | 86 |
# If GITTEST_JOBS is set, then run the jobs in parallel (to that number) |
87 |
COMPONENT_TEST_ARGS += $(if $(GITTEST_JOBS),-j$(GITTEST_JOBS),) |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
152
diff
changeset
|
88 |
COMPONENT_TEST_TARGETS = test |
5672 | 89 |
# Enable tests requiring Apache |
90 |
COMPONENT_TEST_TARGETS += LIB_HTTPD_PATH=/usr/apache2/2.4/bin/httpd |
|
91 |
COMPONENT_TEST_TARGETS += LIB_HTTPD_MODULE_PATH=/usr/apache2/2.4/libexec |
|
92 |
# Put each test result in a file; necessary if jobs run in parallel |
|
93 |
COMPONENT_TEST_TARGETS += GIT_TEST_OPTS=--tee |
|
94 |
COMPONENT_TEST_TARGETS += DEFAULT_TEST_TARGET=test-noclean |
|
95 |
# Compile the test results and put that into the test output file instead |
|
96 |
COMPONENT_POST_TEST_ACTION = \ |
|
97 |
(cd $(COMPONENT_TEST_DIR)/t/test-results; for i in *.out; do \ |
|
98 |
echo "*** $${i%.out}.sh ***"; \ |
|
99 |
cat $$i; \ |
|
100 |
done; \ |
|
101 |
cd ..; \ |
|
102 |
$(GMAKE) -s aggregate-results) &> $(COMPONENT_TEST_OUTPUT) |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
152
diff
changeset
|
103 |
|
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
104 |
# This runs configure but configure doesn't generate a Makefile. |
731
2a19ec4c0d8f
7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents:
706
diff
changeset
|
105 |
# Instead a Makefile comes with git. |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
106 |
# Anyways viewpathing doesn't work. |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
107 |
# Therefore we need cloney to copy a set of files to build. |
731
2a19ec4c0d8f
7152417 upgrade git to version 1.7.9.2
Craig Mohrman <craig.mohrman@oracle.com>
parents:
706
diff
changeset
|
108 |
|
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
109 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
110 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
5672 | 111 |
COMPONENT_PRE_CONFIGURE_ACTION += ; (cd $(@D); $(GMAKE) configure) |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff
changeset
|
112 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4050
diff
changeset
|
113 |
|
5672 | 114 |
REQUIRED_PACKAGES += crypto/gnupg |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
115 |
REQUIRED_PACKAGES += library/expat |
4944 | 116 |
REQUIRED_PACKAGES += library/pcre |
117 |
REQUIRED_PACKAGES += library/security/openssl |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
118 |
REQUIRED_PACKAGES += library/zlib |
5638
b88b6c00208e
22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5159
diff
changeset
|
119 |
REQUIRED_PACKAGES += $(PERL_PKG) |
3913
6975b8339adc
20657181 migrate git from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
120 |
REQUIRED_PACKAGES += runtime/python-27 |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
121 |
REQUIRED_PACKAGES += shell/bash |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
122 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
123 |
REQUIRED_PACKAGES += web/curl |
5672 | 124 |
REQUIRED_PACKAGES += web/server/apache-24 |