[arch-commits] Commit in go/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jan 27 16:26:00 UTC 2019


    Date: Sunday, January 27, 2019 @ 16:25:59
  Author: foxboron
Revision: 428239

upgpkg: go 2:1.11.5-2

Modified:
  go/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-27 16:09:52 UTC (rev 428238)
+++ PKGBUILD	2019-01-27 16:25:59 UTC (rev 428239)
@@ -15,7 +15,7 @@
 pkgname=(go go-pie)
 epoch=2
 pkgver=1.11.5
-pkgrel=1
+pkgrel=2
 arch=(x86_64)
 url='https://golang.org/'
 license=(BSD)
@@ -42,7 +42,6 @@
 
 build() {
   export GOPATH="$srcdir/"
-  export GO_GCFLAGS="-trimpath=$GOPATH"
 
   for _pkgname in ${pkgname[@]}; do
     export GOROOT="$srcdir/$_pkgname"
@@ -101,6 +100,11 @@
   conflicts=(go)
 
   _package $pkgname
+
+  # linux_amd64 is essentially the content of linux_amd64_shared, however there might
+  # be cases where the user could generate the _shared directory as it's missing in go-pie.
+  # Make sure it exists without rebuilding std with -buildmode=pie.
+  cp -a "$pkgdir/usr/lib/go/pkg/linux_amd64/" "$pkgdir/usr/lib/go/pkg/linux_amd64_shared"
 }
 
 # vim: ts=2 sw=2 et


More information about the arch-commits mailing list