mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
go1.12-bootstrap: remove outdated musl workaround.
Since 091ab0b612
, we have /lib64 as a
symlink to /usr/lib on 64-bit systems, so patching the ELF file to
change its interpreter is no longer necessary.
This commit is contained in:
parent
8da7f2e6b7
commit
f73e0a943d
1 changed files with 1 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'go1.12-bootstrap'
|
# Template file for 'go1.12-bootstrap'
|
||||||
pkgname=go1.12-bootstrap
|
pkgname=go1.12-bootstrap
|
||||||
version=1.12.17
|
version=1.12.17
|
||||||
revision=1
|
revision=2
|
||||||
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
|
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
|
||||||
wrksrc="go"
|
wrksrc="go"
|
||||||
short_desc="Go 1.12 (bootstrap compiler)"
|
short_desc="Go 1.12 (bootstrap compiler)"
|
||||||
|
@ -15,7 +15,6 @@ lib32disabled=yes
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
depends+=" gcompat"
|
depends+=" gcompat"
|
||||||
hostmakedepends+=" patchelf"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -43,18 +42,6 @@ esac
|
||||||
|
|
||||||
distfiles="https://dl.google.com/go/go${version}.linux-${_dist_arch}.tar.gz"
|
distfiles="https://dl.google.com/go/go${version}.linux-${_dist_arch}.tar.gz"
|
||||||
|
|
||||||
post_build() {
|
|
||||||
[ "$XBPS_TARGET_LIBC" != "musl" ] && return 0
|
|
||||||
|
|
||||||
# we don't have lib64 compatibility path on musl 64-bit systems
|
|
||||||
# use patchelf to replace /lib64/<dynlinker> with /lib/<dynlinker>
|
|
||||||
|
|
||||||
local _interp=$(patchelf --print-interpreter ${wrksrc}/bin/go)
|
|
||||||
|
|
||||||
patchelf --set-interpreter ${_interp/lib64\//lib\/} ${wrksrc}/bin/go
|
|
||||||
patchelf --set-interpreter ${_interp/lib64\//lib\/} ${wrksrc}/bin/godoc
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/lib/go1.12
|
vmkdir usr/lib/go1.12
|
||||||
vcopy bin usr/lib/go1.12
|
vcopy bin usr/lib/go1.12
|
||||||
|
|
Loading…
Add table
Reference in a new issue