Your message dated Sat, 26 Apr 2025 10:14:13 +0000
with message-id <e1u8cy1-00a55f...@fasolo.debian.org>
and subject line Bug#1104037: fixed in golang-github-iovisor-gobpf 0.2.0-10
has caused the Debian Bug report #1104037,
regarding golang-github-iovisor-gobpf: Add utsname support for riscv64 and 
loong64
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 ow...@bugs.debian.org
immediately.)


-- 
1104037: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104037
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: golang-github-iovisor-gobpf
Version: 0.2.0-9
Severity: important
Tags: patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
User: debian-loonga...@lists.debian.org 
Usertags: loong64
X-Debbugs-Cc: debian-ri...@lists.debian.org, debian-loonga...@lists.debian.org 

Dear Maintainer,

now golang-github-iovisor-gobpf is missing utsname support for riscv64
and loong64, this will lead to FTBFS from opensnitch on these
architectures, see [0] and [1]. In fact this will also casuse the build
to fail on these two architectures. Two PRs to support both architectures
separately has been sent upstream, but has not yet been merged(inactive
upstream), so I backport them to here. 

[0]: 
https://buildd.debian.org/status/fetch.php?pkg=opensnitch&arch=riscv64&ver=1.6.8-9&stamp=1745472487&raw=0
[1]: 
https://buildd.debian.org/status/fetch.php?pkg=opensnitch&arch=loong64&ver=1.6.8-9&stamp=1745476108&raw=0

Please note, even if apply this patch, the build will still fail on
riscv64(I test it on riscv64 not on loong64), but this is another
reason to lead this like:

```
...
-tautological-compare -Wno-unknown-warning-option -g -O2 -emit-llvm -c 
opensnitch.c -o opensnitch.o.partial     
In file included from opensnitch.c:3:                                           
                                
In file included from ./common_defs.h:4:                                        
                                
/lib/modules/6.12.22-riscv64/source/include/linux/sched.h:12:10: fatal error: 
'asm/current.h' file not found    
   12 | #include <asm/current.h>                                                
                                
      |          ^~~~~~~~~~~~~~~                                                
                                
1 error generated.                                                              
                                
make[2]: *** [Makefile:57: opensnitch.o] Error 1         
```

The same error has occurred on s390x[2] and I believe this is different issue. 
I will dig more this later.

[2]: 
https://buildd.debian.org/status/fetch.php?pkg=opensnitch&arch=s390x&ver=1.6.8-9&stamp=1745476829&raw=0

Could you apply this on next upload?

-- 
Regards,
--
  Bo YU

