components/golang-17/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Tue, 20 Dec 2016 11:59:29 -0800
changeset 7518 c388d4e1d3ad
parent 6911 components/golang/Makefile@7b878dfe6f0d
child 7524 a7edbc5545e0
permissions -rw-r--r--
PSARC/2016/250 Google Go version 1.7 23170486 update to Google Go version 1.7 and add sparc64 support
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_BITS= 64
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
    26
COMPILER= gcc
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    27
# 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
    28
export PARFAIT_BUILD=no
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    29
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
    30
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    31
PATCH_EACH_ARCHIVE= 1
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    32
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    33
COMPONENT_NAME=		golang
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    34
COMPONENT_VERSION=	1.7
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
    35
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
    36
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
    37
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
    38
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
    39
COMPONENT_ARCHIVE_HASH=	 \
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    40
	sha256:72680c16ba0891fcf2ccf46d0f809e4ecf47bbf889f5d884ccb54c5e9a17e1c0
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    41
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
    42
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    43
ARC_CASE=		PSARC/2015/203,PSARC/2016/250
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    44
TPNO=			23679,29538
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    45
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    46
# 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
    47
# 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
    48
# 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
    49
# 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
    50
# option for now.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    51
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    52
# 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
    53
# 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
    54
# 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
    55
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
    56
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    57
define supp-rules
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    58
COMPONENT_NAME_$(1)=		$(1)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    59
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
    60
COMPONENT_LABEL_$(1)=
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    61
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
    62
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
    63
