aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/gitea/APKBUILD18
-rw-r--r--testing/gitea/aarch64-go-log-fix.patch10
2 files changed, 22 insertions, 6 deletions
diff --git a/testing/gitea/APKBUILD b/testing/gitea/APKBUILD
index 3036c2b85f..4b8ae3e868 100644
--- a/testing/gitea/APKBUILD
+++ b/testing/gitea/APKBUILD
@@ -15,19 +15,22 @@ pkggroups="www-data"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/go-gitea/$pkgname/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
- $pkgname.ini"
+ $pkgname.ini
+ aarch64-go-log-fix.patch"
builddir="$srcdir/src/code.gitea.io/$pkgname"
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1
- default_prepare
+ cd "$builddir"
+ export GOPATH="$srcdir"
+ govendor sync -v || return 1
+ default_prepare
}
build() {
cd "$builddir"
export GOPATH="$srcdir"
- govendor sync -v || return 1
go build -v -tags "tidb sqlite" -o bin/$pkgname || return 1
}
@@ -70,12 +73,15 @@ package() {
md5sums="c031c1d3745e95afbb93309f76f9897c gitea-1.0.1.tar.gz
41eaec7f58dd872c1df9cf523b7595ae gitea.initd
15d303d47b25ac42da36c7118878dd35 gitea.confd
-b7a9ab6bf9a1c995c1edef73f6aaf374 gitea.ini"
+b7a9ab6bf9a1c995c1edef73f6aaf374 gitea.ini
+91caa13a896c29ec9bc52a259769ee7a aarch64-go-log-fix.patch"
sha256sums="79df6391bdf9d7833dd16f312ec8ab998f18671f3a3d889875b4fa81cc010a17 gitea-1.0.1.tar.gz
c5236c76d1db76390ec9c0c4e670916e64f4ea64ee856ad191098a55f644e8f7 gitea.initd
c2e9831078af389acf2e6e3d4a7d747d8b03c1ed3570f8b7515c7c3da0d92cc5 gitea.confd
-c9248a706c9c0c96b07304b2c03ba662473e5beaa0e1cb501dcaf1bb3ba40cbe gitea.ini"
+c9248a706c9c0c96b07304b2c03ba662473e5beaa0e1cb501dcaf1bb3ba40cbe gitea.ini
+cd088148e2786c8c720e856d9d518568ea4e6dd7764c72eb86d06ff6eb47fa2f aarch64-go-log-fix.patch"
sha512sums="bde94f503ff7df33b0f891bfa726546d07c35c3731ed300dc9be50ee778229a0a358c22fc8206b0f0f4da5085a63bb196748968ed37b9310be9b1cab1c743ce4 gitea-1.0.1.tar.gz
5cd3144d040139ff27fb5acef9b09406f7acbdda2779638ba20fcf8a7739697351502a26a30020a42c84b9146fdc96b9943b85099819a86facf0d53a4f000078 gitea.initd
6d2fc0bc54f98f4676398738abb099fc1b3f9db9c9eb5593b5b438dd146ed9bc0baf7be9092feed5e7de2bc05288d30f3e2d8dd4f2334847c04c11a4eb08dae5 gitea.confd
-07d31133712675cdef326da95bf6ea24d7312c58b126a160cf28a64a5548dbe72b9d64f99d25aaa052f08c7ae4d8a74425d8307a6f41a58bd74f34c8fdb08d8f gitea.ini"
+07d31133712675cdef326da95bf6ea24d7312c58b126a160cf28a64a5548dbe72b9d64f99d25aaa052f08c7ae4d8a74425d8307a6f41a58bd74f34c8fdb08d8f gitea.ini
+c5762d3c06a5b9f5a40f15945f57963ebb114a4ccf40ab188fc379dfc8a077f478ef54b88561ee1f316423bd30d8bf8c12527acbddda50b884354374683c843b aarch64-go-log-fix.patch"
diff --git a/testing/gitea/aarch64-go-log-fix.patch b/testing/gitea/aarch64-go-log-fix.patch
new file mode 100644
index 0000000000..c3e54e6b81
--- /dev/null
+++ b/testing/gitea/aarch64-go-log-fix.patch
@@ -0,0 +1,10 @@
+--- ./vendor/github.com/ngaut/log/crash_unix.go.orig
++++ ./vendor/github.com/ngaut/log/crash_unix.go
+@@ -13,6 +13,6 @@
+ if err != nil {
+ log.Println(err.Error())
+ } else {
+- syscall.Dup2(int(f.Fd()), 2)
++ syscall.Dup3(int(f.Fd()), 2, 0)
+ }
+ }