aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-02-15 20:43:25 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-15 20:52:24 +0100
commitbff1593e0c89f45ed4875c170c626b6e8e89e060 (patch)
tree98f110eb8c4f1f7ca676dd4a514f94bdd9fdf1cc
parenteef9a6010fc8b9cc70ff842050851d99ff5bb2db (diff)
downloadaports-bff1593e0c89f45ed4875c170c626b6e8e89e060.tar.gz
aports-bff1593e0c89f45ed4875c170c626b6e8e89e060.tar.bz2
aports-bff1593e0c89f45ed4875c170c626b6e8e89e060.tar.xz
community/go: do not remove bash scripts from the package
Fixes #11091
-rw-r--r--community/go/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 7424eecb34..33db17bbef 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -4,7 +4,7 @@
pkgname=go
# go binaries are statically linked, security updates require rebuilds
pkgver=1.13.4
-pkgrel=1
+pkgrel=2
pkgdesc="Go programming language compiler"
url="https://golang.org/"
arch="all"
@@ -127,13 +127,18 @@ package() {
mkdir -p "$pkgdir"/usr/lib/go/
cp -a "$builddir"/src "$pkgdir"/usr/lib/go
- # Remove tests from /usr/lib/go/src.
- # Those shouldn't be affacted by the upstream bug (see above).
+ # Remove tests from /usr/lib/go/src to reduce package size,
+ # these should not be needed at run-time by any program.
find "$pkgdir"/usr/lib/go/src \( -type f -a -name "*_test.go" \) \
-exec rm -rf \{\} \+
find "$pkgdir"/usr/lib/go/src \( -type d -a -name "testdata" \) \
-exec rm -rf \{\} \+
- find "$pkgdir"/usr/lib/go/src -type f -a \( -name "*.bash" -o -name "*.rc" -o -name "*.bat" \) \
+
+ # Remove rc (plan 9) and bat scripts (windows) to reduce package
+ # size further. The bash scripts are actually needed at run-time.
+ #
+ # See: https://gitlab.alpinelinux.org/alpine/aports/issues/11091
+ find "$pkgdir"/usr/lib/go/src -type f -a \( -name "*.rc" -o -name "*.bat" \) \
-exec rm -rf \{\} \+
}