author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7518 | c388d4e1d3ad |
permissions | -rw-r--r-- |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
1 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
3 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
7 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
12 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
18 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
20 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
21 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7518
diff
changeset
|
23 |
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
24 |
# |
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
25 |
BUILD_ARCH= i386 |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
26 |
BUILD_BITS= 64 |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
27 |
COMPILER= gcc |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
28 |
# The golang build process just doesn't work with Parfait. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
29 |
export PARFAIT_BUILD=no |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
30 |
include ../../make-rules/shared-macros.mk |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
31 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
32 |
PATCH_EACH_ARCHIVE= 1 |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
33 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_NAME= golang |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_VERSION= 1.5 |
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
36 |
COMPONENT_MAJOR_VERSION= $(shell echo $(COMPONENT_VERSION) | $(GSED) -e 's/\([0-9]\+\.[0-9]\+\).*/\1/') |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_PROJECT_URL= https://golang.org/ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
38 |
COMPONENT_ARCHIVE= go$(COMPONENT_VERSION).src.tar.gz |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_ARCHIVE_URL= https://storage.googleapis.com/golang/$(COMPONENT_ARCHIVE) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_ARCHIVE_HASH= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
41 |
sha256:be81abec996d5126c05f2d36facc8e58a94d9183a56f026fc9441401d80062db |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_PROJECT_URL= https://golang.org |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7518
diff
changeset
|
43 |
COMPONENT_ANITYA_ID= 1227 |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
44 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
45 |
ARC_CASE= PSARC/2015/203 |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
46 |
TPNO= 23679 |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
47 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
48 |
# Go has a number of supplementary tools and packages that are located in |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
49 |
# separate archives or source repositories. Because Go currently forces a |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
50 |
# recompile of all packages whenever the compiler changes, building and |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
51 |
# delivering them within the same build component build process is the best |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
52 |
# option for now. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
53 |
|
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
54 |
# The long-term plan for packaging Go is roughly as follows: |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
55 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
56 |
# - when SPARC support is integrated into Go upstream, build upstream version |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
57 |
# using system Go for x86, then build Go for SPARC using upstream version |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
58 |
# just built for x86 (cross-compilation), package both at the same time |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
59 |
# - after SPARC version has been available for at least a few builds in the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
60 |
# WOS, switch to building Go with system version for x86 and SPARC |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
61 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
62 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
63 |
# Supplementary packages; these are delivered as source only for now as the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
64 |
# paths to the compiled packages are written directly into the binaries and |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
65 |
# there's no way (currently) to fix that during the build process. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
66 |
SUPP_PACKAGES= crypto image lint net sys text tools tour |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
67 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
68 |
define supp-rules |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
69 |
COMPONENT_NAME_$(1)= $(1) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
70 |
COMPONENT_VERSION_$(1)= $(COMPONENT_VERSION) |
6911
7b878dfe6f0d
24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents:
5833
diff
changeset
|
71 |
COMPONENT_LABEL_$(1)= |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
72 |
COMPONENT_IMPORT_SRC_$(1)= golang.org/x |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
73 |
GIT_REPO_$(1)= https://github.com/golang/$(1).git |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
74 |
TPNO_$(1)= $(TPNO) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
75 |
endef |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
76 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
77 |
$(foreach suffix, $(SUPP_PACKAGES), $(eval $(call supp-rules,$(suffix)))) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
78 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
79 |
# Desired "revision" of Go's "community" libraries; these are arbitrary |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
80 |
# revisions chosen from the last commit to the respective repository at the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
81 |
# same time that this component was updated as there is no formal release |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
82 |
# process for these packages. Whenever Go is updated, these should be as well. |
5781
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
83 |
GIT_COMMIT_ID_crypto= 1777f3ba8c1fed80fcaec3317e3aaa4f627764d2 |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
84 |
GIT_COMMIT_ID_image= baddd3465a05d84a6d8d3507547a91cb188c81ea |
5781
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
85 |
GIT_COMMIT_ID_lint= 8f348af5e29faa4262efdc14302797f23774e477 |
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
86 |
GIT_COMMIT_ID_net= fb93926129b8ec0056f2f458b1f519654814edf0 |
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
87 |
GIT_COMMIT_ID_sys= 9eef40adf05b951699605195b829612bd7b69952 |
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
88 |
GIT_COMMIT_ID_text= 5ee49cfe751141f8017047bab800d1f528ee3be1 |
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
89 |
GIT_COMMIT_ID_tools= 5da1e91fb2cc877989e7c73748b505a0612956f2 |
ecbdf40c0a37
23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5780
diff
changeset
|
90 |
GIT_COMMIT_ID_tour= 41d86d51aaa4f1cf4f66e42456ba137c93cad950 |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
91 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
92 |
# Resulting hash of related git commit once archived. |
5833
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
93 |
GIT_HASH_crypto= sha256:05003de0b534b6e0303dc7c2a0f88a1cd53af11acde96fa5a38bcbaf31250c5e |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
94 |
GIT_HASH_image= sha256:96951cea9d34603209961d46010610894df6c708321e1b4781d71bdd180e75b8 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
95 |
GIT_HASH_lint= sha256:1ad5bbf9c21327c73cb67db1329aee8253e18de994302c8ce1a98581bda4da44 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
96 |
GIT_HASH_net= sha256:ca7830ac9af95232204ebc52d27c4726c32e4c0df760e039faba0224075fcb59 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
97 |
GIT_HASH_sys= sha256:b5fdef2664d43430e58250c25564b0376895eb44fbd7e292d5251e5deea8a0c8 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
98 |
GIT_HASH_text= sha256:f65d0191d15042773899efe405fd3e4168922bba2494b2e68f0408bbef23e777 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
99 |
GIT_HASH_tools= sha256:c260308533abc9ea95328eee34616f59ccef1737c51be9be6d652f538777b661 |
c1e66c53301d
23126845 golang download target fails if source not cached
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5797
diff
changeset
|
100 |
GIT_HASH_tour= sha256:c484f1dbdd67e5108418574d808daf223cc4c544c0f9e4bea4150978197914bc |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
101 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
102 |
# Go package imports for lint are found in github directory. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
103 |
COMPONENT_IMPORT_SRC_lint= github.com/golang |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
104 |
|
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
105 |
# Go's "not well-formed" elf objects confuse elfsign, which then causes |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
106 |
# problems for RE. For now, we workaround this by adding the |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
107 |
# 'com.oracle.elfsign=false' tag to every elf object. |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
108 |
NO_ELFSIGN_MOG= $(BUILD_DIR)/no-elfsign.mog |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
109 |
|
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
110 |
# We're x86-only for now. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
111 |
ifeq ($(MACH), sparc) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
112 |
PUBLISH_STAMP= |
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
113 |
else |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
114 |
PUBLISH_STAMP= $(NO_ELFSIGN_MOG) $(BUILD_DIR)/.published-$(MACH) |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
115 |
endif |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
116 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
117 |
# Bake in where Go package will be installed. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
118 |
GOROOT_FINAL= /usr/lib/golang/$(COMPONENT_MAJOR_VERSION) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
119 |
# Enable easier stack unwinding for debugging. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
120 |
GOEXPERIMENT= framepointer |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
121 |
COMPONENT_BUILD_ENV += GOROOT_FINAL="$(GOROOT_FINAL)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
122 |
COMPONENT_BUILD_ENV += GOEXPERIMENT="$(GOEXPERIMENT)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
123 |
COMPONENT_BUILD_ENV += \ |
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
124 |
GOROOT_BOOTSTRAP="$(USRLIBDIR)/golang/1.5" |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
125 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
126 |
# Install root for supplementary packages. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
127 |
SUPP_ROOT=$(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
128 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
129 |
# For convenience during installation of supplementary packages. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
130 |
COMPONENT_INSTALL_ENV += PATH="$(PROTO_DIR)$(GOROOT_FINAL)/bin:$(PATH)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
131 |
COMPONENT_INSTALL_ENV += GOROOT="$(PROTO_DIR)$(GOROOT_FINAL)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
132 |
COMPONENT_INSTALL_ENV += GOPATH="$(SUPP_ROOT)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
133 |
|
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
134 |
BUILD_STYLE= justmake |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
135 |
BUILD_64 += $(BUILD_DIR)/man1/go.1 |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
136 |
INSTALL_64 := build $(INSTALL_64) |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
137 |
include $(WS_MAKE_RULES)/common.mk |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
138 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
139 |
# Simplify source copying for install by eliding patch detritus. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
140 |
GPATCH_BACKUP= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
141 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
142 |
# Enable local transforms. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
143 |
PKG_OPTIONS += -I $(COMPONENT_DIR) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
144 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
145 |
# Avoid some of the default transforms: |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
146 |
# - facet.devel serves no useful purpose for a development package |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
147 |
# - facet.doc wrongly assumes all things in a doc directory are documentation; |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
148 |
# in Go's case, some are binaries |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
149 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
150 |
# This requires completely redefining PUBLISH_TRANSFORMS for now. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
151 |
PUBLISH_TRANSFORMS= $(LICENSE_TRANSFORMS) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
152 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/variant-cleanup |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
153 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/defaults |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
154 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/actuators |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
155 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/locale |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
156 |
PUBLISH_TRANSFORMS += $(PKGMOGRIFY_TRANSFORMS) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
157 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/incorporate |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
158 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/publish-cleanup |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
159 |
ifeq ($(BUILD_TYPE),evaluation) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
160 |
PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/evaluation |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
161 |
endif |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
162 |
|
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
163 |
$(NO_ELFSIGN_MOG): install |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
164 |
cd $(PROTO_DIR); \ |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
165 |
find . -type f -exec elffile {} + | grep 'ELF [36]' | \ |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
166 |
$(GSED) -e 's/^..\(.*\):.*$$/<transform file path=\1$$ -> \\\ |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
167 |
default com.oracle.elfsign false>/' > $@ |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
168 |
|
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
169 |
PUBLISH_TRANSFORMS += $(NO_ELFSIGN_MOG) |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
170 |
|
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
171 |
# Building go from the source repository version requires that we set an |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
172 |
# effective version and add some sort of unique identifier (in the case of |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
173 |
# pre-release versions), so we use 'devel' + archive hash + date similar to how |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
174 |
# Go internally determines one normally from git revision info. Uncomment the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
175 |
# block below when building from the upstream source repository: |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
176 |
#COMPONENT_POST_UNPACK_ACTION= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
177 |
# $(MV) go-master $(COMPONENT_SRC) && \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
178 |
# $(TOUCH) $(COMPONENT_SRC)/VERSION && \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
179 |
# echo "devel $(shell digest -a md5 $(COMPONENT_ARCHIVE)) \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
180 |
# $(shell date -u +'%a %b %e %T %Z %Y')" > \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
181 |
# $(COMPONENT_SRC)/VERSION |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
182 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
183 |
# We have to fiddle with the package archives to get them into the same source |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
184 |
# directory so that we can use the standard build targets. We're effectively |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
185 |
# building multiple components using a single target. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
186 |
COMPONENT_POST_UNPACK_ACTION= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
187 |
$(MV) go $(COMPONENT_SRC) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
188 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
189 |
# Fixup compressed data affected by patches. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
190 |
COMPONENT_PREP_ACTION= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
191 |
cd $(COMPONENT_SRC) && \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
192 |
bzip2 -c src/compress/testdata/Mark.Twain-Tom.Sawyer.txt > \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
193 |
src/compress/bzip2/testdata/Mark.Twain-Tom.Sawyer.txt.bz2 |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
194 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
195 |
# Go doesn't have a standard Makefile-based build process, so override the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
196 |
# default. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
197 |
COMPONENT_BUILD_ACTION= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
198 |
cd $(@D)/src; $(ENV) $(COMPONENT_BUILD_ENV) ./make.bash |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
199 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
200 |
COMPONENT_TARGET_DIR= \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
201 |
$(PROTOUSRLIBDIR)/$(COMPONENT_NAME)/$(COMPONENT_MAJOR_VERSION) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
202 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
203 |
# We can't do any ASLR'ing as the Go 6l linker has no understanding of the |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
204 |
# -z aslr=... option. So just override where needed in the .p5m files. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
205 |
ASLR_MODE = $(ASLR_DISABLE) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
206 |
|
5780
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
207 |
# The timestamp is generated immediately once when the Makefile is evaluated to |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
208 |
# ensure every package gets the same one. |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
209 |
GOTS := $(shell date +"%Y%m%dT%H%M%SZ") |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
210 |
|
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
211 |
# Make sure the source code and object files have identical timestamps so |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
212 |
# the Go compiler doesn't try to rebuild them. |
5780
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
213 |
PKG_MACROS += TIMESTAMP=$(GOTS) |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
214 |
# Extra macros for packaging convenience. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
215 |
PKG_MACROS += COMPONENT_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
216 |
# COMPONENT_MAJOR_VERSION suitable for use in regular expressions. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
217 |
PKG_MACROS += COMPONENT_RE_MAJOR_VERSION=$(subst .,\\.,$(COMPONENT_MAJOR_VERSION)) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
218 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
219 |
COMPONENT_TEST_ENV += PATH="$(@D)/bin:$(PATH)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
220 |
COMPONENT_TEST_ENV += GOROOT="$(@D)" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
221 |
COMPONENT_TEST_DIR= $(@D)/src |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
222 |
COMPONENT_TEST_CMD= ./run.bash |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
223 |
COMPONENT_TEST_TARGETS= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
224 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
225 |
# Go's test suite does not have deterministic output or order, and as such, |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
226 |
# success can only be determined by exit code, not by output comparison. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
227 |
COMPONENT_TEST_CREATE_TRANSFORMS= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
228 |
COMPONENT_TEST_PERFORM_TRANSFORM= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
229 |
COMPONENT_TEST_COMPARE= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
230 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
231 |
XML2ROFF= $(USRSHAREDIR)/xml/xsolbook/python/xml2roff.py |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
232 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
233 |
$(BUILD_DIR)/man1/go.1: |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
234 |
$(XML2ROFF) $(COMPONENT_DIR)/docs/go.1 -o $(BUILD_DIR) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
235 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
236 |
define COMPONENT_INSTALL_ACTION= |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
237 |
($(MKDIR) $(COMPONENT_TARGET_DIR)/src); \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
238 |
(cd $(SOURCE_DIR) && \ |
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
239 |
$(GNUBIN)/find . -maxdepth 1 -print \ |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
240 |
-exec $(GNUBIN)/cp -r \ |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
241 |
--parents {} $(COMPONENT_TARGET_DIR) \;); \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
242 |
(cd $(BUILD_DIR_64) && \ |
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
243 |
$(GNUBIN)/find src -type f \ |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
244 |
-exec $(GNUBIN)/cp --parents {} $(COMPONENT_TARGET_DIR) \;); \ |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
245 |
(cd $(BUILD_DIR_64) && $(CP) -r bin $(COMPONENT_TARGET_DIR)/); \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
246 |
(cd $(BUILD_DIR_64) && $(CP) -r pkg $(COMPONENT_TARGET_DIR)/); \ |
7518
c388d4e1d3ad
PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
6911
diff
changeset
|
247 |
($(MKDIR) $(PROTOUSRSHAREDIR)/golang); \ |
c388d4e1d3ad
PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
6911
diff
changeset
|
248 |
($(CP) $(BUILD_DIR)/man1/go.1 $(PROTOUSRSHAREDIR)/golang/go-$(COMPONENT_MAJOR_VERSION).1); \ |
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
249 |
($(RM) $(NO_ELFSIGN_MOG)) |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
250 |
endef |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
251 |
|
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
252 |
# clear COMPONENT_POST_INSTALL_ACTION so we can append PERL_SCRIPTS_PROCESS |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
253 |
# at the end |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
254 |
COMPONENT_POST_INSTALL_ACTION = |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
255 |
|
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
256 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
257 |
# Magic to deliver supplemental package source into proto area. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
258 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
259 |
define install-rules |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
260 |
$(MANIFEST_BASE)-$(1)-15.mogrified: PKG_PROTO_DIRS= $(MANGLED_DIR) $(PROTO_DIR) $(@D) $(COMPONENT_DIR) $(COMPONENT_SRC_$(1)) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
261 |
|
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
262 |
BUILD_64 += $$(UNPACK_STAMP_$(1)) |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
263 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
264 |
COMPONENT_POST_INSTALL_ACTION += \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
265 |
($(MKDIR) \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
266 |
$(SUPP_ROOT)/src/$$(COMPONENT_IMPORT_SRC_$(1))/$$(COMPONENT_NAME_$(1)); \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
267 |
$(CP) -r $$(COMPONENT_SRC_$(1))/* \ |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
268 |
$(SUPP_ROOT)/src/$$(COMPONENT_IMPORT_SRC_$(1))/$$(COMPONENT_NAME_$(1))); |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
269 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
270 |
endef |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
271 |
|
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
272 |
$(foreach suffix,$(SUPP_PACKAGES), $(eval $(call install-rules,$(suffix)))) |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
273 |
# Install supplementary packages (this cannot be done one-by-one); install |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
274 |
# tools/go/types first to avoid quirk with trimpath and dependencies. This is |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
275 |
# technically a build and install, but go's build command won't "install" |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
276 |
# results, it only verifies a target can be built and dumps it into a temporary |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
277 |
# directory. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
278 |
# |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
279 |
# The -trimpath option used here ensures that the paths recorded in the |
5780
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
280 |
# pre-built packages do not contain the containing directory; the result is a |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
281 |
# path that Go will evaluate relative to $GOPATH and so will pass the "stale" |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
282 |
# object checks that Go performs at build time allowing reuse of the pre-built |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
283 |
# packages. |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
284 |
PROTO_ROOT= $(SUPP_ROOT) |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
285 |
COMPONENT_POST_INSTALL_ACTION += \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
286 |
($(ENV) $(COMPONENT_INSTALL_ENV) go install \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
287 |
-asmflags -trimpath=$(PROTO_ROOT) -gcflags -trimpath=$(PROTO_ROOT) \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
288 |
"golang.org/x/tools/go/types"; \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
289 |
$(ENV) $(COMPONENT_INSTALL_ENV) go install \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
290 |
-asmflags -trimpath=$(PROTO_ROOT) -gcflags -trimpath=$(PROTO_ROOT) \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
291 |
"golang.org/x/..."; \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
292 |
$(ENV) $(COMPONENT_INSTALL_ENV) go install \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
293 |
-asmflags -trimpath=$(PROTO_ROOT) -gcflags -trimpath=$(PROTO_ROOT) \ |
42f59614ccbf
23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5715
diff
changeset
|
294 |
"github.com/golang/..."); |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
295 |
|
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
296 |
PERL_SCRIPTS= \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
297 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/plan9/mksyscall.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
298 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_netbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
299 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksyscall_solaris.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
300 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksyscall.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
301 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_freebsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
302 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysctl_openbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
303 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_dragonfly.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
304 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_openbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
305 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_linux.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
306 |
$(PROTOUSRLIBDIR)/gocode/1.5/src/golang.org/x/sys/unix/mksysnum_darwin.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
307 |
$(PROTOUSRLIBDIR)/golang/1.5/src/regexp/syntax/make_perl_groups.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
308 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_freebsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
309 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysctl_openbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
310 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksyscall.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
311 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_openbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
312 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_darwin.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
313 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_netbsd.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
314 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_linux.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
315 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksyscall_solaris.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
316 |
$(PROTOUSRLIBDIR)/golang/1.5/src/syscall/mksysnum_dragonfly.pl \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
317 |
$(PROTOUSRLIBDIR)/golang/1.5/test/errchk |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
318 |
|
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
319 |
COMPONENT_POST_INSTALL_ACTION += $(PERL_SCRIPTS_PROCESS) |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
320 |
|
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
321 |
# Go's test suite is currently designed to be run from the build area. |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
322 |
|
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
323 |
# Used during the build. |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
324 |
REQUIRED_PACKAGES += developer/gcc |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
325 |
ifneq ($(MACH), sparc) |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
326 |
# Go 1.5 now bootstraps itself using 1.5; 1.6 will bootstrap using 1.5 as well. |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
327 |
REQUIRED_PACKAGES += developer/golang-15 |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
328 |
endif |
5428
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
329 |
# Used in this Makefile. |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
330 |
REQUIRED_PACKAGES += file/gnu-findutils |
3c05d530e67e
22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5331
diff
changeset
|
331 |
REQUIRED_PACKAGES += text/gnu-sed |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
332 |
# Required to build man pages. |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
333 |
REQUIRED_PACKAGES += developer/documentation-tool/xml2roff |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
334 |
# There's a single test script which requires perl. |
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5781
diff
changeset
|
335 |
REQUIRED_PACKAGES += $(PERL_PKG) |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
336 |
REQUIRED_PACKAGES += system/header |
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
337 |
REQUIRED_PACKAGES += system/library |
5715
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
338 |
# Used for cgo support at runtime; we don't add a package dependency since cgo |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
339 |
# support is optional. |
f94135b42f59
22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5428
diff
changeset
|
340 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
5331
9c955076ffe3
PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff
changeset
|
341 |
REQUIRED_PACKAGES += system/linker |