Bug#1072569: bpfcc: Add build support for loongarch64

2024-07-16 Thread zhangdandan

Hi maintainers and uploaders,

On Tue, 4 Jun 2024 21:06:13 +0800 zhangdandan wrote:

> Source: bpfcc
> Version: 0.29.1+ds-1.1
> Severity: wishlist
> Tags: patch
> User: debian-loonga...@lists.debian.org
> Usertags: loong64
>
> Dear maintainers,
>
> Compiling the bpfcc failed for loong64 in the my local ENV.
>
> I have added the build support for loongarch64 in the bpfcc source
> package. And built successfully on my local ENV.
> Please consider the patch I attached.
> If you have any questions, you can contact me at any time.

bpfcc source package lacks loongarch64 support in d/control.
Please take care of the patch I attached for loong64 in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072569#5.


For loong64, now bpfcc's support for loongarch64 has been uploaded to 
the unreleased repository of debian-ports.
Please check 
http://ftp.ports.debian.org/debian-ports/pool-loong64/main/b/bpfcc/.


Could you add loong64 support in the next upload?

Thanks
Dandan Zhang



Bug#1072569: bpfcc: Add build support for loongarch64

2024-06-04 Thread zhangdandan

Source: bpfcc
Version: 0.29.1+ds-1.1
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the bpfcc failed for loong64 in the my local ENV.

I have added the build support for loongarch64 in the bpfcc source 
package. And built successfully on my local ENV.

Please consider the patch I attached.
If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

diff --git a/debian/control b/debian/control
index 369784f..e76b349 100644
--- a/debian/control
+++ b/debian/control
@@ -39,7 +39,7 @@ Vcs-Browser: https://salsa.debian.org/debian/bpfcc
 Rules-Requires-Root: no
 
 Package: libbpfcc
-Architecture: amd64 arm64 ppc64 s390x armhf
+Architecture: amd64 arm64 loong64 ppc64 s390x armhf
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Multi-Arch: same
 Description: shared library for BPF Compiler Collection (BCC)
@@ -53,7 +53,7 @@ Description: shared library for BPF Compiler Collection (BCC)
  to control BPF programs from userspace.
 
 Package: libbpfcc-dev
-Architecture: amd64 arm64 ppc64 s390x armhf
+Architecture: amd64 arm64 loong64 ppc64 s390x armhf
 Section: libdevel
 Depends: ${misc:Depends},
  libbpfcc (= ${binary:Version})
@@ -98,7 +98,7 @@ Description: tools for BPF Compiler Collection (BCC)
  This package provides the command-line tools and examples
 
 Package: libbpf-tools
-Architecture: amd64 arm64
+Architecture: amd64 arm64 loong64
 Depends: ${misc:Depends},
  ${shlibs:Depends}
 Description: tools for BPF Compiler Collection based on libbpf (BTF and CO-RE)
@@ -115,7 +115,7 @@ Description: tools for BPF Compiler Collection based on libbpf (BTF and CO-RE)
  At this time this package contains subset of tools from bpfcc-tools
 
 Package: bpfcc-introspection
-Architecture: amd64 arm64 ppc64
+Architecture: amd64 arm64 loong64 ppc64
 Depends: ${misc:Depends},
  ${shlibs:Depends},
  libbpfcc (= ${binary:Version})