DeepChirp pushed to branch main at Arch Linux / Packaging / Packages / sing-box
Commits:
a6705f53 by DeepChirp at 2026-11-20T11:39:46+08:00
upgpkg: 1.14.4-3: attempt to avoid crashes on Go 1.27
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = sing-box
pkgdesc = The universal proxy platform
pkgver = 1.14.4
- pkgrel = 2
+ pkgrel = 3
url = https://sing-box.sagernet.org/
arch = x86_64
license = GPL-3.0-or-later
=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@ pkgver=1.14.4
# Check the hash in `.github/CRONET_GO_VERSION`, then visit the
# `go` branch of `SagerNet/cronet-go` to get the commit hash
_cronet_commit_hash=049f2909701ca088c9569f6b303bba5376a2b2ff
-pkgrel=2
+pkgrel=3
pkgdesc='The universal proxy platform'
arch=('x86_64')
url='https://sing-box.sagernet.org/'
@@ -124,6 +124,8 @@ build() {
export CGO_LDFLAGS_ALLOW='-l:libcronet\.a' #
https://github.com/golang/go/issues/82572
export CGO_ENABLED=1
export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
+ # Workaround: sizespecializedmalloc in Go 1.27 may trigger "bad pointer" /
"free object" crashes
+ export GOEXPERIMENT="$(go env GOEXPERIMENT),nosizespecializedmalloc"
export GOPATH="${srcdir}"
export CC=clang
export CXX=clang++
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sing-box/-/commit/a6705f53c96e78d0100dd74d9cc82578aae01f69
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sing-box/-/commit/a6705f53c96e78d0100dd74d9cc82578aae01f69
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help