File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ checkdepends="binutils-gold"
15
15
subpackages=" $pkgname -doc"
16
16
source=" https://go.dev/dl/go$pkgver .src.tar.gz
17
17
allow-unshare-to-return-enosys.patch
18
+ force-external-link-on-ppc64le.patch
18
19
"
19
20
case " $CARCH " in
20
21
arm* |aarch64) depends=" binutils-gold" ;;
@@ -118,6 +119,13 @@ case "$CARCH" in
118
119
x86_64|s390x|aarch64) export GO_LDFLAGS=-buildmode=pie ;;
119
120
esac
120
121
122
+ # Disable tests on ppc64 for now since they fail due to the
123
+ # force-external-link-on-ppc64le.patch we employ currently.
124
+ # See the patch description for details.
125
+ case " $CARCH " in
126
+ ppc64le) options=" !check" ;;
127
+ esac
128
+
121
129
prepare () {
122
130
default_prepare
123
131
@@ -198,4 +206,5 @@ package() {
198
206
sha512sums="
199
207
f10356df9099e4d027415be5c73bd2551f2f941a31feb21e1ccc03b7d8faa1844f0a639a508e990712e11ec335675e57504edb323fa1eee63e1d09b8523b3b0d go1.18.src.tar.gz
200
208
6017caacf77c2911e9e882878fdaa2ed066b76b7e97b2ad776bc33d96b21cabc802966473946642c86a8f985c69adcc5e7ea61684f6d0dbacd468a6aad687229 allow-unshare-to-return-enosys.patch
209
+ 1ad16c8057c891689aa19dbc87efaf8ba6f9dc5592d178f32e441dc2da35647ae75dc1c00f765f7c244f0f486acc1e3db35d4b23533616c90937b2a6c0cd0d0a force-external-link-on-ppc64le.patch
201
210
"
Original file line number Diff line number Diff line change
1
+ See https://github.com/golang/go/issues/51787#issuecomment-1072700785
2
+
3
+ --- go.orig/src/cmd/link/internal/ld/config.go
4
+ +++ go/src/cmd/link/internal/ld/config.go
5
+ @@ -212,7 +212,7 @@
6
+ // windows/arm64 internal linking is not implemented.
7
+ return true, buildcfg.GOOS + "/" + buildcfg.GOARCH + " does not support internal cgo"
8
+ }
9
+ - if iscgo && ctxt.Arch == sys.ArchPPC64 {
10
+ + if iscgo && (ctxt.Arch == sys.ArchPPC64 || ctxt.Arch == sys.ArchPPC64LE) {
11
+ // Big Endian PPC64 cgo internal linking is not implemented for aix or linux.
12
+ return true, buildcfg.GOOS + " does not support internal cgo"
13
+ }
You can’t perform that action at this time.
0 commit comments