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,7 +1,7 @@
|
|||
# Template file for 'go1.12-bootstrap'
|
||||
pkgname=go1.12-bootstrap
|
||||
version=1.12.17
|
||||
revision=1
|
||||
revision=2
|
||||
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
|
||||
wrksrc="go"
|
||||
short_desc="Go 1.12 (bootstrap compiler)"
|
||||
|
@ -15,7 +15,6 @@ lib32disabled=yes
|
|||
|
||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||
depends+=" gcompat"
|
||||
hostmakedepends+=" patchelf"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
|
@ -43,18 +42,6 @@ esac
|
|||
|
||||
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() {
|
||||
vmkdir usr/lib/go1.12
|
||||
vcopy bin usr/lib/go1.12
|
||||
|
|
Loading…
Reference in New Issue