diff -Nru golang-github-iovisor-gobpf-0.2.0/debian/changelog 
golang-github-iovisor-gobpf-0.2.0/debian/changelog
--- golang-github-iovisor-gobpf-0.2.0/debian/changelog  2025-04-15 
15:42:23.000000000 +0000
+++ golang-github-iovisor-gobpf-0.2.0/debian/changelog  2025-04-24 
12:16:21.000000000 +0000
@@ -1,3 +1,10 @@
+golang-github-iovisor-gobpf (0.2.0-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add build support for loong64 and riscv64. (Closes: #-1) 
+
+ -- Bo YU <vi...@debian.org>  Thu, 24 Apr 2025 12:16:21 +0000
+
 golang-github-iovisor-gobpf (0.2.0-9) unstable; urgency=medium
 
   * While checking if debian/copyright-scan is up to date, skip all the
diff -Nru golang-github-iovisor-gobpf-0.2.0/debian/patches/series 
golang-github-iovisor-gobpf-0.2.0/debian/patches/series
--- golang-github-iovisor-gobpf-0.2.0/debian/patches/series     2025-04-15 
15:42:23.000000000 +0000
+++ golang-github-iovisor-gobpf-0.2.0/debian/patches/series     2025-04-24 
11:43:19.000000000 +0000
@@ -1 +1,2 @@
 support-for-new-bcc_func_load-signature.patch
+support-loong64-and-rv64.patch
diff -Nru 
golang-github-iovisor-gobpf-0.2.0/debian/patches/support-loong64-and-rv64.patch 
golang-github-iovisor-gobpf-0.2.0/debian/patches/support-loong64-and-rv64.patch
--- 
golang-github-iovisor-gobpf-0.2.0/debian/patches/support-loong64-and-rv64.patch 
    1970-01-01 00:00:00.000000000 +0000
+++ 
golang-github-iovisor-gobpf-0.2.0/debian/patches/support-loong64-and-rv64.patch 
    2025-04-24 11:48:35.000000000 +0000
@@ -0,0 +1,26 @@
+From a8772aa7a6c088c9845406d9566e59630f7f4c92 Mon Sep 17 00:00:00 2001
+From: Ast-x64 <ast-...@protonmail.com>
+Date: Mon, 27 Feb 2023 18:30:03 +0900
+Subject: [PATCH] elf: Add utsname support for riscv64
+PR: https://github.com/iovisor/gobpf/pull/324
+
+According to https://go.dev/src/syscall/ztypes_linux_riscv64.go#L573 we
+should use uint8 on riscv64.
+
+From 65eb126ceb21b4b85de065fade83daa6f94c9826 Mon Sep 17 00:00:00 2001
+From: zhaixiaojuan <zhaixiaoj...@loongson.cn>
+Date: Mon, 28 Nov 2022 16:05:09 +0800
+Subject: [PATCH] Add utsname support for loong64
+PR: https://github.com/iovisor/gobpf/pull/316
+---
+ elf/utsname_uint8.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/elf/utsname_uint8.go
++++ b/elf/utsname_uint8.go
+@@ -1,4 +1,4 @@
+-// +build linux,arm linux,ppc64 linux,ppc64le s390x
++// +build linux,arm linux,ppc64 linux,ppc64le linux,loong64 linux,riscv64 
s390x
+ 
+ package elf
+ 

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: golang-github-iovisor-gobpf
Source-Version: 0.2.0-10
Done: Domenico Andreoli <ca...@debian.org>

We believe that the bug you reported is fixed in the latest version of
golang-github-iovisor-gobpf, 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 1104...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Domenico Andreoli <ca...@debian.org> (supplier of updated 
golang-github-iovisor-gobpf 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 26 Apr 2025 10:58:57 +0200
Source: golang-github-iovisor-gobpf
Architecture: source
Version: 0.2.0-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg...@tracker.debian.org>
Changed-By: Domenico Andreoli <ca...@debian.org>
Closes: 1104037
Changes:
 golang-github-iovisor-gobpf (0.2.0-10) unstable; urgency=medium
 .
   * Add build support for loong64 and riscv64: (Closes: #1104037)
     - add-loong64-utsname.patch
     - add-riscv64-utsname.patch
 .
     Thanks to vimer for the heads-up!
 .
   * Update standards version to 4.7.2, no changes needed.
Checksums-Sha1:
 e5f2ee77d36d23f64031390ca57dac2429e4b645 2294 
golang-github-iovisor-gobpf_0.2.0-10.dsc
 1115afcd9b363766c968baed7d5d7c2795fd1711 6200 
golang-github-iovisor-gobpf_0.2.0-10.debian.tar.xz
 feb7a3ccd92f028c44ce590195454dd0c1af9df5 14865 
golang-github-iovisor-gobpf_0.2.0-10_arm64.buildinfo
Checksums-Sha256:
 71ca4029c96b8468e0ff4d6bed5ef0087f1eb3e1062de60a6f7d406c941f8725 2294 
golang-github-iovisor-gobpf_0.2.0-10.dsc
 fa46c0e11991b7479da76207a35605bfd4866f89b355bc074bd382f8db38ef6d 6200 
golang-github-iovisor-gobpf_0.2.0-10.debian.tar.xz
 983b0838cb2e7131d5936984b47fb2d433b60494fc5a902c83825855ed927a01 14865 
golang-github-iovisor-gobpf_0.2.0-10_arm64.buildinfo
Files:
 799b3b2c44a7fbbb9b68caea50e61182 2294 golang optional 
golang-github-iovisor-gobpf_0.2.0-10.dsc
 1b7ac2a838e6d15fee0c6f1b1291f8fc 6200 golang optional 
golang-github-iovisor-gobpf_0.2.0-10.debian.tar.xz
 c1a665341485d82995f5444218f5a3ef 14865 golang optional 
golang-github-iovisor-gobpf_0.2.0-10_arm64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEGSWGdoKrcEzTtUezikr1XMf+zOIFAmgMqssRHGNhdm9rQGRl
Ymlhbi5vcmcACgkQikr1XMf+zOLOAw/8Ciq+JSUOFCj0maah404tHyxSbDwp7TKr
EKud8feLU4WQkYjCA8jPkZCGII24vW6JlKmSQLk8libszr6fZkCVUG6rnZRzf7I+
ieA9lqTSCq4myk/GHB+a7hRczclQWgfkA1AYiQUTpr7zdiDhBq0rtvrMMkhHC8LN
iupSb6mxDXqgzgGSKyorGFW4MK9UTRicVqRkcBpqDVDKdMEZJwZs8WKRUqiq+ewo
41+0OQnWt6VxWFPAUZMxTe0+lWsqociJUhHwD4/QD4JKhMVtpci3Pszfq9kcqFLh
/kNyk7gLycIs6bb33er8LWa/mcjCuyeRavqQO8ky/aGZLHGWqZwHoBS/sB/8tw/x
NfzHb+nAQke39LtfD1e/sIxsVK2Tkt0sRUsT8VCEAIQBoZoxWqgQ63NE5EDc0iJ1
73zL0N/RErU1R/58LMRBILWMQPph19DNe0DFzs4qC3EOn7t9DI4oiLg8O7Fvz1or
vhBPXCxr4DR0i39Cv2fyw0s1MUw936QfNcKLcOJwAwkv8PpNjYtW6AGB6XVLRX4v
2W7XD86a3gwtIOQoAxvxKCgGTqj8uHgrhGdZjXUGJoNPSgThbDoMR1lsmVdxqusp
S3i4LQoJJHhcDeVo+7GP+cbaNdoZ2gQcr/bYYkE1PWfUoraFvPs7XfgyFpJ8RMwB
lPQaEET4FNY=
=pN5E
-----END PGP SIGNATURE-----

Attachment: pgpZLHCwRLqz9.pgp
Description: PGP signature


--- End Message ---

Reply via email to