components/golang/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Thu, 15 Sep 2016 11:53:59 -0700
changeset 6911 7b878dfe6f0d
parent 5833 c1e66c53301d
child 7518 c388d4e1d3ad
permissions -rw-r--r--
24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk 24662696 gmake clobber in ftp-proxy doesn't remove tarball
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
    23
# Copyright (c) 2014, 2016, 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
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    43
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    44
ARC_CASE=		PSARC/2015/203
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    45
TPNO=			23679
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    46
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    47
# 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
    48
# 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
    49
# 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
    50
# 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
    51
# option for now.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    52
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
    53
# 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
    54
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    55
# - 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
    56
#   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
    57
#   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
    58
# - 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
    59
#   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
    60
#
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
# 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
    63
# 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
    64
# 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
    65
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
    66
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    67
define supp-rules
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    68
COMPONENT_NAME_$(1)=		$(1)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    69
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
    70
COMPONENT_LABEL_$(1)=
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    71
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
    72
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
    73
TPNO_$(1)=			$(TPNO)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    74
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    75
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    76
$(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
    77
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    78
# 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
    79
# 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
    80
# 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
    81
# 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
    82
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
    83
GIT_COMMIT_ID_image=		baddd3465a05d84a6d8d3507547a91cb188c81ea
5781
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    84
GIT_COMMIT_ID_lint=		8f348af5e29faa4262efdc14302797f23774e477
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    85
GIT_COMMIT_ID_net=		fb93926129b8ec0056f2f458b1f519654814edf0
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    86
GIT_COMMIT_ID_sys=		9eef40adf05b951699605195b829612bd7b69952
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    87
GIT_COMMIT_ID_text=		5ee49cfe751141f8017047bab800d1f528ee3be1
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    88
GIT_COMMIT_ID_tools=		5da1e91fb2cc877989e7c73748b505a0612956f2
ecbdf40c0a37 23108116 problem in UTILITY/GOLANG
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5780
diff changeset
    89
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
    90
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    91
# 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
    92
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
    93
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
    94
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
    95
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
    96
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
    97
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
    98
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
    99
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
   100
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   101
# 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
   102
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
   103
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   104
# 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
   105
# 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
   106
# '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
   107
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
   108
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   109
# 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
   110
ifeq ($(MACH), sparc)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   111
PUBLISH_STAMP=
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   112
else
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   113
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
   114
endif
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   115
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   116
# 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
   117
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
   118
# 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
   119
GOEXPERIMENT=		framepointer
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   120
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
   121
COMPONENT_BUILD_ENV +=	GOEXPERIMENT="$(GOEXPERIMENT)"
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   122
COMPONENT_BUILD_ENV +=	\
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   123
	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
   124
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   125
# Install root for supplementary packages.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   126
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
   127
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   128
# 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
   129
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
   130
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
   131
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
   132
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   133
BUILD_STYLE= justmake
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   134
BUILD_64 += $(BUILD_DIR)/man1/go.1
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   135
INSTALL_64 := build $(INSTALL_64)
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   136
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
   137
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   138
# 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
   139
GPATCH_BACKUP=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   140
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   141
# Enable local transforms.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   142
PKG_OPTIONS += -I $(COMPONENT_DIR)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   143
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   144
# 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
   145
# - 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
   146
# - 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
   147
#   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
   148
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   149
# 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
   150
PUBLISH_TRANSFORMS=	$(LICENSE_TRANSFORMS)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   151
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
   152
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
   153
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
   154
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
   155
PUBLISH_TRANSFORMS +=	$(PKGMOGRIFY_TRANSFORMS)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   156
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
   157
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
   158
ifeq ($(BUILD_TYPE),evaluation)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   159
	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
   160
endif
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   161
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   162
$(NO_ELFSIGN_MOG): install
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   163
	cd $(PROTO_DIR); \
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   164
	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
   165
	    $(GSED) -e 's/^..\(.*\):.*$$/<transform file path=\1$$ -> \\\
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   166
	        default com.oracle.elfsign false>/' > $@
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   167
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   168
PUBLISH_TRANSFORMS +=	$(NO_ELFSIGN_MOG)
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   169
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   170
# 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
   171
# 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
   172
# 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
   173
# 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
   174
# 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
   175
#COMPONENT_POST_UNPACK_ACTION= \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   176
#	$(MV) go-master $(COMPONENT_SRC) && \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   177
#	$(TOUCH) $(COMPONENT_SRC)/VERSION && \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   178
#	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
   179
#		$(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
   180
#		$(COMPONENT_SRC)/VERSION
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   181
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   182
# 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
   183
# 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
   184
# 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
   185
COMPONENT_POST_UNPACK_ACTION= \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   186
	$(MV) go $(COMPONENT_SRC)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   187
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   188
# 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
   189
COMPONENT_PREP_ACTION= \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   190
	cd $(COMPONENT_SRC) && \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   191
	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
   192
		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
   193
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   194
# 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
   195
# default.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   196
COMPONENT_BUILD_ACTION=	\
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   197
	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
   198
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   199
COMPONENT_TARGET_DIR= \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   200
	$(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
   201
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   202
# 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
   203
# -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
   204
ASLR_MODE = $(ASLR_DISABLE)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   205
5780
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   206
# 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
   207
# 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
   208
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
   209
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   210
# 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
   211
# 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
   212
PKG_MACROS += TIMESTAMP=$(GOTS)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   213
# Extra macros for packaging convenience.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   214
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
   215
# 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
   216
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
   217
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   218
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
   219
COMPONENT_TEST_ENV +=	GOROOT="$(@D)"
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   220
COMPONENT_TEST_DIR=	$(@D)/src
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   221
COMPONENT_TEST_CMD=	./run.bash
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   222
COMPONENT_TEST_TARGETS=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   223
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   224
# 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
   225
# 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
   226
COMPONENT_TEST_CREATE_TRANSFORMS=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   227
COMPONENT_TEST_PERFORM_TRANSFORM=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   228
COMPONENT_TEST_COMPARE=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   229
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   230
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
   231
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   232
$(BUILD_DIR)/man1/go.1:
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   233
	$(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
   234
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   235
define COMPONENT_INSTALL_ACTION=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   236
	($(MKDIR) $(COMPONENT_TARGET_DIR)/src); \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   237
	(cd $(SOURCE_DIR) && \
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   238
	$(GNUBIN)/find . -maxdepth 1 -print \
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   239
	  -exec $(GNUBIN)/cp -r \
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   240
	  --parents {} $(COMPONENT_TARGET_DIR) \;); \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   241
	(cd $(BUILD_DIR_64) && \
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   242
	$(GNUBIN)/find src -type f \
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   243
		-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
   244
	(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
   245
	(cd $(BUILD_DIR_64) && $(CP) -r pkg $(COMPONENT_TARGET_DIR)/); \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   246
	($(MKDIR) $(PROTOUSRSHAREMAN1DIR)); \
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   247
	($(CP) $(BUILD_DIR)/man1/go.1 $(PROTOUSRSHAREMAN1DIR)/); \
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   248
	($(RM) $(NO_ELFSIGN_MOG))
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   249
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   250
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
   251
# 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
   252
# 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
   253
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
   254
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   255
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   256
# 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
   257
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   258
define install-rules
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   259
$(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
   260
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   261
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
   262
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   263
COMPONENT_POST_INSTALL_ACTION += \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   264
	($(MKDIR) \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   265
		$(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
   266
	$(CP) -r $$(COMPONENT_SRC_$(1))/* \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   267
		$(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
   268
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   269
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   270
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   271
$(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
   272
# 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
   273
# 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
   274
# 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
   275
# 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
   276
# directory.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   277
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   278
# 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
   279
# 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
   280
# 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
   281
# 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
   282
# packages.
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   283
PROTO_ROOT= $(SUPP_ROOT)
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   284
COMPONENT_POST_INSTALL_ACTION += \
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   285
	($(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
   286
		-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
   287
		"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
   288
	$(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
   289
		-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
   290
		"golang.org/x/..."; \
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   291
	$(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
   292
		-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
   293
		"github.com/golang/...");
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   294
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
   295
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
   296
  $(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
   297
  $(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
   298
  $(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
   299
  $(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
   300
  $(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
   301
  $(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
   302
  $(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
   303
  $(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
   304
  $(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
   305
  $(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
   306
  $(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
   307
  $(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
   308
  $(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
   309
  $(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
   310
  $(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
   311
  $(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
   312
  $(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
   313
  $(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
   314
  $(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
   315
  $(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
   316
  $(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
   317
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
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
   319
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   320
# 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
   321
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   322
# Used during the build.
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   323
REQUIRED_PACKAGES += developer/gcc
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   324
ifneq ($(MACH), sparc)
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   325
# 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
   326
REQUIRED_PACKAGES += developer/golang-15
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   327
endif
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   328
# Used in this Makefile.
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   329
REQUIRED_PACKAGES += file/gnu-findutils
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   330
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
   331
# Required to build man pages.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   332
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
   333
# 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
   334
REQUIRED_PACKAGES += $(PERL_PKG)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   335
REQUIRED_PACKAGES += system/header
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   336
REQUIRED_PACKAGES += system/library
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   337
# 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
   338
# support is optional.
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   339
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
   340
REQUIRED_PACKAGES += system/linker