author | Petr Sumbera <petr.sumbera@oracle.com> |
Thu, 06 Oct 2016 04:24:56 -0700 | |
branch | s11u3-sru |
changeset 7088 | ad1364987701 |
parent 6035 | c9748fcc32de |
child 7811 | 9126e6f58cd8 |
permissions | -rw-r--r-- |
2 | 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 |
# |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
21 |
|
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
22 |
# |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
23 |
# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Rules and Macros for generating an IPS package manifest and publishing an |
|
28 |
# IPS package to a pkg depot. |
|
29 |
# |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
30 |
# To use these rules, include $(WS_MAKE_RULES)/ips.mk in your Makefile |
2 | 31 |
# and define an "install" target appropriate to building your component. |
32 |
# Ex: |
|
33 |
# |
|
59
7500d63edb42
7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
53
diff
changeset
|
34 |
# install: $(BUILD_DIR)/build/$(MACH32)/.installed \ |
7500d63edb42
7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
53
diff
changeset
|
35 |
# $(BUILD_DIR)/build/$(MACH64)/.installed |
2 | 36 |
# |
37 |
# This set of rules makes the "publish" target the default target for make(1) |
|
38 |
# |
|
39 |
||
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
40 |
PKGDEPEND = /usr/bin/pkgdepend |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
41 |
PKGFMT = /usr/bin/pkgfmt |
2 | 42 |
PKGMOGRIFY = /usr/bin/pkgmogrify |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
43 |
PKGSEND = /usr/bin/pkgsend |
2855
576d5a7857b7
16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2732
diff
changeset
|
44 |
ifeq ($(strip $(PKGLINT_COMPONENT)),) |
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
45 |
PKGLINT = /usr/bin/pkglint |
2855
576d5a7857b7
16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2732
diff
changeset
|
46 |
else |
576d5a7857b7
16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2732
diff
changeset
|
47 |
PKGLINT = ${WS_TOOLS}/pkglint |
576d5a7857b7
16404201 serialize pkglinting of components
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2732
diff
changeset
|
48 |
endif |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
49 |
PKGMANGLE = $(WS_TOOLS)/userland-mangler |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
50 |
|
5632
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
51 |
GENERATE_HISTORY= $(WS_TOOLS)/generate-history |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
52 |
HISTORY= history |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
53 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
54 |
WS_TRANSFORMS = $(WS_TOP)/transforms |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
55 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
56 |
# Package headers should all pretty much follow the same format |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
57 |
METADATA_TEMPLATE = $(WS_TOP)/transforms/manifest-metadata-template |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
58 |
COPYRIGHT_TEMPLATE = $(WS_TOP)/transforms/copyright-template |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
59 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
60 |
# order is important |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
61 |
GENERATE_TRANSFORMS += $(WS_TOP)/transforms/generate-cleanup |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
62 |
|
683
c613b3449c36
7079363 gcc-3.p5m package manifest file shouldn't deliver .la files
Rich Burridge <rich.burridge@oracle.com>
parents:
582
diff
changeset
|
63 |
PKGMOGRIFY_TRANSFORMS += $(WS_TOP)/transforms/libtool-drop |
c613b3449c36
7079363 gcc-3.p5m package manifest file shouldn't deliver .la files
Rich Burridge <rich.burridge@oracle.com>
parents:
582
diff
changeset
|
64 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
65 |
COMPARISON_TRANSFORMS += $(WS_TOP)/transforms/comparison-cleanup |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
66 |
COMPARISON_TRANSFORMS += $(PKGMOGRIFY_TRANSFORMS) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
67 |
|
2551
0391c5c3b137
16431724 Adjust how license text and Oracle internal tracking numbers are propagated
Rich Burridge <rich.burridge@oracle.com>
parents:
827
diff
changeset
|
68 |
LICENSE_TRANSFORMS = $(WS_TOP)/transforms/license-changes |
0391c5c3b137
16431724 Adjust how license text and Oracle internal tracking numbers are propagated
Rich Burridge <rich.burridge@oracle.com>
parents:
827
diff
changeset
|
69 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
70 |
# order is important |
2551
0391c5c3b137
16431724 Adjust how license text and Oracle internal tracking numbers are propagated
Rich Burridge <rich.burridge@oracle.com>
parents:
827
diff
changeset
|
71 |
PUBLISH_TRANSFORMS += $(LICENSE_TRANSFORMS) |
151
f9e42a3f7095
7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
145
diff
changeset
|
72 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/variant-cleanup |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
197
diff
changeset
|
73 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/autopyc |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
74 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/defaults |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
75 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/actuators |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
76 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/devel |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
77 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/docs |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
78 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/locale |
4072
db0cec748ec0
PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents:
3996
diff
changeset
|
79 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/standard-python-libraries |
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3522
diff
changeset
|
80 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/python-rename |
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3522
diff
changeset
|
81 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/python-3-groups |
3783
9edbfb2ff34a
19492342 Python 3.4 should be built --with-pymalloc
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
82 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/python-3-soabi |
4072
db0cec748ec0
PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents:
3996
diff
changeset
|
83 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/python-3-no-32bit |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
84 |
PUBLISH_TRANSFORMS += $(PKGMOGRIFY_TRANSFORMS) |
3476
c35c8f1a6df1
18139749 userland-incorporator should allow generation of multiple incorporations
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3378
diff
changeset
|
85 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/incorporate |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
86 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/publish-cleanup |
2 | 87 |
|
4563
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4521
diff
changeset
|
88 |
# If we are building "evaluation" packages, add the evaluation information |
4449
7824aa88c6b2
20853169 build should support pre-release requirements
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4376
diff
changeset
|
89 |
# action so that the package(s) display the terms and require acceptance |
7824aa88c6b2
20853169 build should support pre-release requirements
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4376
diff
changeset
|
90 |
# to install. |
4563
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4521
diff
changeset
|
91 |
ifeq ($(BUILD_TYPE),evaluation) |
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4521
diff
changeset
|
92 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/evaluation |
4449
7824aa88c6b2
20853169 build should support pre-release requirements
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4376
diff
changeset
|
93 |
endif |
7824aa88c6b2
20853169 build should support pre-release requirements
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4376
diff
changeset
|
94 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
95 |
PKG_MACROS += MACH=$(MACH) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
96 |
PKG_MACROS += MACH32=$(MACH32) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
97 |
PKG_MACROS += MACH64=$(MACH64) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
98 |
PKG_MACROS += PUBLISHER=$(PUBLISHER) |
827
0944d8c0158b
7169052 Integrate Visual Panels into Userland
Dan Labrecque <dan.labrecque@oracle.com>
parents:
683
diff
changeset
|
99 |
PKG_MACROS += PUBLISHER_LOCALIZABLE=$(PUBLISHER_LOCALIZABLE) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
100 |
PKG_MACROS += CONSOLIDATION=$(CONSOLIDATION) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
101 |
PKG_MACROS += BUILD_VERSION=$(BUILD_VERSION) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
102 |
PKG_MACROS += SOLARIS_VERSION=$(SOLARIS_VERSION) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
103 |
PKG_MACROS += OS_VERSION=$(OS_VERSION) |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
104 |
PKG_MACROS += PKG_SOLARIS_VERSION=$(PKG_SOLARIS_VERSION) |
582
f788d69e0553
7085723 use pkg.human-version
Rich Burridge <rich.burridge@oracle.com>
parents:
379
diff
changeset
|
105 |
PKG_MACROS += HUMAN_VERSION=$(HUMAN_VERSION) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
106 |
PKG_MACROS += IPS_COMPONENT_VERSION=$(IPS_COMPONENT_VERSION) |
93
b579c7b1bb44
7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
84
diff
changeset
|
107 |
PKG_MACROS += COMPONENT_VERSION=$(COMPONENT_VERSION) |
166
db8a55996482
6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
152
diff
changeset
|
108 |
PKG_MACROS += COMPONENT_PROJECT_URL=$(COMPONENT_PROJECT_URL) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
109 |
PKG_MACROS += COMPONENT_ARCHIVE_URL=$(COMPONENT_ARCHIVE_URL) |
379 | 110 |
PKG_MACROS += COMPONENT_HG_URL=$(COMPONENT_HG_URL) |
111 |
PKG_MACROS += COMPONENT_HG_REV=$(COMPONENT_HG_REV) |
|
2551
0391c5c3b137
16431724 Adjust how license text and Oracle internal tracking numbers are propagated
Rich Burridge <rich.burridge@oracle.com>
parents:
827
diff
changeset
|
112 |
PKG_MACROS += COMPONENT_NAME=$(COMPONENT_NAME) |
0391c5c3b137
16431724 Adjust how license text and Oracle internal tracking numbers are propagated
Rich Burridge <rich.burridge@oracle.com>
parents:
827
diff
changeset
|
113 |
PKG_MACROS += TPNO=$(TPNO) |
4521
983757fe4291
21288917 userland packages should include the corresponding changeset id.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4449
diff
changeset
|
114 |
PKG_MACROS += CONSOLIDATION_CHANGESET=$(CONSOLIDATION_CHANGESET) |
983757fe4291
21288917 userland packages should include the corresponding changeset id.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
4449
diff
changeset
|
115 |
PKG_MACROS += CONSOLIDATION_REPOSITORY_URL=$(CONSOLIDATION_REPOSITORY_URL) |
3522
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
116 |
|
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
117 |
# Add any TPNO_* Makefile macros to the pkgmogrify arguments. |
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
118 |
$(foreach macro, $(filter TPNO_%, $(.VARIABLES)), \ |
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
119 |
$(eval PKG_MACROS += $(macro)=$$($(macro))) \ |
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
120 |
) |
ba9e5b4b76ad
20161788 fix TPNO for php 5.3 suhosin
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3476
diff
changeset
|
121 |
|
2881
8cae3c148a42
PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2855
diff
changeset
|
122 |
PKG_MACROS += PYTHON_2.6_ONLY=\# |
8cae3c148a42
PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2855
diff
changeset
|
123 |
PKG_MACROS += PYTHON_2.7_ONLY=\# |
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3522
diff
changeset
|
124 |
PKG_MACROS += PYTHON_3.4_ONLY=\# |
2 | 125 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
126 |
PKG_OPTIONS += $(PKG_MACROS:%=-D %) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
127 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
128 |
MANGLED_DIR = $(PROTO_DIR)/mangled |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
129 |
|
4376
f3801994dee3
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4072
diff
changeset
|
130 |
# We use += below so anyone wishing to put other directories at the beginning |
f3801994dee3
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4072
diff
changeset
|
131 |
# of the list can do so, by setting PKG_PROTO_DIRS before including this file. |
f3801994dee3
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4072
diff
changeset
|
132 |
# So don't change += to = here or components that use this will break. |
4563
5d3e1ffc1ae1
21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents:
4521
diff
changeset
|
133 |
PKG_PROTO_DIRS += $(MANGLED_DIR) $(PROTO_DIR) $(@D) $(COMPONENT_DIR) $(COMPONENT_SRC) $(WS_LICENSES) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
93
diff
changeset
|
134 |
|
59
7500d63edb42
7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
53
diff
changeset
|
135 |
MANIFEST_BASE = $(BUILD_DIR)/manifest-$(MACH) |
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
136 |
|
30
440b6ca0641d
Removed $(PUBLISHER) from pkg.fmri package attributes. Renamed package
Danek Duvall <danek.duvall@oracle.com>
parents:
27
diff
changeset
|
137 |
CANONICAL_MANIFESTS = $(wildcard *.p5m) |
5632
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
138 |
ifneq ($(wildcard $(HISTORY)),) |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
139 |
HISTORICAL_MANIFESTS = $(shell $(NAWK) -v FUNCTION=name -f $(GENERATE_HISTORY) < $(HISTORY)) |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
140 |
endif |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
141 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
142 |
# Look for manifests which need to be duplicated for each version of python. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
143 |
ifeq ($(findstring -PYVER,$(CANONICAL_MANIFESTS)),-PYVER) |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
144 |
UNVERSIONED_MANIFESTS = $(filter-out %GENFRAG.p5m,$(filter-out %-PYVER.p5m,$(CANONICAL_MANIFESTS))) |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
145 |
PY_MANIFESTS = $(filter %-PYVER.p5m,$(CANONICAL_MANIFESTS)) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
146 |
PYV_MANIFESTS = $(foreach v,$(shell echo $(PYTHON_VERSIONS) | tr -d .),$(shell echo $(PY_MANIFESTS) | sed -e 's/-PYVER.p5m/-$(v).p5m/g')) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
147 |
PYNV_MANIFESTS = $(shell echo $(PY_MANIFESTS) | sed -e 's/-PYVER//') |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
148 |
else |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
149 |
UNVERSIONED_MANIFESTS = $(CANONICAL_MANIFESTS) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
150 |
endif |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
151 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
152 |
# Look for manifests which need to be duplicated for each version of perl. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
153 |
ifeq ($(findstring -PERLVER,$(UNVERSIONED_MANIFESTS)),-PERLVER) |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
154 |
NOPERL_MANIFESTS = $(filter-out %GENFRAG.p5m,$(filter-out %-PERLVER.p5m,$(UNVERSIONED_MANIFESTS))) |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
155 |
PERL_MANIFESTS = $(filter %-PERLVER.p5m,$(UNVERSIONED_MANIFESTS)) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
156 |
PERLV_MANIFESTS = $(foreach v,$(shell echo $(PERL_VERSIONS) | tr -d .),$(shell echo $(PERL_MANIFESTS) | sed -e 's/-PERLVER.p5m/-$(v).p5m/g')) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
157 |
PERLNV_MANIFESTS = $(shell echo $(PERL_MANIFESTS) | sed -e 's/-PERLVER//') |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
158 |
else |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
159 |
NOPERL_MANIFESTS = $(UNVERSIONED_MANIFESTS) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
160 |
endif |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
161 |
|
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
162 |
# Look for manifests which need to be duplicated for each version of ruby. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
163 |
# NOPERL_MANIFESTS represents the manifests that are not Python or |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
164 |
# Perl manifests. Extract the Ruby Manifests from NOPERL_MANIFESTS. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
165 |
# Any remaining manifests are stored in NONRUBY_MANIFESTS |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
166 |
ifeq ($(findstring -RUBYVER,$(NOPERL_MANIFESTS)),-RUBYVER) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
167 |
NORUBY_MANIFESTS = $(filter-out %GENFRAG.p5m,\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
168 |
$(filter-out %-RUBYVER.p5m,$(NOPERL_MANIFESTS))) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
169 |
RUBY_MANIFESTS = $(filter %-RUBYVER.p5m,$(NOPERL_MANIFESTS)) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
170 |
RUBYV_MANIFESTS = $(foreach v,$(shell echo $(RUBY_VERSIONS)),\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
171 |
$(shell echo $(RUBY_MANIFESTS) |\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
172 |
sed -e 's/-RUBYVER.p5m/-$(shell echo $(v) |\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
173 |
cut -d. -f1,2 | tr -d .).p5m/g')) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
174 |
RUBYNV_MANIFESTS = $(shell echo $(RUBY_MANIFESTS) | sed -e 's/-RUBYVER//') |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
175 |
else |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
176 |
NORUBY_MANIFESTS = $(NOPERL_MANIFESTS) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
177 |
endif |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
178 |
|
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
179 |
VERSIONED_MANIFESTS = \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
180 |
$(PYV_MANIFESTS) $(PYNV_MANIFESTS) \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
181 |
$(PERLV_MANIFESTS) $(PERLNV_MANIFESTS) \ |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
182 |
$(RUBYV_MANIFESTS) $(RUBYNV_MANIFESTS) \ |
5632
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
183 |
$(NORUBY_MANIFESTS) $(HISTORICAL_MANIFESTS) |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
184 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
185 |
GENERATED = $(MANIFEST_BASE)-generated |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
186 |
COMBINED = $(MANIFEST_BASE)-combined |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
187 |
MANIFESTS = $(VERSIONED_MANIFESTS:%=$(MANIFEST_BASE)-%) |
2 | 188 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
189 |
|
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
190 |
DEPENDED=$(VERSIONED_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.depend) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
191 |
RESOLVED=$(VERSIONED_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.depend.res) |
185
773dda89f186
7036473 dependency resolution should happen in one step for all component's packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
192 |
PUBLISHED=$(RESOLVED:%.depend.res=%.published) |
2 | 193 |
|
255
52abf74b9323
7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
206
diff
changeset
|
194 |
COPYRIGHT_FILE ?= $(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
195 |
IPS_COMPONENT_VERSION ?= $(COMPONENT_VERSION) |
7
d42300cb8715
add license/copyright info for ips generation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
4
diff
changeset
|
196 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
197 |
.DEFAULT: publish |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
198 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
199 |
.SECONDARY: |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
200 |
|
197
fd801ec0737c
7038707 move acpidump to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
196
diff
changeset
|
201 |
# allow publishing to be overridden, such as when |
fd801ec0737c
7038707 move acpidump to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
196
diff
changeset
|
202 |
# a package is for one architecture only. |
fd801ec0737c
7038707 move acpidump to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
196
diff
changeset
|
203 |
PUBLISH_STAMP ?= $(BUILD_DIR)/.published-$(MACH) |
fd801ec0737c
7038707 move acpidump to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
196
diff
changeset
|
204 |
|
fd801ec0737c
7038707 move acpidump to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
196
diff
changeset
|
205 |
publish: build install $(PUBLISH_STAMP) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
206 |
|
30
440b6ca0641d
Removed $(PUBLISHER) from pkg.fmri package attributes. Renamed package
Danek Duvall <danek.duvall@oracle.com>
parents:
27
diff
changeset
|
207 |
sample-manifest: $(GENERATED).p5m |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
208 |
|
46
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
209 |
$(GENERATED).p5m: install |
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
210 |
$(PKGSEND) generate $(PKG_HARDLINKS:%=--target %) $(PROTO_DIR) | \ |
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
211 |
$(PKGMOGRIFY) $(PKG_OPTIONS) /dev/fd/0 $(GENERATE_TRANSFORMS) | \ |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
212 |
sed -e '/^$$/d' -e '/^#.*$$/d' | $(PKGFMT) | \ |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
213 |
cat $(METADATA_TEMPLATE) - >$@ |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
214 |
|
46
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
215 |
# copy the canonical manifest(s) to the build tree |
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
216 |
$(MANIFEST_BASE)-%.generate: %.p5m canonical-manifests |
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
217 |
cat $(METADATA_TEMPLATE) $< >$@ |
2 | 218 |
|
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
219 |
# The text of a transform that will emit a dependency conditional on the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
220 |
# presence of a particular version of a runtime, which will then draw in the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
221 |
# runtime-version-specific version of the package we're operating on. $(1) is |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
222 |
# the name of the runtime package, and $(2) is the version suffix. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
223 |
mkgeneric = \ |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
224 |
echo "<transform set name=pkg.fmri value=(?:pkg:/)?(.+)-\#\#\#PYV\#\#\#@(.*)" \ |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
225 |
"-> emit depend nodrop=true type=conditional" \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
226 |
"predicate=$(1)-$(2) fmri=%<1>-$(2)@%<2>>" >> $@; |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
227 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
228 |
# Define and execute a macro that generates a rule to create a manifest for a |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
229 |
# python module specific to a particular version of the python runtime. |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
230 |
# Creates build/manifest-*-modulename-##.p5m file where ## is replaced with |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
231 |
# the version number. |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
232 |
define python-manifest-rule |
2881
8cae3c148a42
PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2855
diff
changeset
|
233 |
$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).mogrified: PKG_MACROS += PYTHON_$(1)_ONLY= |
8cae3c148a42
PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2855
diff
changeset
|
234 |
|
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
235 |
$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PYVER.p5m |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
236 |
if [ -f $$*-$(shell echo $(1) | tr -d .)GENFRAG.p5m ]; then cat $$*-$(shell echo $(1) | tr -d .)GENFRAG.p5m >> $$@; fi |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
237 |
$(PKGMOGRIFY) -D PYVER=$(1) -D PYV=$(shell echo $(1) | tr -d .) $$< > $$@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
238 |
endef |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
239 |
$(foreach ver,$(PYTHON_VERSIONS),$(eval $(call python-manifest-rule,$(ver)))) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
240 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
241 |
# A rule to create a helper transform package for python, that will insert the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
242 |
# appropriate conditional dependencies into a python library's |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
243 |
# runtime-version-generic package to pull in the version-specific bits when the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
244 |
# corresponding version of python is on the system. |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
245 |
$(BUILD_DIR)/mkgeneric-python: $(WS_MAKE_RULES)/shared-macros.mk |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
246 |
$(RM) $@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
247 |
$(foreach ver,$(shell echo $(PYTHON_VERSIONS) | tr -d .), \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
248 |
$(call mkgeneric,runtime/python,$(ver))) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
249 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
250 |
# Build Python version-wrapping manifests from the generic version. |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
251 |
# Creates build/manifest-*-modulename.p5m file. |
3787
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
252 |
# Note that the mkgeneric transform uses the literal string "###PYV###" |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
253 |
# as the place-holder for the Python version (for mkgeneric-python) and |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
254 |
# the Perl version (for mkgeneric-perl below) and the Ruby version (for |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
255 |
# mkgeneric-ruby further below). The authors did not anticipate that this |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
256 |
# mechanism would be extended beyond Python when they wrote it; something |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
257 |
# more generic like LANGVER might make more sense, but for now we are |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
258 |
# sticking with something known to work. |
2732
1a65a9df6f2e
17300973 ips.mk is a little racey
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2710
diff
changeset
|
259 |
$(MANIFEST_BASE)-%.p5m: %-PYVER.p5m $(BUILD_DIR)/mkgeneric-python |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
260 |
$(PKGMOGRIFY) -D PYV=###PYV### $(BUILD_DIR)/mkgeneric-python \ |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
261 |
$(WS_TOP)/transforms/mkgeneric $< > $@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
262 |
if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
263 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
264 |
# Define and execute a macro that generates a rule to create a manifest for a |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
265 |
# perl module specific to a particular version of the perl runtime. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
266 |
define perl-manifest-rule |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
267 |
$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PERLVER.p5m |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
268 |
$(PKGMOGRIFY) -D PERLVER=$(1) -D PLV=$(shell echo $(1) | tr -d .) \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
269 |
-D PERL_ARCH=$(call PERL_ARCH_FUNC,$(PERL.$(1))) $$< > $$@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
270 |
endef |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
271 |
$(foreach ver,$(PERL_VERSIONS),$(eval $(call perl-manifest-rule,$(ver)))) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
272 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
273 |
# A rule to create a helper transform package for perl, that will insert the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
274 |
# appropriate conditional dependencies into a perl library's |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
275 |
# runtime-version-generic package to pull in the version-specific bits when the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
276 |
# corresponding version of perl is on the system. |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
277 |
$(BUILD_DIR)/mkgeneric-perl: $(WS_MAKE_RULES)/shared-macros.mk |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
278 |
$(RM) $@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
279 |
$(foreach ver,$(shell echo $(PERL_VERSIONS) | tr -d .), \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
280 |
$(call mkgeneric,runtime/perl,$(ver))) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
281 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
282 |
# Build Perl version-wrapping manifests from the generic version. |
3787
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
283 |
# See the block comment above about why "###PYV###" is used here even |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
284 |
# though this is for Perl rather than Python. |
2732
1a65a9df6f2e
17300973 ips.mk is a little racey
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2710
diff
changeset
|
285 |
$(MANIFEST_BASE)-%.p5m: %-PERLVER.p5m $(BUILD_DIR)/mkgeneric-perl |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
286 |
$(PKGFMT) $(PKGFMT_CHECK_ARGS) $(CANONICAL_MANIFESTS) |
3787
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
287 |
$(PKGMOGRIFY) -D PLV=###PYV### $(BUILD_DIR)/mkgeneric-perl \ |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
288 |
$(WS_TOP)/transforms/mkgeneric $< > $@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
289 |
if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
290 |
|
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
291 |
# Define and execute a macro that generates a rule to create a manifest for a |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
292 |
# ruby module specific to a particular version of the ruby runtime. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
293 |
# Creates build/manifest-*-modulename-##.p5m file where ## is replaced with |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
294 |
# the version number. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
295 |
define ruby-manifest-rule |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
296 |
$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).mogrified: \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
297 |
PKG_MACROS += RUBY_VERSION=$(1) RUBY_LIB_VERSION=$(2) \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
298 |
RUBYV=$(subst .,,$(1)) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
299 |
|
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
300 |
$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-RUBYVER.p5m |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
301 |
if [ -f $$*-$(shell echo $(1) | tr -d .)GENFRAG.p5m ]; then \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
302 |
cat $$*-$(shell echo $(1) | tr -d .)GENFRAG.p5m >> $$@; \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
303 |
fi |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
304 |
$(PKGMOGRIFY) -D RUBY_VERSION=$(1) -D RUBY_LIB_VERSION=$(2) \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
305 |
-D RUBYV=$(shell echo $(1) | tr -d .) $$< > $$@ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
306 |
endef |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
307 |
$(foreach ver,$(RUBY_VERSIONS),\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
308 |
$(eval $(call ruby-manifest-rule,$(shell echo $(ver) | \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
309 |
cut -d. -f1,2),$(ver)))) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
310 |
|
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
311 |
# A rule to create a helper transform package for ruby, that will insert the |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
312 |
# appropriate conditional dependencies into a ruby library's |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
313 |
# runtime-version-generic package to pull in the version-specific bits when the |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
314 |
# corresponding version of ruby is on the system. |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
315 |
$(BUILD_DIR)/mkgeneric-ruby: $(WS_MAKE_RULES)/shared-macros.mk |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
316 |
$(RM) $@ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
317 |
$(foreach ver,$(RUBY_VERSIONS),\ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
318 |
$(call mkgeneric,runtime/ruby,$(shell echo $(ver) | \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
319 |
cut -d. -f1,2 | tr -d .))) |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
320 |
|
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
321 |
# Build Ruby version-wrapping manifests from the generic version. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
322 |
# Creates build/manifest-*-modulename.p5m file. |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
323 |
# |
3787
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
324 |
# See the block comment above about why "###PYV###" is used here even |
e0eb0826110c
20026411 library/perl-5/database package dependencies got dropped
John Beck <John.Beck@Oracle.COM>
parents:
3783
diff
changeset
|
325 |
# though this is for Ruby rather than Python. |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
326 |
$(MANIFEST_BASE)-%.p5m: %-RUBYVER.p5m $(BUILD_DIR)/mkgeneric-ruby |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
327 |
$(PKGMOGRIFY) -D RUBYV=###PYV### $(BUILD_DIR)/mkgeneric-ruby \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
328 |
$(WS_TOP)/transforms/mkgeneric $< > $@ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
329 |
if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2994
diff
changeset
|
330 |
|
5632
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
331 |
# Rule to generate historical manifests from the $(HISTORY) file. |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
332 |
define history-manifest-rule |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
333 |
$(MANIFEST_BASE)-$(1): $(HISTORY) $(BUILD_DIR) |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
334 |
$(NAWK) -v TARGET=$(1) -v FUNCTION=manifest -f $(GENERATE_HISTORY) < \ |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
335 |
$(HISTORY) > $$@ |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
336 |
endef |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
337 |
$(foreach mfst,$(HISTORICAL_MANIFESTS),$(eval $(call history-manifest-rule,$(mfst)))) |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
338 |
|
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
339 |
# mogrify non-parameterized manifests |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
340 |
$(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR) |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
341 |
$(PKGMOGRIFY) $(PKG_OPTIONS) $< \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
342 |
$(PUBLISH_TRANSFORMS) | \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
343 |
sed -e '/^$$/d' -e '/^#.*$$/d' | uniq >$@ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
344 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
345 |
# mogrify parameterized manifests |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
346 |
$(MANIFEST_BASE)-%.mogrified: $(MANIFEST_BASE)-%.p5m $(BUILD_DIR) |
53
e398cb2c4b45
7004049 SUNWa2ps should move to userland with a2ps
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
49
diff
changeset
|
347 |
$(PKGMOGRIFY) $(PKG_OPTIONS) $< \ |
46
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
348 |
$(PUBLISH_TRANSFORMS) | \ |
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
349 |
sed -e '/^$$/d' -e '/^#.*$$/d' | uniq >$@ |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
350 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
351 |
# mangle the file contents |
369
cc8c00719da9
PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
255
diff
changeset
|
352 |
$(BUILD_DIR) $(MANGLED_DIR): |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
353 |
$(MKDIR) $@ |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
354 |
|
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
355 |
PKGMANGLE_OPTIONS = -D $(MANGLED_DIR) $(PKG_PROTO_DIRS:%=-d %) |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
356 |
$(MANIFEST_BASE)-%.mangled: $(MANIFEST_BASE)-%.mogrified $(MANGLED_DIR) |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
357 |
$(PKGMANGLE) $(PKGMANGLE_OPTIONS) -m $< >$@ |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
358 |
|
76
a084497ff237
7016379 migrate elinks to userland (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
75
diff
changeset
|
359 |
# generate dependencies |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
93
diff
changeset
|
360 |
PKGDEPEND_GENERATE_OPTIONS = -m $(PKG_PROTO_DIRS:%=-d %) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
361 |
$(MANIFEST_BASE)-%.depend: $(MANIFEST_BASE)-%.mangled |
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3522
diff
changeset
|
362 |
$(ENV) $(COMPONENT_PUBLISH_ENV) $(PKGDEPEND) generate \ |
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3522
diff
changeset
|
363 |
$(PKGDEPEND_GENERATE_OPTIONS) $< >$@ |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
364 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
365 |
# pkgdepend resolve builds a map of all installed packages by default. This |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
366 |
# makes dependency resolution particularly slow. We can dramatically improve |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
367 |
# performance here by creating a file with a list of packages that we know |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
368 |
# are needed, dramatically reducing the overhead involved in creating and |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
369 |
# searching this map. |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
370 |
# |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
371 |
# Generate a resolve.deps file from the dependencies in the Makefile and |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
372 |
# fragments that it uses. |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
373 |
RESOLVE_DEPS=$(BUILD_DIR)/resolve.deps |
2584
ad7971db6ec0
15960689 pkgdepend resolve takes longer than it might
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2576
diff
changeset
|
374 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
375 |
$(RESOLVE_DEPS): $(MAKEFILE_PREREQ) $(BUILD_DIR) |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
376 |
@for pkg in $(REQUIRED_PACKAGES:%=/%) ; do \ |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
377 |
echo $${pkg} ; \ |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
378 |
done | sort -u >$@ |
2584
ad7971db6ec0
15960689 pkgdepend resolve takes longer than it might
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2576
diff
changeset
|
379 |
|
185
773dda89f186
7036473 dependency resolution should happen in one step for all component's packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
380 |
# resolve the dependencies all at once |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
381 |
$(BUILD_DIR)/.resolved-$(MACH): $(DEPENDED) $(RESOLVE_DEPS) |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
382 |
$(PKGDEPEND) resolve $(RESOLVE_DEPS:%=-e %) -m $(DEPENDED) |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
383 |
$(TOUCH) $@ |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
384 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
385 |
# |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
386 |
# Generate a set of REQUIRED_PACKAGES based on what is needed to for pkgdepend |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
387 |
# to resolve properly. Automatically append this to your Makefile for the truly |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
388 |
# lazy among us. This is only a piece of the REQUIRED_PACKAGES puzzle. |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
389 |
# You must still include packages for tools you build and test with. |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
390 |
# |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
391 |
REQUIRED_PACKAGES:: $(RESOLVED) |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
392 |
$(GMAKE) RESOLVE_DEPS= $(BUILD_DIR)/.resolved-$(MACH) |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
393 |
@echo "# Auto-generated contents below. Please manually verify and remove this comment" >>Makefile |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
394 |
@$(PKGMOGRIFY) $(WS_TRANSFORMS)/$@ $(RESOLVED) | \ |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
395 |
$(GSED) -e '/^[\t ]*$$/d' -e '/^#/d' | sort -u >>Makefile |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
396 |
@echo "*** Please edit your Makefile and verify the new content at the end ***" |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
397 |
|
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
398 |
# lint the manifests all at once |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
399 |
$(BUILD_DIR)/.linted-$(MACH): $(BUILD_DIR)/.resolved-$(MACH) |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
400 |
@echo "VALIDATING MANIFEST CONTENT: $(RESOLVED)" |
117
8f634eb6f66b
7023683 userland pkglint checks should look in more places for content
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
401 |
$(ENV) PYTHONPATH=$(WS_TOOLS)/python PROTO_PATH="$(PKG_PROTO_DIRS)"\ |
2994
3705b92dce6a
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
2910
diff
changeset
|
402 |
SOLARIS_VERSION=$(SOLARIS_VERSION)\ |
84
b80cfd4e0a16
7000952 Userland package validation needs some love
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
76
diff
changeset
|
403 |
$(PKGLINT) $(CANONICAL_REPO:%=-c $(WS_LINT_CACHE)) \ |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
404 |
-f $(WS_TOOLS)/pkglintrc $(RESOLVED) |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
405 |
$(TOUCH) $@ |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
406 |
|
2910
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
407 |
lintme: FRC |
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
408 |
@echo "VALIDATING MANIFEST CONTENT: $(RESOLVED)" |
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
409 |
$(ENV) PYTHONPATH=$(WS_TOOLS)/python PROTO_PATH="$(PKG_PROTO_DIRS)"\ |
2994
3705b92dce6a
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
2910
diff
changeset
|
410 |
SOLARIS_VERSION=$(SOLARIS_VERSION)\ |
2910
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
411 |
$(PKGLINT) $(CANONICAL_REPO:%=-c $(WS_LINT_CACHE)) \ |
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
412 |
-f $(WS_TOOLS)/pkglintrc $(RESOLVED) |
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
413 |
|
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
414 |
FRC: |
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2881
diff
changeset
|
415 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
416 |
|
46
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
417 |
# published |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
93
diff
changeset
|
418 |
PKGSEND_PUBLISH_OPTIONS = -s $(PKG_REPO) publish --fmri-in-manifest |
2710
3c5579720afc
17231570 full userland build sporadically fails during 'pkgsend publish'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2584
diff
changeset
|
419 |
PKGSEND_PUBLISH_OPTIONS += --no-catalog |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
93
diff
changeset
|
420 |
PKGSEND_PUBLISH_OPTIONS += $(PKG_PROTO_DIRS:%=-d %) |
196
816e398e992c
6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents:
185
diff
changeset
|
421 |
PKGSEND_PUBLISH_OPTIONS += -T \*.py |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
422 |
|
6035
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
423 |
# PKGREPO_REMOVE_BEFORE_PUBLISH remove previously published versions of this package |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
424 |
# before publishing the new build |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
425 |
PKGREPO_REMOVE_BEFORE_PUBLISH ?= no |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
426 |
|
185
773dda89f186
7036473 dependency resolution should happen in one step for all component's packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
427 |
$(MANIFEST_BASE)-%.published: $(MANIFEST_BASE)-%.depend.res $(BUILD_DIR)/.linted-$(MACH) |
6035
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
428 |
ifeq ($(PKGREPO_REMOVE_BEFORE_PUBLISH),yes) |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
429 |
-$(PKGREPO) -s $(PKG_REPO) remove \ |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
430 |
$(shell $(CAT) $< $(WS_TOP)/transforms/print-pkgs | \ |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
431 |
$(PKGMOGRIFY) $(PKG_OPTIONS) /dev/fd/0 | \ |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
432 |
sed -e '/^$$/d' -e '/^#.*$$/d' | sort -u) |
c9748fcc32de
PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents:
5632
diff
changeset
|
433 |
endif |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
93
diff
changeset
|
434 |
$(PKGSEND) $(PKGSEND_PUBLISH_OPTIONS) $< |
46
d4d60962c33f
generate detectable dependencies at build time
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
435 |
$(PKGFMT) <$< >$@ |
2 | 436 |
|
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
437 |
$(BUILD_DIR)/.published-$(MACH): $(PUBLISHED) |
2710
3c5579720afc
17231570 full userland build sporadically fails during 'pkgsend publish'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2584
diff
changeset
|
438 |
ifndef DISABLE_IPS_CATALOG_AND_INDEX_UPDATES |
3c5579720afc
17231570 full userland build sporadically fails during 'pkgsend publish'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2584
diff
changeset
|
439 |
$(PKGREPO) refresh -s $(PKG_REPO) |
3c5579720afc
17231570 full userland build sporadically fails during 'pkgsend publish'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2584
diff
changeset
|
440 |
endif |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
441 |
$(TOUCH) $@ |
2 | 442 |
|
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
443 |
print-package-names: canonical-manifests |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
444 |
@cat $(VERSIONED_MANIFESTS) $(WS_TOP)/transforms/print-pkgs | \ |
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
445 |
$(PKGMOGRIFY) $(PKG_OPTIONS) /dev/fd/0 | \ |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
446 |
sed -e '/^$$/d' -e '/^#.*$$/d' | sort -u |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
447 |
|
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
448 |
print-package-paths: canonical-manifests |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
449 |
@cat $(VERSIONED_MANIFESTS) $(WS_TOP)/transforms/print-paths | \ |
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
450 |
$(PKGMOGRIFY) $(PKG_OPTIONS) /dev/fd/0 | \ |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
451 |
sed -e '/^$$/d' -e '/^#.*$$/d' | sort -u |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
452 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
453 |
install-packages: publish |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
454 |
@if [ $(IS_GLOBAL_ZONE) = 0 -o x$(ROOT) != x ]; then \ |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
2551
diff
changeset
|
455 |
cat $(VERSIONED_MANIFESTS) $(WS_TOP)/transforms/print-paths | \ |
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
456 |
$(PKGMOGRIFY) $(PKG_OPTIONS) /dev/fd/0 | \ |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
457 |
sed -e '/^$$/d' -e '/^#.*$$/d' -e 's;/;;' | sort -u | \ |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
458 |
(cd $(PROTO_DIR) ; pfexec /bin/cpio -dump $(ROOT)) ; \ |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
459 |
else ; \ |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
460 |
echo "unsafe to install package(s) automatically" ; \ |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
461 |
fi |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
462 |
|
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
117
diff
changeset
|
463 |
$(RESOLVED): install |
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
464 |
|
5632
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
465 |
canonical-manifests: $(CANONICAL_MANIFESTS) $(MAKEFILE_PREREQ) $(PATCHES) \ |
4056b7992034
21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
4563
diff
changeset
|
466 |
$(HISTORY) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
467 |
ifeq ($(strip $(CANONICAL_MANIFESTS)),) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
468 |
# If there were no canonical manifests in the workspace, nothing will |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
469 |
# be published and we should fail. A sample manifest can be generated |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
470 |
# with |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
471 |
# $ gmake sample-manifest |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
472 |
# Once created, it will need to be reviewed, edited, and added to the |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
473 |
# workspace. |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
474 |
$(error Missing canonical manifest(s)) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
22
diff
changeset
|
475 |
endif |
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
476 |
|
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
477 |
# This converts required paths to containing package names for be able to |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
478 |
# properly setup the build environment for a component. |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3787
diff
changeset
|
479 |
required-pkgs.mk: $(MAKEFILE_PREREQ) |
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
480 |
@echo "generating $@ from Makefile REQUIRED_* data" |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
481 |
@pkg search -H -l '<$(DEPENDS:%=% OR) /bin/true>' \ |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
482 |
| sed -e 's/pkg:\/\(.*\)@.*/REQUIRED_PKGS += \1/g' >$@ |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
483 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
484 |
pre-prep: required-pkgs.mk |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
485 |
|
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
486 |
|
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
30
diff
changeset
|
487 |
CLEAN_PATHS += required-pkgs.mk |