Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/syncthing syncthing: fix SIGILL on netbsd/arm64 by...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d728d151585f
branches:  trunk
changeset: 430542:d728d151585f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 01 21:09:03 2020 +0000

description:
syncthing: fix SIGILL on netbsd/arm64 by copying patch from devel/go-sys

diffstat:

 net/syncthing/distinfo                                                |   3 +-
 net/syncthing/patches/patch-vendor_golang.org_x_sys_cpu_cpu__arm64.go |  22 ++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 692ba9234a98 -r d728d151585f net/syncthing/distinfo
--- a/net/syncthing/distinfo    Fri May 01 21:07:24 2020 +0000
+++ b/net/syncthing/distinfo    Fri May 01 21:09:03 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.76 2020/04/17 00:16:56 gdt Exp $
+$NetBSD: distinfo,v 1.77 2020/05/01 21:09:03 tnn Exp $
 
 SHA1 (syncthing-source-v1.4.2.tar.gz) = 4eb1449807d775368f7cea10e1e894eded8fab36
 RMD160 (syncthing-source-v1.4.2.tar.gz) = c3b3735cb76fb9e80df97425ee77bf8a39d65718
 SHA512 (syncthing-source-v1.4.2.tar.gz) = 8c1d01b06c4b4d42111b22a828c71adcda264cc19b13fb1bb51fe2516f9717973a6b515cc99a4d0a7bacce0d325fad735215ed29afbfa21da0470b5abbd9d575
 Size (syncthing-source-v1.4.2.tar.gz) = 10440033 bytes
+SHA1 (patch-vendor_golang.org_x_sys_cpu_cpu__arm64.go) = 26dd7a6395b120110ecccbb77045c296e51cbece
diff -r 692ba9234a98 -r d728d151585f net/syncthing/patches/patch-vendor_golang.org_x_sys_cpu_cpu__arm64.go
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/syncthing/patches/patch-vendor_golang.org_x_sys_cpu_cpu__arm64.go     Fri May 01 21:09:03 2020 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-vendor_golang.org_x_sys_cpu_cpu__arm64.go,v 1.1 2020/05/01 21:09:03 tnn Exp $
+
+copypasta of devel/go-sys/patches/patch-cpu_cpu__arm64.go
+
+--- vendor/golang.org/x/sys/cpu/cpu_arm64.go.orig      2020-04-08 07:13:30.000000000 +0000
++++ vendor/golang.org/x/sys/cpu/cpu_arm64.go
+@@ -10,8 +10,14 @@ const cacheLineSize = 64
+ 
+ func init() {
+       switch runtime.GOOS {
+-      case "darwin":
++      case "darwin", "netbsd":
+               // iOS does not seem to allow reading these registers
++              // NetBSD:
++              // ID_AA64ISAR0_EL1 is a privileged register and cannot be read from EL0.
++              // It can be read via sysctl(3). Example for future implementers:
++              // https://nxr.netbsd.org/xref/src/usr.sbin/cpuctl/arch/aarch64.c
++              ARM64.HasASIMD = true
++              ARM64.HasFP = true
+       case "android", "linux":
+               doinit()
+       default:



Home | Main Index | Thread Index | Old Index