Your message dated Sat, 08 Feb 2025 16:37:43 +0000
with message-id <[email protected]>
and subject line Bug#1095322: fixed in golang-github-seccomp-libseccomp-golang
0.10.0-4
has caused the Debian Bug report #1095322,
regarding golang-github-seccomp-libseccomp-golang: FTBFS: Add loongarch64
support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1095322: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095322
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: golang-github-seccomp-libseccomp-golang
Version: 0.10.0-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64
X-Debbugs-CC: [email protected]
Hi maintainers,
The golang-github-seccomp-libseccomp-golang is used for all arch.
But there is a lack of loongarch64 support in Debian
golang-github-seccomp-libseccomp-golang.
Please consider the patch I attached for
golang-github-seccomp-libseccomp-golang source package.
I have built golang-github-seccomp-libseccomp-golang package
successfully on my local ENV.
Could you add loong64 support in the next upload?
Thanks,
Dandan Zhang
Description: Add loongarch64 support.
.
golang-github-seccomp-libseccomp-golang (0.10.0-3+loong64) unstable; urgency=medium
.
* Add loongarch64 support.
Author: Dandan Zhang <[email protected]>
---
Applied-Upstream: main, https://github.com/seccomp/libseccomp-golang
Last-Update: 2025-02-07
--- golang-github-seccomp-libseccomp-golang-0.10.0.orig/seccomp.go
+++ golang-github-seccomp-libseccomp-golang-0.10.0/seccomp.go
@@ -175,6 +175,8 @@ const (
ArchPARISC64
// ArchRISCV64 represents RISCV64
ArchRISCV64
+ // ArchLOONGARCH64 represents 64-bit LoongArch
+ ArchLOONGARCH64
)
const (
@@ -306,6 +308,8 @@ func GetArchFromString(arch string) (Scm
return ArchPARISC64, nil
case "riscv64":
return ArchRISCV64, nil
+ case "loongarch64", "loong64":
+ return ArchLOONGARCH64, nil
default:
return ArchInvalid, fmt.Errorf("cannot convert unrecognized string %q", arch)
}
@@ -352,6 +356,8 @@ func (a ScmpArch) String() string {
return "parisc64"
case ArchRISCV64:
return "riscv64"
+ case ArchLOONGARCH64:
+ return "loong64"
case ArchNative:
return "native"
case ArchInvalid:
--- golang-github-seccomp-libseccomp-golang-0.10.0.orig/seccomp_internal.go
+++ golang-github-seccomp-libseccomp-golang-0.10.0/seccomp_internal.go
@@ -68,6 +68,10 @@ const uint32_t C_ARCH_BAD = ARCH_BAD;
#define SCMP_ARCH_RISCV64 ARCH_BAD
#endif
+#ifndef SCMP_ARCH_LOONGARCH64
+#define SCMP_ARCH_LOONGARCH64 ARCH_BAD
+#endif
+
const uint32_t C_ARCH_NATIVE = SCMP_ARCH_NATIVE;
const uint32_t C_ARCH_X86 = SCMP_ARCH_X86;
const uint32_t C_ARCH_X86_64 = SCMP_ARCH_X86_64;
@@ -88,6 +92,7 @@ const uint32_t C_ARCH_S390X = SCM
const uint32_t C_ARCH_PARISC = SCMP_ARCH_PARISC;
const uint32_t C_ARCH_PARISC64 = SCMP_ARCH_PARISC64;
const uint32_t C_ARCH_RISCV64 = SCMP_ARCH_RISCV64;
+const uint32_t C_ARCH_LOONGARCH64 = SCMP_ARCH_LOONGARCH64;
#ifndef SCMP_ACT_LOG
#define SCMP_ACT_LOG 0x7ffc0000U
@@ -291,7 +296,7 @@ const (
scmpError C.int = -1
// Comparison boundaries to check for architecture validity
archStart ScmpArch = ArchNative
- archEnd ScmpArch = ArchRISCV64
+ archEnd ScmpArch = ArchLOONGARCH64
// Comparison boundaries to check for action validity
actionStart ScmpAction = ActKillThread
actionEnd ScmpAction = ActKillProcess
@@ -552,6 +557,8 @@ func archFromNative(a C.uint32_t) (ScmpA
return ArchPARISC64, nil
case C.C_ARCH_RISCV64:
return ArchRISCV64, nil
+ case C.C_ARCH_LOONGARCH64:
+ return ArchLOONGARCH64, nil
default:
return 0x0, fmt.Errorf("unrecognized architecture %#x", uint32(a))
}
@@ -598,6 +605,8 @@ func (a ScmpArch) toNative() C.uint32_t
return C.C_ARCH_PARISC64
case ArchRISCV64:
return C.C_ARCH_RISCV64
+ case ArchLOONGARCH64:
+ return C.C_ARCH_LOONGARCH64
case ArchNative:
return C.C_ARCH_NATIVE
default:
--- End Message ---
--- Begin Message ---
Source: golang-github-seccomp-libseccomp-golang
Source-Version: 0.10.0-4
Done: Gianfranco Costamagna <[email protected]>
We believe that the bug you reported is fixed in the latest version of
golang-github-seccomp-libseccomp-golang, which is due to be installed in the
Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gianfranco Costamagna <[email protected]> (supplier of updated
golang-github-seccomp-libseccomp-golang package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 08 Feb 2025 17:23:22 +0100
Source: golang-github-seccomp-libseccomp-golang
Built-For-Profiles: noudeb
Architecture: source
Version: 0.10.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <[email protected]>
Changed-By: Gianfranco Costamagna <[email protected]>
Closes: 1095322
Changes:
golang-github-seccomp-libseccomp-golang (0.10.0-4) unstable; urgency=medium
.
[ Gianfranco Costamagna ]
* Team upload
.
[ Dandan Zhang <[email protected]> ]
* Add loongarch64 support (Closes: #1095322)
Checksums-Sha1:
b70ad7de796db6da267634dd24a4920ff5757502 2439
golang-github-seccomp-libseccomp-golang_0.10.0-4.dsc
4c859935f4a8f7680f37d9f3827af71b85851a68 4980
golang-github-seccomp-libseccomp-golang_0.10.0-4.debian.tar.xz
22f1ac67ef6477c02d94a47a157dd15a93494e59 7518
golang-github-seccomp-libseccomp-golang_0.10.0-4_source.buildinfo
Checksums-Sha256:
d55de30109043b0fc4822a072273c183460ef4823a62a93d3300d56865ac2ca1 2439
golang-github-seccomp-libseccomp-golang_0.10.0-4.dsc
36f606abf8a5a48b8965280b1910048dd99d9a2463d66fd9e58e081fdf668cdd 4980
golang-github-seccomp-libseccomp-golang_0.10.0-4.debian.tar.xz
164607fe8e13cc3499e9d3a14ea0f1f2fad8e0cdf64a866b9186fffe79cabe3a 7518
golang-github-seccomp-libseccomp-golang_0.10.0-4_source.buildinfo
Files:
b63d94b2174250d3cfe3c0bbf255d7eb 2439 golang optional
golang-github-seccomp-libseccomp-golang_0.10.0-4.dsc
b40a84babe9aa10f9d412b36fad93cea 4980 golang optional
golang-github-seccomp-libseccomp-golang_0.10.0-4.debian.tar.xz
64b4663fb642c185182096a8fc17e1ab 7518 golang optional
golang-github-seccomp-libseccomp-golang_0.10.0-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmenhT4ACgkQ808JdE6f
Xdn0MBAAkGaVGbQlhxZg13OKJwbdKJQwvCAj4CHAi9GnzzkxqwhpFHWmRNkkXGEx
yu3nLD5BWsjTpclUnmi2Uzywgus2PVkmGAquPNevA9yePw6/VrZCndp1Ehysva7y
QTwyQaLZCE8ZqCPbMMCosAiBqx3n69vHBdce2VPXBqpF7JmJUVjQuu/uCyiOuOEY
bqYOu2tJ+QVeV97twGbu02uae/VVKPyQ2+doPvA4oMFqOsRwuifn0S/G6U2eK/qN
0d9ghPa0Xv28UzquCvb4JWwMxvBXcYgN88iDV/nM/NSvO1YnujEyhE5jyjakOLsB
CNFJqTTo0I1ZKLJbeGKeEDS6oqKqCYA7vNEGBMrVpCCp4z1PiwmRiqT+pQv6rPDX
A4Z8wbp36atYV0m+/Fc0EKwmapwKCm/sZLhOLPPtVtbqKIMfVWbkbmZ4ty/oQkPd
10cKV9WvFRhPTsHjl5Nq1gquW3Ie8xziJZta0PDkLBIxotVill1c2ccYGh+nwrY2
iDWTEOcYoN9ssYXVCsdxVd8z6xTrrDmLRBqqCw4BtVHSYLEKG2OnoFebFtHHNf3v
8rTpeGIP0z5FuEehKYnbJblGy4Ultywnrsar9Y5dVHRFD7q3QdTXTaZyjL6pypYJ
bwvs7qAumQvF2NqFtsObFfr59195MCioM/rztwGIv+Q9k1L0Yuw=
=QNCi
-----END PGP SIGNATURE-----
pgpG9EbpN92VH.pgp
Description: PGP signature
--- End Message ---