TPNO_$(1)=			$(TPNO)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    64
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    65
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    66
$(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
    67
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    68
# 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
    69
# 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
    70
# 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
    71
# process for these packages.  Whenever Go is updated, these should be as well.
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    72
GIT_COMMIT_ID_crypto=		986d3313588aa5c68f1df95eac956f79cf3b2c01
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    73
GIT_COMMIT_ID_image=		9f8d0d45877da31f672995d10677ae6a586e31a5
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    74
GIT_COMMIT_ID_lint=		c7bacac2b21ca01afa1dee0acf64df3ce047c28f
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    75
GIT_COMMIT_ID_net=		7394c112eae4dba7e96bfcfe738e6373d61772b4
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    76
GIT_COMMIT_ID_sys=		9bb9f0998d48b31547d975974935ae9b48c7a03c
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    77
GIT_COMMIT_ID_text=		d69c40b4be55797923cec7457fac7a244d91a9b6
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    78
GIT_COMMIT_ID_tools=		5cb1c80a83ef2a98bbc7b2fba1305239bb684fbe
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    79
GIT_COMMIT_ID_tour=		c9941e54e5b8e9618a8c951bc89798f85f6a7a71
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    80
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
    81
# Resulting hash of related git commit once archived.
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    82
GIT_HASH_crypto=  sha256:62a83544383df032f63d655c6831316da80de93b1a3d99593950b32f40a823a3
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    83
GIT_HASH_image=  sha256:979c3a8fb093508c27b95dff99b42a3a1fbd0e83374f40097608dd637b9f6968
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    84
GIT_HASH_lint=  sha256:6f9d91eaa133f7dad2bb65a901b972e952c1acc9e7e504e5efe0605000369305
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    85
GIT_HASH_net=  sha256:e568aee2b95f9eb375a213ed80020a5ce133767b93723bba037f9a99071e7d32
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    86
GIT_HASH_sys=  sha256:dd44f9fc2d78bc69eec53dd9bfcdf6740fbb5bd2ad4a75ad11d62f5b4bd62afd
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    87
GIT_HASH_text=  sha256:397ab7c85efc9272de036ebdebfe91ca6ac190765d883950845dec6a189769bc
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    88
GIT_HASH_tools=  sha256:0d386842aea4abf61d1d5eff7795ee01ec3d6a49353fccb477c53330f42245e3
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
    89
GIT_HASH_tour=  sha256:b9f64fa35ca745b1841502e7aa880c7cadbadcb07c657239d58b5e31da55f170
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
# 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
    92
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
    93
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
    94
# 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
    95
# 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
    96
# '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
    97
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
    98
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
    99
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
   100
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   101
# 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
   102
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
   103
# 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
   104
GOEXPERIMENT=		framepointer
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   105
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
   106
COMPONENT_BUILD_ENV +=	GOEXPERIMENT="$(GOEXPERIMENT)"
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   107
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   108
# This allows us to build regardless of whether 1.5 or 1.7 is installed.
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   109
BOOTSTRAP= $(firstword $(wildcard $(USRLIBDIR)/golang/1.[57]))
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   110
COMPONENT_BUILD_ENV +=	\
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   111
	GOROOT_BOOTSTRAP="$(BOOTSTRAP)"
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   112
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   113
# Install root for supplementary packages.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   114
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
   115
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   116
# 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
   117
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
   118
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
   119
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
   120
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   121
BUILD_STYLE= justmake
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   122
BUILD_64 += $(BUILD_DIR)/man1/go.1
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   123
INSTALL_64 := build $(INSTALL_64)
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   124
ifeq ($(MACH), sparc)
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   125
# At least one test in the suite core dumps on sparc64; skip until ready.
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   126
TEST_TARGET= $(SKIP_TESTS)
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   127
endif
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   128
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
   129
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   130
# 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
   131
GPATCH_BACKUP=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   132
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   133
# Enable local transforms.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   134
PKG_OPTIONS += -I $(COMPONENT_DIR)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   135
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   136
# 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
   137
# - 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
   138
# - 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
   139
#   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
   140
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   141
# 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
   142
PUBLISH_TRANSFORMS=	$(LICENSE_TRANSFORMS)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   143
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
   144
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
   145
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
   146
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
   147
PUBLISH_TRANSFORMS +=	$(PKGMOGRIFY_TRANSFORMS)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   148
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
   149
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
   150
ifeq ($(BUILD_TYPE),evaluation)
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/evaluation
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   152
endif
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   153
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   154
$(NO_ELFSIGN_MOG): install
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   155
	cd $(PROTO_DIR); \
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   156
	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
   157
	    $(GSED) -e 's/^..\(.*\):.*$$/<transform file path=\1$$ -> \\\
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   158
	        default com.oracle.elfsign false>/' > $@
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   159
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   160
PUBLISH_TRANSFORMS +=	$(NO_ELFSIGN_MOG)
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   161
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   162
# 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
   163
# 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
   164
# pre-release versions), so we use 'devel' + archive hash + date similar to how
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   165
# Go internally determines one normally from git revision info.  Use the block
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   166
# below when building from the upstream source repository or when building a
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   167
# development version from a source tarball:
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   168
#
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   169
# 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
   170
# 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
   171
# 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
   172
COMPONENT_POST_UNPACK_ACTION= \
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   173
	$(MV) go $(COMPONENT_SRC) && \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   174
	$(TOUCH) $(COMPONENT_SRC)/VERSION && \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   175
	echo "devel $(shell digest -a md5 $(COMPONENT_ARCHIVE)) \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   176
		$(shell date -u +'%a %b %e %T %Z %Y')" > \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   177
		$(COMPONENT_SRC)/VERSION && \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   178
	(cd $(COMPONENT_SRC); git apply -p1 < ../patches/*.git)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   179
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   180
# 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
   181
# default.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   182
COMPONENT_BUILD_ACTION=	\
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   183
	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
   184
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   185
COMPONENT_TARGET_DIR= \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   186
	$(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
   187
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   188
# 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
   189
# -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
   190
ASLR_MODE = $(ASLR_DISABLE)
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   191
5780
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   192
# 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
   193
# 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
   194
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
   195
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   196
# 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
   197
# 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
   198
PKG_MACROS += TIMESTAMP=$(GOTS)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   199
# Extra macros for packaging convenience.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   200
PKG_MACROS += COMPONENT_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION)
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   201
# Compound version of major version (e.g. 1.5 -> 15).
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   202
PKG_MACROS += COMPONENT_CMAJOR_VERSION=$(subst .,,$(COMPONENT_MAJOR_VERSION))
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   203
# 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
   204
PKG_MACROS += COMPONENT_RE_MAJOR_VERSION=$(subst .,\\.,$(COMPONENT_MAJOR_VERSION))
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   205
# GOMACH64 is Go's name for current build architecture
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   206
PKG_MACROS += GOMACH64=$(MACH64:sparcv9=sparc64)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   207
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   208
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
   209
COMPONENT_TEST_ENV +=	GOROOT="$(@D)"
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   210
COMPONENT_TEST_DIR=	$(@D)/src
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   211
COMPONENT_TEST_CMD=	./run.bash
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   212
COMPONENT_TEST_TARGETS=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   213
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   214
# 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
   215
# 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
   216
COMPONENT_TEST_CREATE_TRANSFORMS=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   217
COMPONENT_TEST_PERFORM_TRANSFORM=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   218
COMPONENT_TEST_COMPARE=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   219
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   220
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
   221
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   222
$(BUILD_DIR)/man1/go.1:
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   223
	$(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
   224
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   225
define COMPONENT_INSTALL_ACTION=
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   226
	($(MKDIR) $(COMPONENT_TARGET_DIR)/src); \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   227
	(cd $(SOURCE_DIR) && \
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   228
	$(GNUBIN)/find . -maxdepth 1 -print \
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   229
	  -exec $(GNUBIN)/cp -r \
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   230
	  --parents {} $(COMPONENT_TARGET_DIR) \;); \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   231
	(cd $(BUILD_DIR_64) && \
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   232
	$(GNUBIN)/find src -type f \
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   233
		-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
   234
	(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
   235
	(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
   236
	($(MKDIR) $(PROTOUSRSHAREDIR)/golang); \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   237
	($(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
   238
	($(RM) $(NO_ELFSIGN_MOG))
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   239
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   240
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
   241
# 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
   242
# 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
   243
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
   244
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   245
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   246
# 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
   247
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   248
define install-rules
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   249
$(MANIFEST_BASE)-$(1)-17.mogrified: PKG_PROTO_DIRS= $(MANGLED_DIR) $(PROTO_DIR) $(@D) $(COMPONENT_DIR) $(COMPONENT_SRC_$(1))
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   250
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   251
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
   252
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   253
COMPONENT_POST_INSTALL_ACTION += \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   254
	($(MKDIR) \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   255
		$(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
   256
	$(CP) -r $$(COMPONENT_SRC_$(1))/* \
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   257
		$(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
   258
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   259
endef
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   260
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   261
$(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
   262
# 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
   263
# 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
   264
# 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
   265
# 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
   266
# directory.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   267
#
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   268
# 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
   269
# 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
   270
# 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
   271
# 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
   272
# packages.
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   273
PROTO_ROOT= $(SUPP_ROOT)
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   274
COMPONENT_POST_INSTALL_ACTION += \
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   275
	($(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
   276
		-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
   277
		"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
   278
	$(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
   279
		-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
   280
		"golang.org/x/..."; \
42f59614ccbf 23094059 golang supplemental packages should be pre-built
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5715
diff changeset
   281
	$(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
   282
		-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
   283
		"github.com/golang/...");
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   284
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
   285
PERL_SCRIPTS= \
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   286
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/plan9/mksyscall.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   287
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksyscall.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   288
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksyscall_solaris.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   289
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysctl_openbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   290
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_darwin.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   291
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_dragonfly.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   292
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_freebsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   293
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_linux.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   294
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_netbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   295
  $(PROTOUSRLIBDIR)/gocode/$(COMPONENT_MAJOR_VERSION)/src/golang.org/x/sys/unix/mksysnum_openbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   296
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/net/http/cgi/testdata/test.cgi \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   297
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/regexp/syntax/make_perl_groups.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   298
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksyscall.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   299
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksyscall_solaris.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   300
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysctl_openbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   301
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_darwin.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   302
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_dragonfly.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   303
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_freebsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   304
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_linux.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   305
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_netbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   306
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/src/syscall/mksysnum_openbsd.pl \
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   307
  $(PROTOUSRLIBDIR)/golang/$(COMPONENT_MAJOR_VERSION)/test/errchk
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
   308
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
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
   310
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   311
# 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
   312
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   313
# Used during the build.
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   314
REQUIRED_PACKAGES += developer/gcc
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   315
REQUIRED_PACKAGES += developer/versioning/git
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   316
ifneq ($(MACH), sparc)
7518
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   317
# Go bootstraps itself using Go, so at least one previous version must already
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   318
# be installed.
c388d4e1d3ad PSARC/2016/250 Google Go version 1.7
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6911
diff changeset
   319
REQUIRED_PACKAGES += developer/golang
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   320
endif
5428
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   321
# Used in this Makefile.
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   322
REQUIRED_PACKAGES += file/gnu-findutils
3c05d530e67e 22665751 golang packages confuse elfsign
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5331
diff changeset
   323
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
   324
# Required to build man pages.
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   325
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
   326
# 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
   327
REQUIRED_PACKAGES += $(PERL_PKG)
5331
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   328
REQUIRED_PACKAGES += system/header
9c955076ffe3 PSARC/2015/203 Google Go version 1.5
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
diff changeset
   329
REQUIRED_PACKAGES += system/library
5715
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   330
# 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
   331
# support is optional.
f94135b42f59 22992886 golang should bootstrap itself
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5428
diff changeset
   332
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
   333
REQUIRED_PACKAGES += system/linker