mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
eclass/golang-vcs-snapshot.eclass: set up compile env
This change calls go-env_set_compile_environment in golang-vcs-snapshot's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit golang-vcs-snapshot. Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
committed by
James Le Cuirot
parent
e398c855e3
commit
069fa0125f
@@ -52,7 +52,7 @@ esac
|
||||
if [[ -z ${_GOLANG_VCS_SNAPSHOT_ECLASS} ]]; then
|
||||
_GOLANG_VCS_SNAPSHOT_ECLASS=1
|
||||
|
||||
inherit golang-base
|
||||
inherit golang-base go-env
|
||||
|
||||
# @ECLASS_VARIABLE: EGO_VENDOR
|
||||
# @DESCRIPTION:
|
||||
@@ -92,6 +92,7 @@ _golang-vcs-snapshot_dovendor() {
|
||||
# @FUNCTION: golang-vcs-snapshot_src_unpack
|
||||
# @DESCRIPTION:
|
||||
# Extract the first archive from ${A} to the appropriate location for GOPATH.
|
||||
# Set compile env via go-env.
|
||||
golang-vcs-snapshot_src_unpack() {
|
||||
local lib vendor_path x
|
||||
ego_pn_check
|
||||
@@ -117,6 +118,8 @@ golang-vcs-snapshot_src_unpack() {
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
go-env_set_compile_environment
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user