build-style/go: don't set GOBIN
Go 1.5 doesn't permit our use of GOBIN anymore, breaking cross-compilation (for details, see https://github.com/golang/go/issues/9769) In retrospect, I'm not sure why we set GOBIN in the first place; GOPATH/bin should suffice. Closes #2337
This commit is contained in:
parent
85498fb8e0
commit
2bb87e4e07
3 changed files with 3 additions and 5 deletions
|
@ -14,7 +14,7 @@ do_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
find "${GOBIN}" -type f -executable | while read line
|
find "${GOPATH}/bin" -type f -executable | while read line
|
||||||
do
|
do
|
||||||
vbin "${line}"
|
vbin "${line}"
|
||||||
done
|
done
|
||||||
|
|
|
@ -12,4 +12,3 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
|
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
|
||||||
export GOBIN="${wrksrc}/_build-${pkgname}-xbps-bin"
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
# Template file for 'packer'
|
# Template file for 'packer'
|
||||||
pkgname=packer
|
pkgname=packer
|
||||||
version=0.8.6
|
version=0.8.6
|
||||||
revision=2
|
revision=3
|
||||||
replaces="packer-bin>=0"
|
replaces="packer-bin>=0"
|
||||||
short_desc="Create identical multiplatform machine images from a single source"
|
short_desc="Create identical multiplatform machine images from a single source"
|
||||||
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||||
nocross=yes # temporary hack for #2337
|
|
||||||
build_style=go
|
build_style=go
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
license="MPL-2"
|
license="MPL-2"
|
||||||
|
@ -21,7 +20,7 @@ post_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
find "${GOBIN}" -type f -executable | while read line
|
find "${GOPATH}/bin" -type f -executable | while read line
|
||||||
do
|
do
|
||||||
if [[ $(basename $line) == packer ]]; then
|
if [[ $(basename $line) == packer ]]; then
|
||||||
vbin $line
|
vbin $line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue