2022-10-01 00:30:53 +00:00
|
|
|
From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Ian Lance Taylor <iant@golang.org>
|
|
|
|
Date: Wed, 29 Jun 2022 15:32:04 -0700
|
|
|
|
Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2022-08-13 15:17:36 +00:00
|
|
|
|
2022-10-01 00:30:53 +00:00
|
|
|
Patches for musl support, from Sören Tempel.
|
2022-08-13 15:17:36 +00:00
|
|
|
|
2022-10-01 00:30:53 +00:00
|
|
|
Fixes https://gcc.gnu.org/PR105225
|
|
|
|
|
|
|
|
Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
|
|
|
|
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
|
|
|
|
Reviewed-by: Than McIntosh <thanm@google.com>
|
|
|
|
Reviewed-by: Ian Lance Taylor <iant@google.com>
|
2022-08-13 15:17:36 +00:00
|
|
|
---
|
2022-10-01 00:30:53 +00:00
|
|
|
libgo/mksysinfo.sh | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
2022-08-13 15:17:36 +00:00
|
|
|
|
|
|
|
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
|
2022-10-01 00:30:53 +00:00
|
|
|
index 5aa30915..ea1fa17d 100755
|
2022-08-13 15:17:36 +00:00
|
|
|
--- a/libgo/mksysinfo.sh
|
|
|
|
+++ b/libgo/mksysinfo.sh
|
2022-10-01 00:30:53 +00:00
|
|
|
@@ -127,6 +127,7 @@ fi
|
2022-08-13 15:17:36 +00:00
|
|
|
|
|
|
|
# The syscall numbers. We force the names to upper case.
|
2022-10-01 00:30:53 +00:00
|
|
|
grep '^const _SYS_' gen-sysinfo.go | \
|
|
|
|
+ grep -v '^const _SYS_SECCOMP = ' | \
|
2022-08-13 15:17:36 +00:00
|
|
|
sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
|
|
|
|
while read sys; do
|
|
|
|
sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
2022-10-01 00:30:53 +00:00
|
|
|
@@ -506,7 +507,7 @@ fi
|
|
|
|
|
|
|
|
# For historical reasons Go uses the suffix "timespec" instead of "tim" for
|
|
|
|
# stat_t's time fields on NetBSD.
|
|
|
|
-st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
|
|
|
|
+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
|
|
|
|
if test "${GOOS}" = "netbsd"; then
|
|
|
|
st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
|
|
|
|
fi
|