Bug#1075735: (no subject)

2024-07-03 Thread wuruilong

Package: golang-github-coreos-discovery-etcd-io

Version: 2.0.0+git2019.04.19.git.78fb45d3c9-4

Severity: wishlist

Tags: patch

User: debian-loonga...@lists.debian.org

Usertags: loong64


Dear maintainers,


golang-github-coreos-discovery-etcd-io software third-party dependencies 
do not support loongarch, please refer to the attached content to update 
the code.



wuruilong

Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 golang-github-coreos-discovery-etcd-io (2.0.0+git2019.04.19.git.78fb45d3c9-4) unstable; urgency=medium
 .
   * Rebuilt.
Author: Thomas Goirand 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-07-03

--- /dev/null
+++ golang-github-coreos-discovery-etcd-io-2.0.0+git2019.04.19.git.78fb45d3c9/vendor/github.com/coreos/bbolt/bolt_loong64.go
@@ -0,0 +1,9 @@
+// +build loong64
+
+package bbolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0x // 256TB
+
+// maxAllocSize is the size used when creating array pointers.


Bug#1074620: golang-refraction-networking-utls: Supplementary patches

2024-07-04 Thread wuruilong
Source: golang-refraction-networking-utls
Version: 1.2.1-2
Followup-For: Bug #1074620
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

I'm very sorry, I forgot to attach the patch. now I'm adding the patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 golang-refraction-networking-utls (1.2.1-2) unstable; urgency=medium
 .
   * Team upload
   * Use short mode in tests to skip external network related.
 And enable tests on ppc64le. The failed test in #976940 is removed
 by upstream.
   * Add patch to skip failed handshake tests.
Author: Shengjing Zhu 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-07-05

--- golang-refraction-networking-utls-1.2.1.orig/cpu/cpu_loong64.go
+++ golang-refraction-networking-utls-1.2.1/cpu/cpu_loong64.go
@@ -7,7 +7,7 @@
 
 package cpu
 
-const CacheLineSize = 64
+const CacheLinePadSize = 64
 
-func initOptions() {
+func doinit() {
 }


Bug#1074301: pmdk: please add support for loong64

2024-07-09 Thread wuruilong
Source: pmdk
Version: 1.13.1-1.1
Tags: patch
Followup-For: Bug #1074301
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear Maintainer,

Now it turns out that a single line of code change can pick loongarch to 
compile the pmdk code. Please merge the attached latest patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: Autogenerated patch header for a single-debian-patch file.
 The delta against upstream is either kept as a single patch, or maintained
 in some VCS, and exported as a single patch instead of more manageable
 atomic patches.
Forwarded: not-needed

---
--- pmdk-1.13.1.orig/src/libpmem2/loongarch64/init.c
+++ pmdk-1.13.1/src/libpmem2/loongarch64/init.c
@@ -36,6 +36,6 @@ pmem2_arch_init(struct pmem2_arch_info *
 {
LOG(3, NULL);
 
-   info->fence = loongarch_fence;
+   info->fence = loongarch_memory_fence;
info->flush = loongarch_flush;
 }


Bug#1052603: ode: Please add loongarch64 support .

2024-07-16 Thread wuruilong
Source: ode
Version: 2:0.16.2-1.1
Followup-For: Bug #1052603
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

In loongarch compilation error, please merge the above patch. after testing, 
the package can be compiled successfully.

wuruilong
-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1068620: rust-nix: please add support for loong64

2024-07-18 Thread wuruilong
Source: rust-nix
Followup-For: Bug #1068620
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch ?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1058649: ffcall: Add patch

2024-07-18 Thread wuruilong
Source: ffcall
Version: 2.4-2.1
Followup-For: Bug #1058649
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The current version of the patch was made according to the upstream and 
compiled successfully on loongarch.
Tried to add the patch using the attachment, but was unsuccessful. The link to 
the patch is here: 
https://github.com/loongarchlinux/extra/blob/main/ffcall/libffcall-la64-2.4.patch

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1052385: st: Add patch

2024-07-18 Thread wuruilong
Source: st
Version: 1.9-3.4
Followup-For: Bug #1052385
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The patch that supports the loongarch architecture was created with reference 
to riscv's code, and has been tested to compile successfully on loongarch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 st (1.9-3.4) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * debian/patches/02-implicit-declarations.patch: Fix an improper macro
 feature check. Thanks to Zixing Liu .
 (Closes: #1065797, #1066287, LP: #2060973)
   * debian/patches/1032955_riscv_support.patch: Add support for RISC-V
 CPU. Thanks to Steven Liu .
 (Closes: #1032955, LP: #2061639)
   * Switch from transitional pkg-config to pkgconf.
   * Whitespace cleanup.
Author: Andreas Beckmann 
Bug-Debian: https://bugs.debian.org/1032955
Bug-Debian: https://bugs.debian.org/1065797
Bug-Debian: https://bugs.debian.org/1066287
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2060973
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2061639

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-07-18

--- st-1.9.orig/md.S
+++ st-1.9/md.S
@@ -507,5 +507,77 @@ _st_md_cxt_restore:
 
 //
 
+#elif defined(__loongarch__)
+   
+//
+/*
+ * Internal __jmp_buf layout
+ * loongarch-asm: 
https://docs.kernel.org/translations/zh_CN/arch/loongarch/introduction.html
+ */
+#define JB_SP  0/* A0, SP, Stack pointer */
+#define JB_RA  1/* RA, Return address */
+#define JB_FP  2/* FP/S0 Frame pointer */
+#define JB_S1  3/* S1 Saved register*/
+#define JB_S2  4/* S2-S9,  Saved register */
+#define JB_S3  5/* S2-S9,  Saved register */
+#define JB_S4  6/* S2-S9,  Saved register */
+#define JB_S5  7/* S2-S9,  Saved register */
+#define JB_S6  8/* S2-S9,  Saved register */
+#define JB_S7  9/* S2-S9,  Saved register */
+#define JB_S8  10/* S2-S9,  Saved register */
+#define JB_S9  11   /* S2-S9,  Saved register */
+
+
+   .file "md.S"
+   .text
+
+   /* _st_md_cxt_save(__jmp_buf env) */ 
+   .globl _st_md_cxt_save
+   .type _st_md_cxt_save, %function
+   .align 2
+_st_md_cxt_save:
+   st.d$sp,  $a0, JB_SP  * 8
+   st.d$ra,  $a0, JB_RA  * 8
+   st.d$s0,  $a0, JB_FP  * 8
+   st.d$s1,  $a0, JB_S1  * 8
+   st.d$s2,  $a0, JB_S2  * 8
+   st.d$s3,  $a0, JB_S3  * 8
+   st.d$s4,  $a0, JB_S4  * 8
+   st.d$s5,  $a0, JB_S5  * 8
+   st.d$s6,  $a0, JB_S6  * 8
+   st.d$s7,  $a0, JB_S7  * 8
+   st.d$s8,  $a0, JB_S8  * 8
+   st.d$s9,  $a0, JB_S9  * 8
+   li.w$a0,  0
+   jr  $ra
+   .size _st_md_cxt_save, .-_st_md_cxt_save
+
+//
+
+   /* _st_md_cxt_restore(__jmp_buf env, int val) */
+   .globl _st_md_cxt_restore
+   .type _st_md_cxt_restore, %function
+   .align 2
+_st_md_cxt_restore:
+   ld.d$sp,  $a0, JB_SP  * 8 
+   ld.d$ra,  $a0, JB_RA  * 8 
+   ld.d$s0,  $a0, JB_FP  * 8 
+   ld.d$s1,  $a0, JB_S1  * 8 
+   ld.d$s2,  $a0, JB_S2  * 8 
+   ld.d$s3,  $a0, JB_S3  * 8 
+   ld.d$s4,  $a0, JB_S4  * 8 
+   ld.d$s5,  $a0, JB_S5  * 8 
+   ld.d$s6,  $a0, JB_S6  * 8 
+   ld.d$s7,  $a0, JB_S7  * 8 
+   ld.d$s8,  $a0, JB_S8  * 8 
+   ld.d$s9,  $a0, JB_S9  * 8 
+   li.w$a0,  1
+   jr  $ra
+   .size _st_md_cxt_restore, .-_st_md_cxt_restore
+
+//
+
 #endif
 
--- st-1.9.orig/md.h
+++ st-1.9/md.h
@@ -447,6 +447,11 @@
 #de

Bug#1071018: No patch

2024-07-23 Thread wuruilong

在 2024/7/22 下午7:36, Thomas Goirand 写道:

Hi,

Did you forget to attach the actual patch?

Cheers,

Thomas Goirand (zigo)


Hi,

Sorry I wasn't clear, place the flaky-tests-loong64.txt file in the 
debian directory of ovn.


Please refer to riscv placement location 
ovn-24.03.2/debian/flaky-tests-riscv64.txt.


Please feel free to contact us if you have any questions。

Cheers,

wuruilong

send gratuitous arp on localnet
1 LR with distributed router gateway port
router - check packet length - icmp defrag
multi-vtep SB Chassis encap updates
ACL with Port Group conjunction flow efficiency
ipsec -- basic configuration
ovn-controller incremental processing


Bug#1077582: mpgrafic: please add support for loong64

2024-07-30 Thread wuruilong
Source: mpgrafic
Version: 0.3.19-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

mpgrafic failed to compile on loongarch, adding the attachment has fixed the 
problem.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- mpgrafic-0.3.19/debian/rules2020-08-01 02:43:05.0 +
+++ mpgrafic/debian/rules   2024-07-30 06:47:43.354258438 +
@@ -13,7 +13,7 @@
 export MPI_ALLOW_RUN_AS_ROOT = --allow-run-as-root
 
 %:
-   dh $@
+   dh $@ --with autoreconf
 
 # https://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html
 # https://wiki.debian.org/RpathIssue


Bug#1077588: a7xpg: please add support for loong64

2024-07-30 Thread wuruilong
Source: a7xpg
Version: 0.11.dfsg1-11
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

a7xpg failed to compile on loongarch, adding the attachment has fixed the 
problem.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- a7xpg-0.11.dfsg1/debian/rules   2024-07-30 08:29:34.078895594 +
+++ a7xpg/debian/rules  2024-07-30 08:28:18.659381905 +
@@ -8,7 +8,7 @@
 
 
 %:
-   dh $@ 
+   dh $@ --with autoreconf
 
 override_dh_auto_build:
dh_auto_build -- DFLAGS="$(DFLAGS)"


Bug#1071151: ghc: Please merge the patch

2024-07-31 Thread wuruilong
Package: ghc
Version: 9.4.7-1+loong64.1
Followup-For: Bug #1071151
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

ghc blocks the compilation of many packages, and the latest version has been 
verified to still require this patch, please merge this patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages ghc depends on:
ii  dpkg1.22.6
ii  gcc 4:14.1.0-2
ii  libbsd-dev  0.12.2-1
ii  libc6   2.39-6
ii  libc6-dev   2.39-6
ii  libffi-dev  3.4.6-1
ii  libffi8 3.4.6-1
ii  libgmp-dev  2:6.3.0+dfsg-2+b1
ii  libgmp102:6.3.0+dfsg-2+b1
ii  libncurses-dev  6.5-2
ii  libtinfo6   6.5-2
ii  llvm-16 1:16.0.6-27+b1

ghc recommends no packages.

Versions of packages ghc suggests:
pn  ghc-doc   
pn  ghc-prof  
pn  llvm-15   
ii  perl  5.38.2-5

-- no debconf information



Bug#1068627: teem: please add support for loong64

2024-08-05 Thread wuruilong
Source: teem
Version: 1.12.0~20160122-5
Followup-For: Bug #1068627
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can someone please assist in merging this patch?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1068614: gmt: please add support for loong64

2024-08-05 Thread wuruilong
Source: gmt
Version: 6.5.0+dfsg-3
Followup-For: Bug #1068614
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Now, gmt still compiles incorrectly on loongarch, and the debian repositories 
don't merge this patch. please merge the patch!

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1074046: lomiri-thumbnailer: please add support for loong64

2024-08-05 Thread wuruilong
Source: lomiri-thumbnailer
Version: 3.0.3-1
Followup-For: Bug #1074046
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1069797: openmsx: please add support for loong64

2024-08-05 Thread wuruilong
Source: openmsx
Version: 19.1+dfsg-1
Followup-For: Bug #1069797
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1069808: perftest: please add support for loong64

2024-08-05 Thread wuruilong
Source: perftest
Version: 24.01.0+0.38-1
Followup-For: Bug #1069808
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Upstream has already merged in this patch, please upgrade the version or merge 
the patch into the repository.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1074042: patat: please add support for loong64

2024-08-05 Thread wuruilong
Source: patat
Version: 0.11.0.0-1
Followup-For: Bug #1074042
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1074301: pmdk: please add support for loong64

2024-08-05 Thread wuruilong
Source: pmdk
Version: 1.13.1-1.1
Followup-For: Bug #1074301
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1068165: prads: please add support for loong64

2024-08-05 Thread wuruilong
Source: prads
Followup-For: Bug #1068165
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Upstream has merged patches, can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1070106: rsbackup: please add support for loong64

2024-08-05 Thread wuruilong
Source: rsbackup
Version: 8.0-1
Followup-For: Bug #1070106
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge this patch please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1074620: golang-refraction-networking-utls: FTBFS on loong64

2024-08-05 Thread wuruilong
Source: golang-refraction-networking-utls
Version: 1.2.1-2
Followup-For: Bug #1074620
X-Debbugs-Cc: wuruil...@loongson.cn
Control: tags -1 ftbfs

Dear Maintainer,

The cpu directory module is now deprecated upstream, so there is no need to 
adapt golang-refraction-networking-utls for different architectures. please 
synchronize the upstream software version or merge in the attached patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059602: sphde: pleas add support for loong64

2024-08-05 Thread wuruilong
Source: sphde
Followup-For: Bug #1059602
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Upstream has been merged into PR, please upgrade the upstream version or merge 
it into the attached patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1071605: sparse: please add support for loong64

2024-08-05 Thread wuruilong
Source: sparse
Followup-For: Bug #1071605
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

sparse is blocking the compilation of many packages, can anyone merge the 
attached patches?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1052385: st: Add loongarch64 support

2024-08-05 Thread wuruilong
Source: st
Version: 1.9-3.4
Followup-For: Bug #1052385
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

st is blocking the compilation of many packages, can anyone merge the attached 
patches please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1071020: stenographer: please add support for loong64

2024-08-06 Thread wuruilong
Source: stenographer
Version: 1.0.1-6
Followup-For: Bug #1071020
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Upstream has been archived, please merge in the attached patch to support the 
loongarch architecture.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1070104: termshark: please add support for loong64

2024-08-07 Thread wuruilong
Source: termshark
Version: 2.4.0-1
Followup-For: Bug #1070104
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The termshark software blocks many packages from continuing to compile, so 
maintainers can merge this patch?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1066835: universal-ctags: please add support for loong64

2024-08-07 Thread wuruilong
Source: universal-ctags
Version: 5.9.20210829.0-1
Followup-For: Bug #1066835
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Upstream has been merged into PR, please upgrade the software version or
merge the attached patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1070037: xwallpaper: please add support for loong64

2024-08-07 Thread wuruilong
Source: xwallpaper
Version: 0.7.3-1
Followup-For: Bug #1070037
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge the attached patches please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1074312: yorick-ynfft: please add support for loong64

2024-08-07 Thread wuruilong
Source: yorick-ynfft
Version: 1.0.3-1
Followup-For: Bug #1074312
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Can anyone merge the attached patches please?

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1056560: vpb-driver: add support for loongarch

2023-11-22 Thread wuruilong
Source: vpb-driver
Version: 4.2.61-1.4
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Failed to compile vpb-driver on loongarch architecture, please use
additional patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 vpb-driver (4.2.61-1.4) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Fix ftbfs. (Closes: #1025831)
Author: Bo YU 
Bug-Debian: https://bugs.debian.org/1025831

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2023-11-23

--- vpb-driver-4.2.61.orig/ac-aux/config.sub
+++ vpb-driver-4.2.61/ac-aux/config.sub
@@ -265,6 +265,7 @@ case $basic_machine in
| k1om \
| le32 | le64 \
| lm32 \
+| loongarch | loongarch64 | loong64 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \


Bug#1056579: ceph: add support for loong64

2023-11-23 Thread wuruilong
Source: ceph
Version: 16.2.11+ds-5
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

ceph compilation error in loong64 arch, the 
attached patch provides some reference.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ceph (16.2.11+ds-5) unstable; urgency=high
 .
   * CVE-2023-43040: security issue with RGW with improperly verified POST keys.
 Applied upstream fix: rgw: Fix bucket validation against POST policies
 (Closes: #1053690).
Author: Thomas Goirand 
Bug-Debian: https://bugs.debian.org/1053690

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2023-11-23

--- /dev/null
+++ ceph-16.2.11+ds/etc/sysctl/90-ceph-osd.conf
@@ -0,0 +1,2 @@
+fs.aio-max-nr = 1048576
+kernel.pid_max = 4194304
--- ceph-16.2.11+ds.orig/src/boost/boost/predef/architecture.h
+++ ceph-16.2.11+ds/src/boost/boost/predef/architecture.h
@@ -15,6 +15,7 @@ http://www.boost.org/LICENSE_1_0.txt)
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
--- /dev/null
+++ ceph-16.2.11+ds/src/boost/boost/predef/architecture/loongarch.h
@@ -0,0 +1,43 @@
+/*
+Copyright Ruilong Wu 2023
+Distributed under the Boost Software License, Version 1.0.
+(See accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+*/
+
+#ifndef BOOST_PREDEF_ARCHITECTURE_LOONGARCH_H
+#define BOOST_PREDEF_ARCHITECTURE_LOONGARCH_H
+
+#include 
+#include 
+
+/* tag::reference[]
+= `BOOST_ARCH_LOONGARCH`
+
+http://en.wikipedia.org/wiki/RISC-V[RISC-V] architecture.
+
+[options="header"]
+|===
+| {predef_symbol} | {predef_version}
+
+| `+__loongarch__+` | {predef_detection}
+|===
+*/ // end::reference[]
+
+#define BOOST_ARCH_LOONGARCH BOOST_VERSION_NUMBER_NOT_AVAILABLE
+
+#if defined(__loongarch__)
+#   undef BOOST_ARCH_LOONGARCH
+#   define BOOST_ARCH_LOONGARCH BOOST_VERSION_NUMBER_AVAILABLE
+#endif
+
+#if BOOST_ARCH_LOONGARCH
+#   define BOOST_ARCH_LOONGARCH_AVAILABLE
+#endif
+
+#define BOOST_ARCH_RISCV_NAME "LoongArch"
+
+#endif
+
+#include 
+BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_LOONGARCH,BOOST_ARCH_LOONGARCH_NAME)
--- ceph-16.2.11+ds.orig/src/boost/boost/predef/other/endian.h
+++ ceph-16.2.11+ds/src/boost/boost/predef/other/endian.h
@@ -125,6 +125,7 @@ information and acquired knowledge:
 defined(__ARMEL__) || \
 defined(__THUMBEL__) || \
 defined(__AARCH64EL__) || \
+   defined(__loongarch__) || \
 defined(_MIPSEL) || \
 defined(__MIPSEL) || \
 defined(__MIPSEL__) || \
--- ceph-16.2.11+ds.orig/src/boost/boostcpp.jam
+++ ceph-16.2.11+ds/src/boost/boostcpp.jam
@@ -607,7 +607,7 @@ rule address-model ( )
 return @boostcpp.deduce-address-model ;
 }
 
-local deducable-architectures = arm mips1 power riscv s390x sparc x86 combined 
;
+local deducable-architectures = arm loongarch mips1 power riscv s390x sparc 
x86 combined ;
 feature.feature deduced-architecture : $(deducable-architectures) : propagated 
optional composite hidden ;
 for a in $(deducable-architectures)
 {
@@ -618,9 +618,10 @@ rule deduce-architecture ( properties *
 {
 local result ;
 local filtered = [ toolset-properties $(properties) ] ;
-local names = arm mips1 power riscv s390x sparc x86 combined ;
+local names = arm loongarch mips1 power riscv s390x sparc x86 combined ;
 local idx = [ configure.find-builds "default architecture" : $(filtered)
 : /boost/architecture//arm
+: /boost/architecture//loongarch
 : /boost/architecture//mips1
 : /boost/architecture//power
 : /boost/architecture//riscv


Bug#1057458: gnuradio: compilation errors on the loong64 arch

2023-12-05 Thread wuruilong
Source: gnuradio
Version: 3.10.8.0-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  To fix compilation errors on the LoongArch architecture. Please refer to the 
attachment for modifications made to the control file.

Thanks,
wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
39c39
<  libthrift-dev (>= 0.13.0-5) [amd64 arm64 armel armhf i386 
loong64 mips64el mipsel ppc64el s390x riscv64],
---
>  libthrift-dev (>= 0.13.0-5) [amd64 arm64 armel armhf i386 
> mips64el mipsel ppc64el s390x riscv64],
41c41
<  libunwind-dev [amd64 arm64 armel armhf hppa i386 ia64 loong64 
mipsel mips64el powerpc ppc64 ppc64el sh4],
---
>  libunwind-dev [amd64 arm64 armel armhf hppa i386 ia64 mipsel 
> mips64el powerpc ppc64 ppc64el sh4],
66c66
<  python3-thrift [amd64 arm64 armel armhf i386 loong64 mips64el 
mipsel ppc64el riscv64 s390x],
---
>  python3-thrift [amd64 arm64 armel armhf i386 mips64el mipsel 
> ppc64el riscv64 s390x],
73c73
<  thrift-compiler [amd64 arm64 armel armhf i386 loong64 mips64el 
mipsel ppc64el riscv64 s390x],
---
>  thrift-compiler [amd64 arm64 armel armhf i386 mips64el mipsel 
> ppc64el riscv64 s390x],
102c102
<python3-thrift [amd64 arm64 armel armhf i386 loong64 mips64el mipsel 
ppc64el riscv64 s390x],
---
>python3-thrift [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el 
> riscv64 s390x],


Bug#1072148: epics-base: please add support for loong64

2024-05-29 Thread wuruilong

在 2024/5/29 下午4:20, Andrius Merkys 写道:

Control: forwarded -1 https://github.com/epics-base/epics-base/pull/329

Hi,

On 2024-05-29 10:31, wuruilong wrote:

Compile error on loongarch, reference upstream code to provide patch.
Link to upstream code:https://github.com/epics-base/epics-base/pull/329


Why does this patch modify the embedded valgrind source?

Thanks,
Andrius


Modify the valgrind header file because valgrind's code has gone too 
long without loongarch support.


wuruilong



Bug#1072148: epics-base: please add support for loong64

2024-05-29 Thread wuruilong

在 2024/5/29 下午9:30, Andrius Merkys 写道:

On 2024-05-29 11:32, wuruilong wrote:
Modify the valgrind header file because valgrind's code has gone too 
long without loongarch support.


Does the valgrind Debian package support loong64? If so, the embedded 
valgrind/valgrind.h can be replaced with the header from Debian package.


Andrius


I checked valgrind debian package is not supported loongarch architecture.

wuruilong



Bug#1058649: (no subject)

2024-05-30 Thread wuruilong

Dear Maintainer:

Upstream has merged patch to support loongarch at the following link: 
https://git.savannah.gnu.org/gitweb/?p=libffcall.git;a=commit;h= 
600d713cd18f09a698f937ff6c2cead41036e3da.


Please upgrade the version or merge the patches in the link.

Thanks

wuruilong



Bug#1068165: (no subject)

2024-05-30 Thread wuruilong

Dear Maintainer,

This patch has been merged upstream, please upgrade the version or merge 
the attached patch. The link to merge the PR is as follows: 
https://github.com/gamelinux/prads/pull/56


wuruilong



Bug#1072331: twofish: please add support for loong64

2024-06-01 Thread wuruilong
Source: twofish
Version: 0.3-5
Severity: normal
Tags: patch
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear Maintainer,

twofish in loongarch and riscv in compilation error, detailed error output is 
'ar: libdeps specified more than once'. 
The reason is that GNU ar repurpossed an "l" option. From binutils NEWS:
The ar tool's previously unused l modifier is now used for specifying 
dependencies of a static library. 
The arguments of this option(or --record-libdeps long form option) will be 
stored verbatim in the
  __.LIBDEP member of the archive, which the linker may read at link time.

The attachment patch solves the problem, please merge it into the package.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- twofish-0.3/debian/rules2016-05-07 08:44:38.0 +
+++ two-fish/debian/rules   2024-06-01 07:52:41.610771855 +
@@ -27,7 +27,7 @@
dh_testdir
#
gcc -c -o twofish.o $(CPPFLAGS) $(CFLAGS) twofish.c
-   ar clq $(ANAME) twofish.o
+   ar cq $(ANAME) twofish.o
ranlib $(ANAME)
# Shared library
-rm twofish.o


Bug#1066835: (no subject)

2024-06-03 Thread wuruilong

Dear Maintainer,

The upstream has been merged in with the following link: 
https://github.com/universal-ctags/ctags/pull/3958

Please update the software version or merge the attached patch.

wuruilong



Bug#1072547: FTBS: Compile error on loongarch

2024-06-03 Thread wuruilong
Source: rocksdb
Version: 8.9.1-2
Severity: normal
Tags: patch
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear Maintainer,

Incorrectly set compilation options for rocksdb caused compilation to fail on 
loongarch. The attached patch has fixed this issue, please refer to the patch 
code changes.

wuruilong
-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rocksdb (8.9.1-2) unstable; urgency=medium
 .
   * Upload to Sid.
   * Add loong64 architecture support (closes: #1059023).
Author: Laszlo Boszormenyi (GCS) 
Bug-Debian: https://bugs.debian.org/1059023

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-06-04

--- rocksdb-8.9.1.orig/CMakeLists.txt
+++ rocksdb-8.9.1/CMakeLists.txt
@@ -237,8 +237,8 @@ endif(CMAKE_SYSTEM_PROCESSOR MATCHES "s3
 if(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64")
   CHECK_C_COMPILER_FLAG("-march=loongarch64" HAS_LOONGARCH64)
   if(HAS_LOONGARCH64)
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcpu=loongarch64 -mtune=loongarch64")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=loongarch64 
-mtune=loongarch64")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=loongarch64 -mtune=loongarch64")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=loongarch64 
-mtune=loongarch64")
   endif(HAS_LOONGARCH64)
 endif(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64")
 


Bug#1069022: (no subject)

2024-06-03 Thread wuruilong

Dear Maintainer,

I have checked the cause of this compilation error and it is due to low 
version of rocksdb which does not support loongarch. the attached patch 
has solved the problem, the PR reference link is as follows: 
https://github.com/facebook/rocksdb/pull/10036/files


wuruilong

Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ceph (18.2.3+ds-3) unstable; urgency=medium
 .
   * mips64el: Use -mxgot on CFLAGS, not LDFLAGS, thanks to Adrian Bunk for the
 tip.
Author: Thomas Goirand 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-06-04

--- ceph-18.2.3+ds.orig/src/rocksdb/CMakeLists.txt
+++ ceph-18.2.3+ds/src/rocksdb/CMakeLists.txt
@@ -245,6 +245,14 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "s390x
   endif(HAS_S390X_MARCH_NATIVE)
 endif(CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")
 
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64")
+  CHECK_C_COMPILER_FLAG("-march=loongarch64" HAS_LOONGARCH64)
+  if(HAS_LOONGARCH64)
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=loongarch64 -mtune=loongarch64")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=loongarch64 -mtune=loongarch64")
+  endif(HAS_LOONGARCH64)
+endif(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64")
+
 option(PORTABLE "build a portable binary" OFF)
 option(FORCE_SSE42 "force building with SSE4.2, even when PORTABLE=ON" OFF)
 option(FORCE_AVX "force building with AVX, even when PORTABLE=ON" OFF)
@@ -275,6 +283,9 @@ if(PORTABLE)
 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^s390x")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=z196")
 endif()
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "^loongarch64")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=loongarch64")
+endif()
   endif()
 else()
   if(MSVC)
--- ceph-18.2.3+ds.orig/src/rocksdb/Makefile
+++ ceph-18.2.3+ds/src/rocksdb/Makefile
@@ -2058,7 +2058,7 @@ JAVA_INCLUDE = -I$(JAVA_HOME)/include/ -
 ifeq ($(PLATFORM), OS_SOLARIS)
 	ARCH := $(shell isainfo -b)
 else ifeq ($(PLATFORM), OS_OPENBSD)
-	ifneq (,$(filter amd64 ppc64 ppc64le s390x arm64 aarch64 sparc64, $(MACHINE)))
+	ifneq (,$(filter amd64 ppc64 ppc64le s390x arm64 aarch64 sparc64 loongarch64, $(MACHINE)))
 		ARCH := 64
 	else
 		ARCH := 32
@@ -2079,7 +2079,7 @@ ifneq ($(origin JNI_LIBC), undefined)
 endif
 
 ifeq (,$(ROCKSDBJNILIB))
-ifneq (,$(filter ppc% s390x arm64 aarch64 sparc64, $(MACHINE)))
+ifneq (,$(filter ppc% s390x arm64 aarch64 sparc64 loongarch64, $(MACHINE)))
 	ROCKSDBJNILIB = librocksdbjni-linux-$(MACHINE)$(JNI_LIBC_POSTFIX).so
 else
 	ROCKSDBJNILIB = librocksdbjni-linux$(ARCH)$(JNI_LIBC_POSTFIX).so
--- ceph-18.2.3+ds.orig/src/rocksdb/port/port_posix.h
+++ ceph-18.2.3+ds/src/rocksdb/port/port_posix.h
@@ -169,6 +169,8 @@ static inline void AsmVolatilePause() {
   asm volatile("isb");
 #elif defined(__powerpc64__)
   asm volatile("or 27,27,27");
+#elif defined(__loongarch64)
+  asm volatile("dbar 0");
 #endif
   // it's okay for other platforms to be no-ops
 }
--- ceph-18.2.3+ds.orig/src/rocksdb/util/xxhash.h
+++ ceph-18.2.3+ds/src/rocksdb/util/xxhash.h
@@ -1287,7 +1287,7 @@ XXH_PUBLIC_API XXH128_hash_t XXH128(cons
 
 #ifndef XXH_FORCE_ALIGN_CHECK  /* can be defined externally */
 #  if defined(__i386)  || defined(__x86_64__) || defined(__aarch64__) \
-   || defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM64) /* visual */
+   || defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM64) || defined(__loongarch64) /* visual */
 #define XXH_FORCE_ALIGN_CHECK 0
 #  else
 #define XXH_FORCE_ALIGN_CHECK 1
--- ceph-18.2.3+ds.orig/src/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
+++ ceph-18.2.3+ds/src/rocksdb/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
@@ -160,6 +160,10 @@ static inline tokutime_t toku_time_now(v
   struct timeval tv;
   gettimeofday(&tv, nullptr);
   return (uint64_t)tv.tv_sec * 100 + tv.tv_usec;
+#elif defined(__loongarch64)
+  unsigned long result;
+  asm volatile ("rdtime.d\t%0,$r0" : "=r" (result));
+  return result;
 #else
 #error No timer implementation for this platform
 #endif


Bug#1070037: (no subject)

2024-06-04 Thread wuruilong

Dear Maintainer,

Upstream has merged this patch, the PR link is as follows: 
https://github.com/stoeckmann/xwallpaper/pull/50. Please upgrade the 
debian software version or merge the attached patch.


wuruilong



Bug#1050691: fftw3 causes cubature compilation errors

2024-06-12 Thread wuruilong
Source: fftw3
Version: 3.3.10-1
Followup-For: Bug #1050691
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

loongarch supports long double types, reference link: 
https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html. 
Currently not added due to the architecture of libfftw3-long3 loong64, causing 
cubature compilation to fail. Please merge into the attached patch

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- fftw3-3.3.10/debian/control 2024-06-13 02:16:14.322661748 +
+++ fftw3/debian/control2024-06-13 01:54:45.150536357 +
@@ -49,7 +49,7 @@
  libfftw3-dev. For documentation, see libfftw3-doc.
 
 Package: libfftw3-long3
-Architecture: amd64 arm64 hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 
mips64 mips64el powerpc powerpcspe ppc64el riscv64 s390 s390x sparc x32
+Architecture: amd64 arm64 hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 
loong64 mips64 mips64el powerpc powerpcspe ppc64el riscv64 s390 s390x sparc x32
 Multi-Arch: same
 Depends: ${misc:Depends},
  ${shlibs:Depends}
@@ -114,7 +114,7 @@
 Section: libdevel
 Depends: libfftw3-bin (=${binary:Version}),
  libfftw3-double3 (=${binary:Version}),
- libfftw3-long3 (=${binary:Version}) [amd64 arm64 hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 mips64 mips64el powerpc powerpcspe ppc64el riscv64 
s390 s390x sparc x32],
+ libfftw3-long3 (=${binary:Version}) [amd64 arm64 hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 loong64 mips64 mips64el powerpc powerpcspe ppc64el 
riscv64 s390 s390x sparc x32],
  libfftw3-quad3 (=${binary:Version}) [amd64 hurd-i386 i386 
kfreebsd-amd64 kfreebsd-i386 x32],
  libfftw3-single3 (=${binary:Version}),
  ${misc:Depends}


Bug#1073120: FTBS: Compile error on loongarch

2024-06-12 Thread wuruilong
Source: cubature
Version: 1.0.4+ds-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Because fftw3 did not add loongarch architecture to generate libfftw3-long3, 
resulting in a compilation error in this package. loongarch supports long 
double type, refer to the link: 
https://loongson.github.io/LoongArch-Documentation/ LoongArch-ELF-ABI-EN.html. 
The link to the fftw3 bug is: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050691

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059010: spice: please add support for loong64

2024-06-13 Thread wuruilong
Source: spice
Version: 0.15.1-1
Followup-For: Bug #1059010
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

spice can be compiled successfully on loongarch, please include the attached 
patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- spice-0.15.1/debian/control 2024-06-13 08:51:23.838029593 +
+++ spice/debian/control2024-06-13 08:44:49.928435299 +
@@ -30,7 +30,7 @@
 
 Package: libspice-server1
 Section: libs
-Architecture: alpha amd64 arm64 armel armhf i386 mips64el mipsel ppc64el 
riscv64 sh4 x32
+Architecture: alpha amd64 arm64 armel armhf i386 loong64 mips64el mipsel 
ppc64el riscv64 sh4 x32
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -53,7 +53,7 @@
 
 Package: libspice-server-dev
 Section: libdevel
-Architecture: alpha amd64 arm64 armel armhf i386 mips64el mipsel ppc64el 
riscv64 sh4 x32
+Architecture: alpha amd64 arm64 armel armhf i386 loong64 mips64el mipsel 
ppc64el riscv64 sh4 x32
 Multi-Arch: same
 Depends:
  libspice-protocol-dev (>= 0.14.0~),



Bug#1073251: rpy2: please add support for loong64

2024-06-15 Thread wuruilong
Source: rpy2
Version: 3.5.16-2
Severity: normal
Tags: patch
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear Maintainer,

rpy2 compiled incorrectly on loongarch, the attachment has resolved the issue. 
Please merge patches.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rpy2 (3.5.16-2) unstable; urgency=medium
 .
   [Bo Yu]
   * debian/patches/skip_complex_tests_on_mips64el_and_riscv64: Extended
 mips64el patch to also skip tests on riscv64
 .
   [Dirk Eddelbuettel]
   * Applied patch to address build issue on riskv64(Closes: #1071362)
   * debian/patches/skip_r_embedding_tests: Skip embedding tests which now
 seg.fault under R 4.4.0 while we await a response from upstream
Author: Dirk Eddelbuettel 
Bug-Debian: https://bugs.debian.org/1071362

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-06-14

--- rpy2-3.5.16.orig/rpy2/tests/rinterface/test_na.py
+++ rpy2-3.5.16/rpy2/tests/rinterface/test_na.py
@@ -149,8 +149,8 @@ def test_NACharacter_in_vector():
 assert x.get_charsxp(1).rid == na_str.rid
 assert x[2] == 'cd'
 
-@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64') and sys.byteorder == 'little',
-reason="Complex tests fail for 'mips64el' or 'riscv64'.")
+@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64' or platform.machine() == 'loongarch64') and sys.byteorder == 'little',
+reason="Complex tests fail for 'mips64el' or 'riscv64' or 
'loongarch64'.")
 def test_R_to_NAComplex():
 r_na_complex = ri.evalr('NA_complex_')[0]
 assert math.isnan(r_na_complex.real)
--- rpy2-3.5.16.orig/rpy2/tests/rinterface/test_vector_complex.py
+++ rpy2-3.5.16/rpy2/tests/rinterface/test_vector_complex.py
@@ -6,8 +6,8 @@ import platform
 ri.initr()
 
 
-@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64') and sys.byteorder == 'little',
-reason="Complex tests fail for 'mips64el' or 'riscv64'.")
+@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64' or platform.machine() == 'loongarch64') and sys.byteorder == 'little',
+reason="Complex tests fail for 'mips64el' or 'riscv64' or 
'loongarch64'.")
 def test_init_from_seqr():
 seq = [1+2j, 5+7j, 0+1j]
 v = ri.ComplexSexpVector(seq)
@@ -22,23 +22,23 @@ def test_init_from_seq_invalid_item():
 ri.ComplexSexpVector(seq)
 
 
-@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64') and sys.byteorder == 'little',
-reason="Complex tests fail for 'mips64el' or 'riscv64'.")
+@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64' or platform.machine() == 'loongarch64') and sys.byteorder == 'little',
+reason="Complex tests fail for 'mips64el' or 'riscv64' or 
'loongarch64'.")
 def test_getitem():
 vec = ri.ComplexSexpVector([1+2j, 5+7j, 0+1j])
 assert vec[1] == 5+7j
 
 
-@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64') and sys.byteorder == 'little',
-reason="Complex tests fail for 'mips64el' or 'riscv64'.")
+@pytest.mark.skipif((platform.machine() == 'mips64' or platform.machine() == 
'riscv64' or platform.machine() == 'loongarch64'

Bug#1073254: geary: please add support for loong64

2024-06-15 Thread wuruilong
Source: geary
Version: 46.0-2
Severity: normal
Tags: patch
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear Maintainer,

geary compiled incorrectly on loongarch, the attachment has resolved the issue. 
Please merge patches.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- geary-46.0/debian/rules 2024-06-01 10:50:25.0 +
+++ geary/debian/rules  2024-06-15 08:53:04.100974489 +
@@ -9,7 +9,7 @@
 # needed with the Ubuntu toolchain to avoid issues
 export DEB_LDFLAGS_MAINT_STRIP := -Wl,-Bsymbolic-functions
 
-ifeq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf hppa i386 ia64 mips 
mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4))
+ifeq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf hppa i386 ia64 
loong64 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4))
BUILD_UNWIND += -Dlibunwind=disabled
 endif
 # see https://gitlab.gnome.org/GNOME/geary/issues/726:
root@581f4c48003a:/home/debian-build/wuruilong/test# diff -Nur 
geary-46.0/debian/rules geary/debian/rules >> add-support-for-loong64.patch 
root@581f4c48003a:/home/debian-build/wuruilong/test# vi 
add-support-for-loong64.patch 
root@581f4c48003a:/home/debian-build/wuruilong/test# cat 
add-support-for-loong64.patch 
--- geary-46.0/debian/control   2024-06-01 10:50:25.0 +
+++ geary/debian/control2024-06-15 08:53:18.468883999 +
@@ -32,7 +32,7 @@
libsecret-1-dev (>= 0.11),
libsqlite3-dev (>= 3.24),
libstemmer-dev,
-   libunwind-dev (>= 1.1) [amd64 arm64 armel armhf hppa i386 ia64 
mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4],
+   libunwind-dev (>= 1.1) [amd64 arm64 armel armhf hppa i386 ia64 
loong64 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4],
libwebkit2gtk-4.1-dev,
libxml2-dev (>= 2.7.8),
libytnef0-dev (>= 1.9.3),

--- geary-46.0/debian/rules 2024-06-01 10:50:25.0 +
+++ geary/debian/rules  2024-06-15 08:53:04.100974489 +
@@ -9,7 +9,7 @@
 # needed with the Ubuntu toolchain to avoid issues
 export DEB_LDFLAGS_MAINT_STRIP := -Wl,-Bsymbolic-functions
 
-ifeq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf hppa i386 ia64 mips 
mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4))
+ifeq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf hppa i386 ia64 
loong64 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4))
BUILD_UNWIND += -Dlibunwind=disabled
 endif
 # see https://gitlab.gnome.org/GNOME/geary/issues/726:



Bug#1058570: bcal: compilation errors on the loong64 architecture

2023-12-12 Thread wuruilong
Source: bcal
Version: 2.4-2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,
bcal has compilation errors on the loong64 architecture. 
Please modify the debian/control file to add support for loong64. 
The code is as follows:
Architecture: amd64 arm64 loong64 ppc64 ppc64el riscv64 mips64el

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1058573: bowtie: compilation errors on the loong64 architecture

2023-12-12 Thread wuruilong
Source: bowtie
Version: 1.3.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

bowtie has compilation errors on the loong64 architecture. 
Please modify the debian/control file to add support for loong64. 
The code is as follows:
Architecture: alpha any-amd64 arm64 loong64 mips64el ppc64 ppc64el s390x 
sparc64 riscv64

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1058649: ffcall: compilation error on loong64 arch

2023-12-13 Thread wuruilong
Source: ffcall
Version: 2.4-2.1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The current version has mutation errors in the loong64 architecture. 
Please upgrade to the latest upstream version to support the loong64 
architecture.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1058659: edfbrowser: compilation error in loong64 arch

2023-12-13 Thread wuruilong
Source: edfbrowser
Version: 2.05+dfsg-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

I found that the debian/control file lacks support for the loong64 arch, please 
add loong64 in the Architecture field.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1058573: bowtie: compilation errors on the loong64 architecture

2023-12-14 Thread wuruilong

在 2023/12/13 下午7:57, Andreas Tille 写道:

Control: tags -1 moreinfo

Hi,

Am Wed, Dec 13, 2023 at 03:40:04AM + schrieb wuruilong:

bowtie has compilation errors on the loong64 architecture.
Please modify the debian/control file to add support for loong64.
The code is as follows:
Architecture: alpha any-amd64 arm64 loong64 mips64el ppc64 ppc64el s390x 
sparc64 riscv64

Could you please explain why we should add this architecture if it is
known to cause compilation errors?

Kind regards
Andreas.


If the control file adds support for the loong64 arch, the bowtie software 
package can be successfully compiled.
No architecture support has been added, and the error message when compiling is 
as follows:
“dpkg-genbuildinfo: error: binary build with no binary artifacts found; 
.buildinfo is meaningless
dpkg-buildpackage: error: dpkg-genbuildinfo 
-O../bowtie_1.3.1-1_loong64.buildinfo subprocess returned exit status 255”

wuruilong



Bug#1059010: spice: please add support for loong64

2023-12-19 Thread wuruilong
Source: spice
Version: 0.15.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059080: freefilesync: Please add support for loong64

2023-12-19 Thread wuruilong
Source: freefilesync
Version: 12.5-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059091: generate-ninja: please add support for loong64

2023-12-19 Thread wuruilong
Source: generate-ninja
Version: 0.0~git20231128.7367b0d-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059092: gmap: please add support for loong64

2023-12-19 Thread wuruilong
Source: gmap
Version: 2023-12-01+ds-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059194: golang-github-dnstap-golang-dnstap: please add support for loong64

2023-12-20 Thread wuruilong
Source: golang-github-dnstap-golang-dnstap
Version: 0.4.0-4
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong 

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059198: graph-tool: please add support for loong64

2023-12-20 Thread wuruilong
Source: graph-tool
Version: 2.58+ds-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add support for loong64 arch in the debian/control file.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059602: sphde: pleas add support for loong64

2023-12-28 Thread wuruilong
Source: sphde
Version: 1.4.0-5
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the upstream merge PR to support the loong64 architecture. The 
PR link is as follows:
https://github.com/sphde/sphde/pull/69/files

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059603: rspamd: please add support for loong64

2023-12-28 Thread wuruilong
Source: rspamd
Version: 3.7.3-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the upstream merge PR to support the loong64 architecture. The 
PR link is as follows:
https://github.com/rspamd/rspamd/pull/4704/files

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059604: zycore-c: please add support for loong64

2023-12-28 Thread wuruilong
Source: zycore-c
Version: 1.4.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the upstream merge PR to support the loong64 architecture. The 
PR link is as follows:
https://github.com/zyantific/zycore-c/pull/66/files

wuruilogn

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1059824: librandom123: please add support for loong64

2024-01-01 Thread wuruilong
Source: librandom123
Version: 1.14.0+dfsg-4
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

While compiling the neuron package, an error was encountered. The following 
patch was added to the librandom123 software package, which successfully solved 
the problem.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- a/include/Random123/features/gccfeatures.h  2024-01-02 01:40:35.426859137 
+
+++ b/include/Random123/features/gccfeatures.h  2024-01-02 01:41:19.538567978 
+
@@ -34,7 +34,7 @@
 
 #define R123_GNUC_VERSION (__GNUC__*1 + __GNUC_MINOR__*100 + 
__GNUC_PATCHLEVEL__)
 
-#if !defined(__x86_64__) && !defined(__i386__) && !defined(__powerpc__) && 
!defined(__arm__) && !defined(__aarch64__) && !defined(__s390x__) && 
!defined(__riscv)
+#if !defined(__x86_64__) && !defined(__i386__) && !defined(__powerpc__) && 
!defined(__arm__) && !defined(__aarch64__) && !defined(__s390x__) && 
!defined(__riscv) && !defined(__loongarch__)
 #  error "This code has only been tested on x86, powerpc and a few arm 
platforms."
 #include 

 { /* maybe an unbalanced brace will terminate the compilation */


Bug#1067815: click: please add support for loongarch

2024-03-27 Thread wuruilong
Source: click
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

click failed to test on loongarch platform, please refer to the attached patch 
to fix the error.

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
>From ad41a4ef425dcc65692d272d4589552ebfc6d933 Mon Sep 17 00:00:00 2001
From: wuruilong 
Date: Wed, 27 Mar 2024 06:13:07 +
Subject: [PATCH] add support for loongarch

---
 configure.ac   |  2 ++
 preload/clickpreload.c | 18 ++
 2 files changed, 20 insertions(+)

diff --git a/configure.ac b/configure.ac
index ff69711..fca64bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,8 @@ AS_IF([test "${DBUS_TEST_RUNNER_CHECK}" != "yes"], 
[AC_MSG_ERROR([dbus-test-runn
 AC_CHECK_PROG(GDBUS_CHECK,gdbus,yes)
 AS_IF([test "${GDBUS_CHECK}" != "yes"], [AC_MSG_ERROR([gdbus (glib) not 
found])])
 
+AC_CHECK_FUNC(__xmknod __xstat __xstat64)
+
 # Structure characteristics needed for the Python/C integration in the test
 # suite.
 AC_COMPUTE_INT([STAT_OFFSET_UID], [offsetof(struct stat, st_uid)], [
diff --git a/preload/clickpreload.c b/preload/clickpreload.c
index 2799bff..2c564ab 100644
--- a/preload/clickpreload.c
+++ b/preload/clickpreload.c
@@ -60,9 +60,15 @@ static int (*libc_open) (const char *, int, ...) = (void *) 
0;
 static int (*libc_open64) (const char *, int, ...) = (void *) 0;
 #endif
 static int (*libc_symlink) (const char *, const char *) = (void *) 0;
+#ifdef HAVE___XMKNOD
 static int (*libc___xmknod) (int, const char *, mode_t, dev_t *) = (void *) 0;
+#endif
+#ifdef HAVE___XSTAT
 static int (*libc___xstat) (int, const char *, struct stat *) = (void *) 0;
+#endif
+#ifdef HAVE___XSTAT64
 static int (*libc___xstat64) (int, const char *, struct stat64 *) = (void *) 0;
+#endif
 static int (*libc_stat) (const char *, struct stat *) = (void *) 0;
 #ifdef __GLIBC__
 static int (*libc_stat64) (const char *, struct stat64 *) = (void *) 0;
@@ -125,9 +131,15 @@ static void __attribute__ ((constructor)) 
clickpreload_init (void)
 GET_NEXT_SYMBOL (open64);
 #endif
 GET_NEXT_SYMBOL (symlink);
+#ifdef HAVE___XMKNOD
 GET_NEXT_SYMBOL (__xmknod);
+#endif
+#ifdef HAVE___XSTAT
 GET_NEXT_SYMBOL (__xstat);
+#endif
+#ifdef HAVE___XSTAT64
 GET_NEXT_SYMBOL (__xstat64);
+#endif
 GET_NEXT_SYMBOL (stat);
 #ifdef __GLIBC__
 GET_NEXT_SYMBOL (stat64);
@@ -430,6 +442,7 @@ int open64 (const char *pathname, int flags, ...)
 }
 #endif
 
+#ifdef HAVE___XMKNOD
 int __xmknod (int ver, const char *pathname, mode_t mode, dev_t *dev)
 {
 if (!libc___xmknod)
@@ -438,7 +451,9 @@ int __xmknod (int ver, const char *pathname, mode_t mode, 
dev_t *dev)
 clickpreload_assert_path_in_instdir ("mknod", pathname);
 return (*libc___xmknod) (ver, pathname, mode, dev);
 }
+#endif
 
+#ifdef HAVE___XSTAT
 int __xstat (int ver, const char *pathname, struct stat *buf)
 {
 if (!libc___xstat)
@@ -449,7 +464,9 @@ int __xstat (int ver, const char *pathname, struct stat 
*buf)
 
 return (*libc___xstat) (ver, pathname, buf);
 }
+#endif
 
+#ifdef HAVE___XSTAT64
 int __xstat64 (int ver, const char *pathname, struct stat64 *buf)
 {
 if (!libc___xstat64)
@@ -460,6 +477,7 @@ int __xstat64 (int ver, const char *pathname, struct stat64 
*buf)
 
 return (*libc___xstat64) (ver, pathname, buf);
 }
+#endif
 
 int stat(const char * pathname, struct stat * buf)
 {
-- 
2.43.0



Bug#1068164: bart: please add support for loong64

2024-03-31 Thread wuruilong
Source: bart
Severity: normal
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

bart failed to compile on loongarch, the attachment fixes the bug

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- bart-0.9.00/debian/rules2024-03-30 06:12:54.235656645 +
+++ bart-0.9.00/debian/rules2023-12-11 17:42:37.0 +
@@ -12,7 +12,7 @@
 export PARALLEL_NJOBS=1
 
 # some archs require turning of some optimizations
-NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64 loong64
+NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64
 
 # turn off hanging tests on i386
 ifeq ($(DEB_BUILD_ARCH), i386)


Bug#1068165: prads: please add support for loong64

2024-03-31 Thread wuruilong
Source: prads
Severity: normal
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

prads failed to compile on loongarch, the attachment fixes the bug.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
The Debian packaging of prads is maintained in git, using the merging
workflow described in dgit-maint-merge(7). There isn't a patch queue
that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation - git commits in the packaging repository. For example,
to see the changes made by the Debian maintainer in the first upload
of upstream version 0.3.3, you could use:

% git clone https://git.dgit.debian.org/prads
% cd prads
% git log --oneline 0.3.3..debian/0.3.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone prads`, rather than plain `git clone`.)

A single combined diff, containing all the changes, follows.
--- prads-0.3.3.orig/src/dump_dns.c
+++ prads-0.3.3/src/dump_dns.c
@@ -98,7 +98,7 @@ void printchars(char buf[NS_MAXDNAME], u
(cp) += INT32SZ; \
 } while (0)
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__loongarch__)
 const char *_res_opcodes[] = {
 "QUERY",
 "IQUERY",


Bug#1068164: bart: please add support for loong64

2024-03-31 Thread wuruilong

在 2024/4/1 下午1:19, Andreas Tille 写道:

Hi Martin,

can you please comment on this?

Kind regards
 Andreas.

Am Mon, Apr 01, 2024 at 01:22:03AM + schrieb wuruilong:

Source: bart
Severity: normal
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

bart failed to compile on loongarch, the attachment fixes the bug

wuruilong

-- System Information:
Debian Release: trixie/sid
   APT prefers unreleased
   APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- bart-0.9.00/debian/rules2024-03-30 06:12:54.235656645 +
+++ bart-0.9.00/debian/rules2023-12-11 17:42:37.0 +
@@ -12,7 +12,7 @@
  export PARALLEL_NJOBS=1
  
  # some archs require turning of some optimizations

-NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64 loong64
+NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64
  
  # turn off hanging tests on i386

  ifeq ($(DEB_BUILD_ARCH), i386)
___
Debian-med-packaging mailing list
debian-med-packag...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-packaging

I'm very sorry, the correct code is

-NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64
+NOEXPOPT_ARCHS=arm64 ppc64el s390x ia64 powerpc ppc64 riscv64 loong64
wuruilong




Bug#1071018: ovn: please add support for loong64

2024-05-12 Thread wuruilong
Source: ovn
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

ovn compiled incorrectly on loongarch architecture, the attached patch solved 
the above problem and compiled successfully. Please refer to patch to modify 
the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
send gratuitous arp on localnet
1 LR with distributed router gateway port
router - check packet length - icmp defrag
multi-vtep SB Chassis encap updates
ACL with Port Group conjunction flow efficiency
ipsec -- basic configuration
ovn-controller incremental processing


Bug#1071019: openturns: please add support for loong64

2024-05-12 Thread wuruilong
Source: openturns
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

openturns compiled incorrectly on loongarch architecture, the attached patch 
solved the above problem and compiled successfully. Please refer to patch to 
modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- openturns-1.21.1/debian/rules   2024-04-18 21:10:50.0 +
+++ openturns/debian/rules  2024-05-13 02:52:40.370327122 +
@@ -29,6 +29,11 @@
 test_discardflags := -E \\\"Dlib_.*\\\"
 endif
 
+# On loong64, deactivating Dlib tests (seems to be a bug in Dlib)
+ifeq ($(shell dpkg --print-architecture),loong64)
+test_discardflags := -E \\\"Dlib_.*\\\"
+endif
+
 BUILD_DATE = $(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%a, %d %b %Y 
%H:%M:%S %z")
 
 %:


Bug#1071020: stenographer: please add support for loong64

2024-05-12 Thread wuruilong
Source: stenographer
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

stenographer compiled incorrectly on loongarch architecture, the attached patch 
solved the above problem and compiled successfully. Please refer to patch to 
modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 stenographer (1.0.1-4) unstable; urgency=medium
 .
   * Try to make autopkgtests more robust.
   * Correctly use "skippable" autopkgtest property.
Author: Sascha Steinbiss 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-13

--- stenographer-1.0.1.orig/stenotype/stenotype.cc
+++ stenographer-1.0.1/stenotype/stenotype.cc
@@ -307,7 +307,9 @@ void CommonPrivileges(scmp_filter_ctx ct
   SECCOMP_RULE_ADD(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat), 0);
   SECCOMP_RULE_ADD(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fallocate), 0);
   SECCOMP_RULE_ADD(ctx, SCMP_ACT_ALLOW, SCMP_SYS(ftruncate), 0);
+#ifdef __NR_fstat
   SECCOMP_RULE_ADD(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat), 0);
+#endif
 #ifdef __NR_fstat64
   SECCOMP_RULE_ADD(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat64), 0);
 #endif


Bug#1071025: zathura: please add support for loong64

2024-05-12 Thread wuruilong
Source: zathura
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

zathura compiled incorrectly on loongarch architecture, the attached patch 
solved the above problem and compiled successfully. Please refer to patch to 
modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 zathura (0.5.6-1) unstable; urgency=medium
 .
   * Upload to unstable
   * New upstream version 0.5.6
   * debian/control: Bump Standards version
Author: Sebastian Ramacher 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-13

--- zathura-0.5.6.orig/zathura/seccomp-filters.c
+++ zathura-0.5.6/zathura/seccomp-filters.c
@@ -12,6 +12,7 @@
 #include 
 #include 
 #include  /* for clone filter */
+#include 
 
 #ifdef GDK_WINDOWING_X11
 #include 
@@ -74,7 +75,9 @@ seccomp_enable_strict_filter(zathura_t*
   /* ALLOW_RULE(fadvise64); */
   ALLOW_RULE(fallocate);
   ALLOW_RULE(fcntl);  /* TODO: build detailed filter */
+#ifdef __NR_fstat
   ALLOW_RULE(fstat); /* used by older libc, stat (below), lstat(below), 
fstatat, newfstatat(below) */
+#endif
   ALLOW_RULE(fstatfs); /* statfs (below) */
   ALLOW_RULE(ftruncate);
   ALLOW_RULE(futex);


Bug#1071032: golang-github-jacobsa-crypto: please add support for loong64

2024-05-13 Thread wuruilong
Source: golang-github-jacobsa-crypto
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

 golang-github-jacobsa-cryptocompiled incorrectly on loongarch architecture, 
the attached patch solved the above problem and compiled successfully. Please 
refer to patch to modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 golang-github-jacobsa-crypto (0.0~git20190317.9f44e2d+dfsg1-4) unstable; 
urgency=medium
 .
   * Team Upload.
   * d/t/{in-tree-testing,installed-packages}: Set GO111MODULE=off to
 fix test with go 1.16
Author: Nilesh Patra 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-13

--- 
golang-github-jacobsa-crypto-0.0~git20190317.9f44e2d+dfsg1.orig/cmac/hash_64bit.go
+++ 
golang-github-jacobsa-crypto-0.0~git20190317.9f44e2d+dfsg1/cmac/hash_64bit.go
@@ -13,7 +13,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// +build amd64 arm64 ppc64 ppc64le ppc64el mips64 mips64le mips64el s390x 
alpha amd64p32 arm64be mipso64 mipsn64 mips64p32 mips64p32le ia64 riscv64 
sparc64
+// +build amd64 arm64 ppc64 ppc64le ppc64el mips64 mips64le mips64el s390x 
alpha amd64p32 arm64be loong64 mipso64 mipsn64 mips64p32 mips64p32le ia64 
riscv64 sparc64
 
 // This code assumes that it's safe to perform unaligned word-sized loads. 
This is safe on:
 //  - arm64 per 
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/ch05s01s02.html


Bug#1067815: (no subject)

2024-05-13 Thread wuruilong

Dear Maintainer,

Upstream has been merged to support loongarch architecture code, the PR 
link is as follows: 
https://gitlab.com/ubports/development/core/click/-/merge_requests/41. 
Please merge the attached patch, or upgrade the software version.


wuruilong



Bug#1071025: (no subject)

2024-05-17 Thread wuruilong

Dear Maintainer,

Upstream has been merged to support loongarch architecture code, the PR 
link is as follows: https://github.com/pwmt/zathura/pull/570. Please 
merge the attached patch, or upgrade the software version.


wuruilong



Bug#1071550: zabbix: please add support for loong64

2024-05-20 Thread wuruilong
Source: zabbix
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

zabbix compiled incorrectly on loongarch, the attachment has fixed the bug. 
Please refer to the attached patch to modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 zabbix (1:6.0.29+dfsg-1) unstable; urgency=medium
 .
   [ Andreas B. Mundt ]
   * Tiny fix for zabbix-server-pgsql.README.Debian:
 Make user zabbix the owner of the zabbix db.
 .
   [ Dmitry Smirnov ]
   * New upstream release.
   * Use vendored "miekg/dns" to fix FTBFS (Closes: #1064715).
Author: Dmitry Smirnov 
Bug-Debian: https://bugs.debian.org/1064715

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-20

--- zabbix-6.0.29+dfsg.orig/src/go/plugins/system/uname/uname_int8.go
+++ zabbix-6.0.29+dfsg/src/go/plugins/system/uname/uname_int8.go
@@ -1,5 +1,5 @@
-//go:build (linux && 386) || (linux && amd64) || (linux && arm64) || (linux && 
mips64le) || (linux && mipsle)
-// +build linux,386 linux,amd64 linux,arm64 linux,mips64le linux,mipsle
+//go:build (linux && 386) || (linux && amd64) || (linux && arm64) || (linux && 
mips64le) || (linux && mipsle) || (linux && loong64)
+// +build linux,386 linux,amd64 linux,arm64 linux,mips64le linux,mipsle 
linux,loong64
 
 /*
 ** Zabbix


Bug#1071605: sparse: please add support for loong64

2024-05-22 Thread wuruilong
Source: sparse
Version: 0.6.4-4
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

sparse compiled incorrectly on loongarch, the attachment has fixed the bug. 
Please refer to the attached patch to modify the code.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 sparse (0.6.4-4) unstable; urgency=medium
 .
   * Disable llvm support as it fails to compile with llvm >= 16 (Closes:
 #1051864)
   * Switch to gcc-13
   * Bump Standards-Version (no changes required)
Author: Uwe Kleine-König 
Bug-Debian: https://bugs.debian.org/1051864

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-22

--- sparse-0.6.4.orig/Makefile
+++ sparse-0.6.4/Makefile
@@ -74,6 +74,7 @@ LIB_OBJS += target-arm64.o
 LIB_OBJS += target-bfin.o
 LIB_OBJS += target-default.o
 LIB_OBJS += target-h8300.o
+LIB_OBJS += target-loongarch64.o
 LIB_OBJS += target-m68k.o
 LIB_OBJS += target-microblaze.o
 LIB_OBJS += target-mips.o
--- sparse-0.6.4.orig/machine.h
+++ sparse-0.6.4/machine.h
@@ -42,6 +42,7 @@ enum machine {
MACH_OPENRISC,
MACH_SH,
MACH_XTENSA,
+MACH_LOONGARCH64,
MACH_UNKNOWN
 };
 
@@ -55,6 +56,8 @@ enum machine {
 #defineMACH_NATIVE MACH_X86_64
 #elif defined(__i386__) || defined(__i386)
 #defineMACH_NATIVE MACH_I386
+#elif defined(__loongarch__)
+#define MACH_NATIVEMACH_LOONGARCH64
 #elif defined(__mips64__) || (defined(__mips) && __mips == 64)
 #defineMACH_NATIVE MACH_MIPS64
 #elif defined(__mips__) || defined(__mips)
--- /dev/null
+++ sparse-0.6.4/target-loongarch64.c
@@ -0,0 +1,21 @@
+#include "symbol.h"
+#include "target.h"
+#include "machine.h"
+
+
+
+static void predefine_loongarch64(const struct target *self)
+{
+   predefine("__loongarch__", 1, "64");
+}
+
+const struct target target_loongarch64 = {
+   .mach = MACH_LOONGARCH64,
+   .bitness = ARCH_LP64,
+
+   .big_endian = 0,
+   .unsigned_char = 1,
+   .has_int128 = 1,
+
+   .predefine = predefine_loongarch64,
+};
--- sparse-0.6.4.orig/target.c
+++ sparse-0.6.4/target.c
@@ -94,6 +94,7 @@ static const struct target *targets[] =
[MACH_PPC64] =  &target_ppc64,
[MACH_RISCV32] =&target_riscv32,
[MACH_RISCV64] =&target_riscv64,
+   [MACH_LOONGARCH64] =&target_loongarch64,
[MACH_S390] =   &target_s390,
[MACH_S390X] =  &target_s390x,
[MACH_SH] = &target_sh,
@@ -119,6 +120,7 @@ enum machine target_parse(const char *na
{ "bfin",   MACH_BFIN,  32, },
{ "h8300",  MACH_H8300, 32, },
{ "i386",   MACH_I386,  32, },
+   { "loongarch64",MACH_LOONGARCH64,64,},
{ "m68k",   MACH_M68K,  32, },
{ "microblaze", MACH_MICROBLAZE,32, },
{ "mips",   MACH_MIPS32,0,  },
--- sparse-0.6.4.orig/target.h
+++ sparse-0.6.4/target.h
@@ -120,6 +120,7 @@ extern const struct target target_ppc32;
 extern const struct target target_ppc64;
 extern const struct target target_riscv32;
 extern const struct target target_riscv64;
+extern const struct target target_loongarch64;
 extern const struct target target_s390;
 extern const struct target target_s390x;
 extern const struct target target_sh;


Bug#1066182: (no subject)

2024-05-22 Thread wuruilong

Dear Maintainer,

Can someone please merge this patch?

wuruilong



Bug#1054028: (no subject)

2024-05-22 Thread wuruilong

Dear Maintainer,

I also verified the patch and it compiles the package successfully, can 
the maintainer merge the patch?


wuruilong



Bug#1072064: virglrenderer: FTBFS on loong64: test failures

2024-05-27 Thread wuruilong
Source: virglrenderer
Version: 1.0.0-1
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Compile error on loongarch, refer to riscv code to resolve the error. Please 
merge the attached patch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- virglrenderer-1.0.0/debian/rules2024-05-28 01:49:38.888493655 +
+++ virglrenderer-1.0.0/debian/rules2024-05-28 01:50:07.947897336 +
@@ -46,6 +46,9 @@
 # see #962018, self-test fails on riscv64
 ignore-test-failure = -
 endif
+ifeq (loong64,${DEB_HOST_ARCH})
+ignore-test-failure = -
+endif
 ifeq (32,${DEB_HOST_ARCH_BITS})
 # on 32bits arches, selftest sometimes fails and sometimes not.
 # ignore failures for now


Bug#1069757: kafs-client: please add support for loong64

2024-04-24 Thread wuruilong
Source: kafs-client
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

kafs-client compiles incorrectly on loongarch, the attached patch has solved 
the problem, please refer to the patch to modify the code

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
diff -Nru kafs-client-0.5/debian/changelog kafs-client-0.5/debian/changelog
--- kafs-client-0.5/debian/changelog2023-02-06 04:48:30.0 +0800
+++ kafs-client-0.5/debian/changelog2024-01-06 18:35:32.0 +0800
@@ -1,3 +1,9 @@
+kafs-client (0.5-4.1) UNRELEASED; urgency=medium
+
+  * Fix build failure casued by unrecognized flag "-m64"
+
+ -- Gui-Yue   Sat, 06 Jan 2024 18:35:32 +0800
+
 kafs-client (0.5-4) unstable; urgency=medium
 
   [ Bill MacAllister ]
diff -Nru kafs-client-0.5/debian/patches/fix_unrecognized-flag-m64.patch 
kafs-client-0.5/debian/patches/fix_unrecognized-flag-m64.patch
--- kafs-client-0.5/debian/patches/fix_unrecognized-flag-m64.patch  
1970-01-01 08:00:00.0 +0800
+++ kafs-client-0.5/debian/patches/fix_unrecognized-flag-m64.patch  
2024-01-06 18:35:32.0 +0800
@@ -0,0 +1,23 @@
+Description: Fix bug report #976557
+--- a/Makefile
 b/Makefile
+@@ -30,7 +30,7 @@
+ CFLAGS+= -m32
+ else
+ ifeq ($(BUILDFOR),64-bit)
+-CFLAGS+= -m64
++CFLAGS+=
+ endif
+ endif
+ 
+--- a/src/Makefile.config
 b/src/Makefile.config
+@@ -48,7 +48,7 @@
+ CFLAGS+= -m32
+ else
+ ifeq ($(BUILDFOR),64-bit)
+-CFLAGS+= -m64
++CFLAGS+=
+ endif
+ endif
+ 
diff -Nru kafs-client-0.5/debian/patches/series 
kafs-client-0.5/debian/patches/series
--- kafs-client-0.5/debian/patches/series   2023-02-06 04:48:30.0 
+0800
+++ kafs-client-0.5/debian/patches/series   2024-01-06 18:34:25.0 
+0800
@@ -18,3 +18,4 @@
 0018-rxrpc-pod.patch
 0019-kafs-dns-pod.patch
 auto-gitignore
+fix_unrecognized-flag-m64.patch


Bug#1069765: haskell-termonad: please add support for loong64

2024-04-24 Thread wuruilong
Source: haskell-termonad
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

haskell-termonad compiles incorrectly on loongarch, the attached patch has 
solved the problem, please refer to the patch to modify the code

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 haskell-termonad (4.5.0.0-1) unstable; urgency=medium
 .
   [ Ilias Tsitsimpis ]
   * Declare compliance with Debian policy 4.6.2
 .
   [ Clint Adams ]
   * New upstream release
Author: Clint Adams 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-24

--- haskell-termonad-4.5.0.0.orig/termonad.cabal
+++ haskell-termonad-4.5.0.0/termonad.cabal
@@ -148,7 +148,10 @@ executable termonad
   build-depends:   base
  , termonad
   default-language:Haskell2010
-  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
+  if arch(loongarch64)
+ ghc-options: -Wall -threaded -rtsopts 
+  else
+ ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
 
 test-suite doctests
   type:exitcode-stdio-1.0
@@ -177,7 +180,10 @@ test-suite termonad-test
  , tasty-hedgehog
  , tasty-hspec
   default-language:Haskell2010
-  ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
+  if arch(loongarch64)
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts
+  else
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
   default-extensions:  DataKinds
  , GADTs
  , GeneralizedNewtypeDeriving
@@ -207,7 +213,10 @@ executable termonad-readme
  , colour
   ghc-options: -pgmL markdown-unlit
   default-language:Haskell2010
-  ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
+  if arch(loongarch64)
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts 
+  else
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
 
   if flag(buildexamples)
 buildable: True
@@ -220,7 +229,10 @@ executable termonad-example-colour-exten
  , termonad
  , colour
   default-language:Haskell2010
-  ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
+  if arch(loongarch64)
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts 
+  else
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
 
   if flag(buildexamples)
 buildable: True
@@ -233,7 +245,10 @@ executable termonad-example-colour-exten
  , termonad
  , colour
   default-language:Haskell2010
-  ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
+  if arch(loongarch64)
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts 
+  else 
+ ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
 
   if flag(buildexamples)
 buildable: True
@@ -246,7 +261,10 @@ executable termonad-example-colour-exten
  , termonad
  , colour
   default-language:Haskell2010
-  ghc-options: -Wall -Wincomplete-uni-patterns 
-Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N
+ 

Bug#1069766: mp3splt: please add support for loong64

2024-04-24 Thread wuruilong
Source: mp3splt
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

mp3splt compiles incorrectly on loongarch, the attached patch has solved the 
problem, please refer to the patch to modify the code

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- mp3splt-2.6.2+20170630-origin/debian/rules  2023-08-29 21:53:19.0 
+
+++ mp3splt-2.6.2+20170630/debian/rules 2024-04-24 12:07:59.539387477 +
@@ -85,6 +85,8 @@
 
 
 $(lib_objdir)/config.status: libmp3splt/configure
+   dh_update_autotools_config
+   dh_autoreconf
dh_testdir
mkdir -p $(lib_objdir)
cd $(lib_objdir) && \
@@ -107,6 +109,8 @@
 lib_ldflags = -L$(CURDIR)/$(lib_objdir)/src/.libs -lmp3splt
 
 $(cli_objdir)/config.status: mp3splt/configure
+   dh_update_autotools_config
+   dh_autoreconf
dh_testdir
mkdir -p $(cli_objdir)
cd $(cli_objdir) && \
@@ -127,6 +131,8 @@
|| (cat config.log; exit 1)
 
 $(gui_objdir)/config.status: mp3splt-gtk/configure
+   dh_update_autotools_config
+   dh_autoreconf
dh_testdir
mkdir -p $(gui_objdir)
cd $(gui_objdir) && \


Bug#1069797: openmsx: please add support for loong64

2024-04-24 Thread wuruilong
Source: openmsx
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

openmsx compiles incorrectly on loongarch, the attached patch has solved the 
problem, please refer to the patch to modify the code

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 openmsx (19.1+dfsg-1) unstable; urgency=medium
 .
   [ Aaron Rainbolt ]
   * Override spurious source-is-missing Lintian errors.
   * Don't build-depend on dpkg-dev, it's guaranteed to be installed in a
 Debian build environment.
   * Repack the upstream tarball to remove prebuilt binaries lacking source
 code. (Closes: #1056780)
   * Set 'DEB_BUILD_MAINT_OPTIONS = hardening=+all' in debian/rules.
   * Remove debian/source/include-binaries, every file listed in it doesn't
 exist.
   * Set 'Rules-Requires-Root: no' in debian/control.
   * Use debhelper 13 rather than debhelper 10.
 - Changed "debhelper (>= 10)" to "debhelper-compat (= 13)" in
   debian/control.
 - Deleted debian/compat.
   * Override spurious package-contains-documentation-outside-usr-share-doc
 Lintian gripes.
   * Created debian/upstream/metadata file.
   * Switch back to using vendored catch2, the catch2 Debian package now ships
 catch2 v3 whereas openMSX uses catch2 v2.
   * Overhauled copyright file.
 .
   [ Bas Wijnen ]
   * Revert overriding Lintian's source-is-missing error.
Author: Bas Wijnen 
Bug-Debian: https://bugs.debian.org/1056780

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-25

--- openmsx-19.1+dfsg.orig/build/cpu.py
+++ openmsx-19.1+dfsg/build/cpu.py
@@ -43,6 +43,11 @@ class IA64(CPU):
'''
name = 'ia64'
 
+class LoongArch64(CPU):
+   '''64-bit Loongarch.
+   '''
+   name = 'loongarch64'
+
 class M68k(CPU):
'''Motorola 680x0.
'''
--- openmsx-19.1+dfsg.orig/build/detectsys.py
+++ openmsx-19.1+dfsg/build/detectsys.py
@@ -55,6 +55,8 @@ def detectCPU():
return 'avr32'
elif cpu == 'riscv64':
return 'riscv64'
+   elif cpu == 'loongarch64':
+   return 'loongarch64'
elif cpu == '':
# Python couldn't figure it out.
os = system().lower()


Bug#1069808: perftest: please add support for loong64

2024-04-24 Thread wuruilong
Source: perftest
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

perftest compiles incorrectly on loongarch, the attached patch has solved the 
problem, please refer to the patch to modify the code

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 perftest (24.01.0+0.38-1) unstable; urgency=medium
 .
   * New upstream version and versioning schema (year.month).
 - Upstream man pages revised (Closes: #1054920).
   * man_page.patch: Fix syntax of man page
   * Remove maintainer man pages
   * Newer standards version: 4.6.2
Author: Tzafrir Cohen 
Bug-Debian: https://bugs.debian.org/1054920

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-25

--- perftest-24.01.0+0.38.orig/src/get_clock.h
+++ perftest-24.01.0+0.38/src/get_clock.h
@@ -113,6 +113,15 @@ static inline cycles_t get_cycles()
 {
return perf_get_cycles();
 }
+#elif defined(__loongarch__)
+typedef unsigned long cycles_t;
+static inline cycles_t get_cycles()
+{
+   cycles_t ret;
+   asm volatile("rdtime.d %0,$r0" : "=r"(ret));
+   return ret;
+}
+
 
 #else
 #warning get_cycles not implemented for this architecture: attempt asm/timex.h


Bug#1069990: cbmc: please add support for loong64

2024-04-28 Thread wuruilong
Source: cbmc
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The cbmc package compiled incorrectly on loongarch, the attached patch has 
fixed it. 
Please merge the code from the attached patch into the repository.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 cbmc (5.95.1-4) unstable; urgency=low
 .
   * Fix portability problems for hurd and sh4
Author: Michael Tautschnig 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-28

--- cbmc-5.95.1.orig/src/goto-cc/gcc_mode.cpp
+++ cbmc-5.95.1/src/goto-cc/gcc_mode.cpp
@@ -536,6 +536,7 @@ int gcc_modet::doit()
   {"hexagon", "none" /* Hexagon */},
   {"i386", "i386" /* (not in llc's list: 32-bit x86) */},
   {"lanai", "none" /* Lanai */},
+  {"loongarch64", "loongarch64" /* 64-bit LOONGARCH */},
   {"mips", "mips" /* MIPS (32-bit big endian) */},
   {"mips64", "mips64" /* MIPS (64-bit big endian) */},
   {"mips64el", "mips64el" /* MIPS (64-bit little endian) */},
--- cbmc-5.95.1.orig/src/util/config.cpp
+++ cbmc-5.95.1/src/util/config.cpp
@@ -350,6 +350,35 @@ void configt::ansi_ct::set_arch_spec_alp
   }
 }
 
+void configt::ansi_ct::set_arch_spec_loongarch64()
+{
+   set_LP64();
+   endianness = endiannesst::IS_LITTLE_ENDIAN;
+   long_double_width = 16 * 8;
+   char_is_unsigned = false;
+   NULL_is_zero = true;
+
+   switch(mode)
+   {
+   case flavourt::GCC:
+ defines.push_back("__loongarch__");
+ break;
+ 
+   case flavourt::VISUAL_STUDIO:
+ UNREACHABLE; // not supported by Visual Studio
+ break;
+   
+   case flavourt::CODEWARRIOR:
+   case flavourt::CLANG:
+   case flavourt::ARM:
+   case flavourt::ANSI:
+ break;
+
+   case flavourt::NONE:
+ UNREACHABLE;
+   }
+}
+
 void configt::ansi_ct::set_arch_spec_mips(const irep_idt &subarch)
 {
   if(subarch=="mipsel" ||
@@ -735,6 +764,8 @@ void configt::set_arch(const irep_idt &a
 ansi_c.set_arch_spec_power(arch);
   else if(arch == "riscv64")
 ansi_c.set_arch_spec_riscv64();
+  else if(arch == "loongarch64")
+ansi_c.set_arch_spec_loongarch64();
   else if(arch=="sparc" ||
   arch=="sparc64")
 ansi_c.set_arch_spec_sparc(arch);
@@ -1395,6 +1426,8 @@ irep_idt configt::this_architecture()
 #endif
   #elif defined(__riscv)
 this_arch = "riscv64";
+  #elif defined(__loongarch__)
+this_arch = "loongarch64";
   #elif defined(__sparc__)
 #ifdef __arch64__
   this_arch = "sparc64";
--- cbmc-5.95.1.orig/src/util/config.h
+++ cbmc-5.95.1/src/util/config.h
@@ -223,6 +224,7 @@ public:
 void set_arch_spec_power(const irep_idt &subarch);
 void set_arch_spec_arm(const irep_idt &subarch);
 void set_arch_spec_alpha();
+void set_arch_spec_loongarch64();
 void set_arch_spec_mips(const irep_idt &subarch);
 void set_arch_spec_riscv64();
 void set_arch_spec_s390();


Bug#1069808: perftest: please add support for loong64

2024-04-28 Thread wuruilong

在 2024/4/25 下午7:42, Tzafrir Cohen 写道:

Hi,

Looks good. I guess that it works (I don't have the hardware to test it.
But it won't break any other arch).

Any chance you could post this fix to Upstream?

   https://github.com/linux-rdma/perftest

If not, I'll forward it.

It should get accepted, I guess, like the hppa support:

   https://github.com/linux-rdma/perftest/pull/261

A new upstream release is expected in July (roughly in time for
DebConf).

-- Tzafrir


Hi,

Thank you for your suggestion, upstream has been submitted and merged at 
the following link: https://github.com/linux-rdma/perftest/pull/261.


I hope you will merge this patch.

-- wuruilong



Bug#1070037: xwallpaper: please add support for loong64

2024-04-29 Thread wuruilong
Source: xwallpaper
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The xwallpaper package compiles incorrectly on loongarch, the attached patch 
fixes this. 
Please refer to the patch to modify the code .

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 xwallpaper (0.7.3-1) unstable; urgency=medium
 .
   * New upstream release
   * Bump Debian Standards Version to 4.6.0
Author: Sebastian Reichel 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-29

--- xwallpaper-0.7.3.orig/seccomp.c
+++ xwallpaper-0.7.3/seccomp.c
@@ -53,7 +53,9 @@ add_common_stage2_rules(scmp_filter_ctx
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fchdir), 0) ||
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 0) ||
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl64), 0) ||
+#if (defined(__SNR_fstat) && __SNR_fstat)
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat), 0) ||
+#endif
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat64), 0) ||
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstatat64), 0) ||
seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fsync), 0) ||


Bug#1070052: h2o: please add support for loong64

2024-04-29 Thread wuruilong
Source: h2o
Severity: normal
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The package of h2o compiles incorrectly on loongarch, after analyzing, it is 
caused by the unsupported configure file in 
deps/mruby-onig-regexp/Onigmo-6.1.1.tar.gz zip, onigmo upstream already 
supports loongarch, please update the version of this dependency.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1070104: termshark: please add support for loong64

2024-04-29 Thread wuruilong
Source: termshark
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The termshark software compiles incorrectly on the loong64 architecture, 
the attached patch has resolved the issue.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 termshark (2.4.0-1) unstable; urgency=medium
 .
   * Team upload
   * New upstream release (Closes: #1019201)
   * Bump standards version to 4.6.1.0
   * Fix FTBFS from an updated dependency (Closes: #1020140)
Author: Stephen Gelman 
Bug-Debian: https://bugs.debian.org/1019201
Bug-Debian: https://bugs.debian.org/1020140

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-29

--- termshark-2.4.0.orig/pkg/system/dup.go
+++ termshark-2.4.0/pkg/system/dup.go
@@ -5,6 +5,7 @@
 // +build !windows
 // +build !linux !arm64
 // +build !linux !riscv64
+// +build !linux !loong64
 
 package system
 
--- /dev/null
+++ termshark-2.4.0/pkg/system/dup_linux_loong64.go
@@ -0,0 +1,11 @@
+// Copyright 2019-2022 Graham Clark. All rights reserved.  Use of this source
+// code is governed by the MIT license that can be found in the LICENSE
+// file.
+
+package system
+
+import "syscall"
+
+func Dup2(fd int, fd2 int) error {
+   return syscall.Dup3(fd, fd2, 0)
+}


Bug#1070106: rsbackup: please add support for loong64

2024-04-30 Thread wuruilong
Source: rsbackup
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The rsbackup software compiles incorrectly on the loong64 architecture, 
the attached patch has resolved the issue.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- rsbackup-origin/debian/rules2024-04-30 06:54:53.326049473 +
+++ rsbackup/debian/rules   2024-04-30 06:35:52.133362832 +
@@ -31,6 +31,8 @@
 build-arch: build
 build-indep: build
 build:
+   dh_update_autotools_config
+   dh_autoreconf
[ -e configure ] || autoreconf -si
./configure --prefix=/usr --mandir=/usr/share/man 
--disable-silent-rules ${CONFIGURE_EXTRA}
$(MAKE)


Bug#1070786: arping: please add support for loong64

2024-05-09 Thread wuruilong
Source: arping
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The arping software compiles incorrectly on the loong64 architecture, the 
attached patch has resolved the issue.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 arping (2.24-1) unstable; urgency=medium
 .
   [ Debian Janitor ]
   * Use secure URI in Homepage field.
   * Set upstream metadata fields: Bug-Submit.
 .
   [ Salvatore Bonaccorso ]
   * New upstream version 2.24
   * Declare compliance with Debian policy 4.6.2
   * Update copyright years for debian/* packaging files
Author: Salvatore Bonaccorso 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-09

--- arping-2.24.orig/configure.ac
+++ arping-2.24/configure.ac
@@ -195,6 +195,26 @@ AC_ARG_ENABLE(warnings,
 CHECK_COMPILER_OPTION([-Wtrampolines])
 ])
 
+AC_DEFUN([CHECK_SECCOMP_SYSCALL], [
+  AC_MSG_CHECKING([seccomp syscall $1])
+  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include
+]], [[
+void test()
+{
+scmp_filter_ctx ctx;
+seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS($1), 0);
+}
+]])],
+[
+  AC_MSG_RESULT(yes)
+  AC_DEFINE([HAVE_SECCOMP_SYSCALL_$1], [1], [Have seccomp syscall])
+],[AC_MSG_RESULT(no)])])
+
+CHECK_SECCOMP_SYSCALL([fstat]);
+CHECK_SECCOMP_SYSCALL([statx]);
+CHECK_SECCOMP_SYSCALL([nonexistant]);
+
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([src/Makefile])
 AC_CONFIG_FILES([doc/Makefile])
--- arping-2.24.orig/src/arping.c
+++ arping-2.24/src/arping.c
@@ -645,10 +645,18 @@ static void drop_seccomp(int libnet_fd)
 //
 
 // Write to stdout and stderr.
+#if HAVE_SECCOMP_SYSCALL_statx
+if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(statx), 1, 
SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO))) {
+perror("seccomp_rule_add(statx stdout)");
+exit(1);
+}
+#endif
+#if HAVE_SECCOMP_SYSCALL_fstat
 if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat), 1, 
SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO))) {
 perror("seccomp_rule_add(fstat stdout)");
 exit(1);
 }
+#endif
 if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 1, 
SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO))) {
 perror("seccomp_rule_add(write stdout)");
 exit(1);


Bug#1070796: dosbox-x: please add support for loong64

2024-05-09 Thread wuruilong
Source: dosbox-x
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please upgrade the software version or merge the attached patch to support 
loongarch architecture, the upstream PR link is as 
follows:https://github.com/joncampbell123/dosbox-x/pull/4891/files

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 dosbox-x (2024.03.01+dfsg-1) unstable; urgency=medium
 .
   * New upstream release.
Author: Stephen Kitt 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-05-09

--- dosbox-x-2024.03.01+dfsg.orig/configure.ac
+++ dosbox-x-2024.03.01+dfsg/configure.ac
@@ -629,6 +629,12 @@ case "$host_cpu" in
 c_targetcpu="m68k"
 c_unalignedmemory=yes
 ;;
+   loongarch64*)
+AC_DEFINE(C_TARGETCPU,LOONGARCH64)
+AC_MSG_RESULT(LoongArch)
+c_targetcpu="loongarch64"
+c_unalignedmemory=yes
+;;
armv7*)
 AC_DEFINE(C_TARGETCPU,ARMV7LE)
 AC_MSG_RESULT(ARMv7 Little Endian)
@@ -870,6 +876,10 @@ if test x$enable_mt32 = xyes ; then
   AC_MSG_RESULT(yes)
   AC_DEFINE(C_MT32,1)
   ;;
+loongarch64)
+  AC_MSG_RESULT(yes)
+  AC_DEFINE(C_MT32,1)
+  ;;
 *)
   enable_mt32=no
   AC_MSG_RESULT(no)
--- dosbox-x-2024.03.01+dfsg.orig/src/libs/libchdr/lzma/CpuArch.h
+++ dosbox-x-2024.03.01+dfsg/src/libs/libchdr/lzma/CpuArch.h
@@ -82,6 +82,10 @@ MY_CPU_LE_UNALIGN means that CPU is LITT
   /* #define MY_CPU_32BIT */
 #endif
 
+#if  defined(__loongarch_lp64)
+  #define MY_CPU_NAME "loongarch64"
+  #define MY_CPU_64BIT
+#endif
 
 #if  defined(__ppc64__) \
   || defined(__powerpc64__)


Bug#1068573: libmaus2: fix error caused by sysconf function

2024-04-07 Thread wuruilong
Source: libmaus2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Some architectures in glibc do not define the sysconf.c file, and using the 
generic posix sysconf.c file to call the _SC_LEVEL1_DCACHE_LINESIZE variable 
returns 0 by default, which leads to failure of the test in loongarch, ia64, 
s390x and other architectures, the detailed error link is as follows: 
https://buildd.debian.org/status/fetch.php?pkg=libmaus2&arch=loong64&ver=2.0.813%2Bds-1%2Bb1&stamp=1710143471&raw=0
This patch reference lscpu code to read the data in coherency_line_size file 
directly can fix the above error, and it passes the test on x86 and loongarch.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 libmaus2 (2.0.813+ds-1) unstable; urgency=medium
 .
   * New upstream version
   * Standards-Version: 4.6.2 (routine-update)
   * Set upstream metadata fields: Bug-Database.
   * d/copyright: bump copyright year.
Author: Étienne Mollier 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-07

--- libmaus2-2.0.813+ds.orig/src/libmaus2/arch/CacheLineSize.cpp
+++ libmaus2-2.0.813+ds/src/libmaus2/arch/CacheLineSize.cpp
@@ -17,6 +17,7 @@
 */
 #include 
 #include 
+#include 
 
 #include 
 
@@ -39,10 +40,18 @@ std::atomic libmaus2::arch
 /**
  * @return size of a (level 1) cache line in bytes
  **/
-#if defined(LIBMAUS2_HAVE_SYSCONF) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
+#if defined(__linux__)
 static uint64_t getCacheLineSizeLocal()
 {
-   return sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
+   FILE *fp = NULL;
+   fp = 
fopen("/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size", "r");
+   uint64_t i = 0;
+   if(fp){
+   fscanf(fp, "%d", &i);
+   fclose(fp);
+   }
+   return i;
 }
 #elif defined(_WIN32)
 static uint64_t getCacheLineSizeLocal()


Bug#1068614: gmt: please add support for loong64

2024-04-07 Thread wuruilong
Source: gmt
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

gmt compiles incorrectly on loong64 architectures, the attached patch solves 
the problem and is verified.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gmt (6.5.0+dfsg-3) unstable; urgency=medium
 .
   * Add dpkg-dev (>= 1.22.5) to build dependencies for t64 changes.
Author: Bas Couwenberg 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-08

--- gmt-6.5.0+dfsg.orig/src/gmt_common_sighandler.c
+++ gmt-6.5.0+dfsg/src/gmt_common_sighandler.c
@@ -109,6 +109,8 @@ GMT_LOCAL void backtrace_symbols_fd(void
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.sc_pc)
 # elif defined( __arm__)
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc)
+# elif defined( __loongarch__)
+#  define UC_IP(uc) ((void *) (uc)->uc_mcontext.__pc)
 # elif defined( __hppa__)
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.sc_iaoq[0])
 # elif defined(__m68k__)


Bug#1068620: rust-nix: please add support for loong64

2024-04-07 Thread wuruilong
Source: rust-nix
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The rust-nix package compiles incorrectly on the loong64 architecture, 
the attached patch solves this problem and has been verified to compile 
successfully

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rust-nix (0.26.2-1) unstable; urgency=medium
 .
   * Team upload.
   * Package nix 0.26.2 from crates.io using debcargo 2.6.0
   * Skip test_recvmm2 on s390x, it seems to be flaky there.
   * Skip a couple of tests that seem prone to hangs in my local testing.
Author: Peter Michael Green 

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: https://github.com/nix-rust/nix/pull/2045
Reviewed-By: 
Signed-Off-By: heiher
Last-Update: 2024-04-08

--- rust-nix-0.26.2.orig/src/sys/ioctl/linux.rs
+++ rust-nix-0.26.2/src/sys/ioctl/linux.rs
@@ -42,7 +42,8 @@ mod consts {
 target_arch = "x86_64",
 target_arch = "aarch64",
 target_arch = "riscv32",
-target_arch = "riscv64"
+target_arch = "riscv64",
+target_arch = "loongarch64"
 ))]
 mod consts {
 #[doc(hidden)]


Bug#1068622: colobot: please add support for loong64

2024-04-07 Thread wuruilong
Source: colobot
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The colobot package compiles incorrectly on the loong64 architecture, the 
attached patch solves this problem and has been verified to compile successfully

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- a/colobot-0.2.1/debian/rules2021-09-01 16:10:16.0 +
+++ b/colobot-0.2.1/debian/rules2024-04-08 03:30:32.971012456 +
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 # Hippomocks doesn't support some Debian architectures
-HIPPOMOCKS_BROKEN_ARCHS=armel armhf arm64 mips mips64el mipsel
+HIPPOMOCKS_BROKEN_ARCHS=armel armhf arm64 loong64 mips mips64el mipsel 
 
 include /usr/share/dpkg/architecture.mk
 


Bug#1068627: teem: please add support for loong64

2024-04-08 Thread wuruilong
Source: teem
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The teem package compiles incorrectly on the loong64 architecture, 
the attached patch solves this problem and has been verified to compile 
successfully

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- a/teem-1.12.0~20160122/debian/rules 2022-06-23 00:57:46.0 +
+++ b/teem-1.12.0~20160122/debian/rules 2024-04-08 07:54:44.355153371 +
@@ -23,7 +23,7 @@
 ifneq (,$(filter $(DEB_HOST_ARCH_CPU), i386))
   export DEB_CFLAGS_MAINT_APPEND = -ffloat-store
 endif
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU), arm64 powerpc ppc64 ppc64el riscv64 
s390x))
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU), arm64 loong64 powerpc ppc64 ppc64el 
riscv64 s390x))
   export DEB_CFLAGS_MAINT_APPEND = -ffp-contract=off
 endif
 


Bug#1069002: purelibc: please add support for loong64

2024-04-14 Thread wuruilong
Source: purelibc
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

purelibc failed to compile on loongarch, upstream has added support for 
loongarch, 
please refer to the attached patch or upgrade the software version to solve the 
problem. 
The link to the upstream commit code is as follows: 
https://github.com/virtualsquare/purelibc/commit/6df6bd54f40205e4a79115f49ad01dd080d5886c
https://github.com/virtualsquare/purelibc/commit/4d22452b569b5aa47ec44d8f66d1e36c8e0fcd45
https://github.com/virtualsquare/purelibc/commit/278dac7ea75df7df561daaec4c2ad746cbed901c

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
>From 6df6bd54f40205e4a79115f49ad01dd080d5886c Mon Sep 17 00:00:00 2001
From: Renzo Davoli 
Date: Tue, 3 Oct 2023 11:58:04 +0200
Subject: [PATCH 1/3] syscall: support archs without fstat

---
 syscalls.c | 42 --
 1 file changed, 32 insertions(+), 10 deletions(-)

diff --git a/syscalls.c b/syscalls.c
index cf5e4c7..fea7463 100644
--- a/syscalls.c
+++ b/syscalls.c
@@ -213,13 +213,19 @@ int dup3(int oldfd, int newfd, int flags){
 
 #if __WORDSIZE == 64 || defined(__ILP32__)
 # if defined(__NR_FSTATAT64) && ! defined(__NR_stat)
-#  define __USE_FSTATAT64
+#  define __USE_NEWSTAT64_STAT
+# endif
+# if defined(__NR_FSTATAT64) && ! defined(__NR_fstat)
+#  define __USE_NEWSTAT64_FSTAT
 # endif
 #  define arch_stat64 stat
 #  define IFNOT64(x)
 #else
 # if defined(__NR_FSTATAT64) && ! defined(__NR_stat64)
-#  define __USE_FSTATAT64
+#  define __USE_NEWSTAT64_STAT
+# endif
+# if defined(__NR_FSTATAT64) && ! defined(__NR_fstat64)
+#  define __USE_NEWSTAT64_FSTAT
 # endif
 #  define arch_stat64 stat64
 #  define IFNOT64(x) x
@@ -256,7 +262,7 @@ int stat(const char* pathname, struct stat* buf_stat)
IFNOT64(struct stat64 *buf_stat64 = alloca(sizeof(struct stat64)));
int rv;
 
-#ifdef __USE_FSTATAT64
+#ifdef __USE_NEWSTAT64_STAT
rv = _pure_syscall(__NR_FSTATAT64, AT_FDCWD, pathname, MAKE_NAME(buf_, 
arch_stat64), 0);
 #else
rv = _pure_syscall(MAKE_NAME(__NR_, arch_stat64), pathname, 
MAKE_NAME(buf_, arch_stat64));
@@ -272,7 +278,7 @@ int lstat(const char* pathname, struct stat* buf_stat)
IFNOT64(struct stat64 *buf_stat64 = alloca(sizeof(struct stat64)));
int rv;
 
-#ifdef __USE_FSTATAT64
+#ifdef __USE_NEWSTAT64_STAT
rv = _pure_syscall(__NR_FSTATAT64, AT_FDCWD, pathname, MAKE_NAME(buf_, 
arch_stat64), AT_SYMLINK_NOFOLLOW);
 #else
rv = _pure_syscall(MAKE_NAME(__NR_l, arch_stat64), pathname, 
MAKE_NAME(buf_, arch_stat64));
@@ -287,7 +293,11 @@ int fstat(int fildes, struct stat* buf_stat)
 {
IFNOT64(struct stat64 *buf_stat64 = alloca(sizeof(struct stat64)));
int rv;
+#ifdef __USE_NEWSTAT64_FSTAT
+   rv = _pure_syscall(__NR_FSTATAT64, fildes, "", MAKE_NAME(buf_, 
arch_stat64), AT_EMPTY_PATH);
+#else
rv = _pure_syscall(MAKE_NAME(__NR_f, arch_stat64), fildes, 
MAKE_NAME(buf_, arch_stat64));
+#endif
if (rv >= 0)
arch_stat64_2_stat(MAKE_NAME(buf_, arch_stat64), buf_stat);
 
@@ -295,7 +305,7 @@ int fstat(int fildes, struct stat* buf_stat)
 }
 
 int stat64(const char* pathname,struct stat64* buf){
-#ifdef __USE_FSTATAT64
+#ifdef __USE_NEWSTAT64_STAT
return _pure_syscall(__NR_FSTATAT64, AT_FDCWD, pathname, buf, 0);
 #else
return _pure_syscall(MAKE_NAME(__NR_, arch_stat64), pathname, buf);
@@ -303,7 +313,7 @@ int stat64(const char* pathname,struct stat64* buf){
 }
 
 int lstat64(const char* pathname,struct stat64* buf){
-#ifdef __USE_FSTATAT64
+#ifdef __USE_NEWSTAT64_STAT
   return _pure_syscall(__NR_FSTATAT64, AT_FDCWD, pathname, buf, 
AT_SYMLINK_NOFOLLOW);
 #else
   return _pure_syscall(MAKE_NAME(__NR_l, arch_stat64), pathname, buf);
@@ -311,7 +321,11 @@ int lstat64(const char* pathname,struct stat64* buf){
 }
 
 int fstat64 (int fildes, struct stat64 *buf){
+#ifdef __USE_NEWSTAT64_FTAT
+  return _pure_syscall(__NR_FSTATAT64, fildes, "", buf, AT_EMPTY_PATH);
+#else
   return _pure_syscall(MAKE_NAME(__NR_f, arch_stat64), fildes, buf);
+#endif
 }
 
 int mknod(const char *pathname, mode_t mode, dev_t dev) {
@@ -331,7 +345,7 @@ int __xstat(int ver, const char* pathname, struct stat* 
buf_stat)
switch(ver)
{
case _STAT_VER_LINUX:
-#ifdef __USE_FSTATAT64
+#ifdef __USE_NEWSTAT64_STAT
rv = _pure_syscall(__NR_FSTATAT64, AT_FDCWD, pathname, 
MAKE_NAME(buf_, arch_stat64), 0);
 #else
rv = _pure_syscall(MAKE_NAME(__NR_, arch_stat6

Bug#1069022: FTBFS: compilation failure in loongarch

2024-04-15 Thread wuruilong
Source: ceph
Version: 18.2.1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

You should update rocksdb or join PR to add debian patch to support loongarch, 
the link to PR is as follows: 
https://github.com/facebook/rocksdb/pull/10036/files

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect



Bug#1069143: FTBS: compilation error in loongarch

2024-04-17 Thread wuruilong
Source: android-platform-tools
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The android-platform-tools software fails to compile on loongarch architecture, 
please refer to the attached patch to fix it.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- android-platform-tools-34.0.4-orig/debian/control   2024-04-17 
01:48:57.341092968 +
+++ android-platform-tools-34.0.4/debian/control2024-04-17 
01:43:06.736271703 +
@@ -23,7 +23,7 @@
  pandoc [amd64 i386 armel armhf arm64 ia64 mipsel mips64el ppc64el s390x 
ppc64],
  protobuf-compiler (>= 3.12) [amd64 i386 armel armhf arm64 mipsel mips64el 
ppc64el riscv64],
  python3 [amd64 i386 arm64],
- ronn [alpha arc hppa hurd-i386 kfreebsd-amd64 kfreebsd-i386 m68k powerpc 
riscv64 sh4 sparc64 x32],
+ ronn [alpha arc hppa hurd-i386 kfreebsd-amd64 kfreebsd-i386 loong64 m68k 
powerpc riscv64 sh4 sparc64 x32],
 Standards-Version: 4.6.2
 Rules-Requires-Root: no
 Vcs-Git: https://salsa.debian.org/android-tools-team/android-platform-tools.git


Bug#1069211: clutter-1.0: please add support for loong64

2024-04-17 Thread wuruilong
Source: clutter-1.0
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The clutter software fails to compile on loongarch architecture, 
please refer to the attached patch to fix it.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
--- clutter-1.0-1.26.4+git2779b932+dfsg/debian/rules2024-04-18 
02:21:40.887373645 +
+++ clutter-1.0-1.26.4+git2779b932+dfsg/debian/rules2024-04-18 
02:04:49.027955647 +
@@ -53,7 +53,7 @@
 # https://buildd.debian.org/status/logs.php?pkg=clutter-1.0&ver=1.26.2%2Bdfsg-5
 ifneq (,$(filter armel s390x,$(DEB_HOST_ARCH)))
 # Ignore test failures on architectures where they fail
-else ifneq (,$(filter hppa hurd-i386 kfreebsd-i386 kfreebsd-amd64 mips mipsel 
mips64el powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
+else ifneq (,$(filter hppa hurd-i386 kfreebsd-i386 kfreebsd-amd64 loong64 mips 
mipsel mips64el powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
-dbus-run-session -- xvfb-run -a dh_auto_test --  --timeout-multiplier 3
 else
dbus-run-session -- xvfb-run -a dh_auto_test -- --timeout-multiplier 3


Bug#1069214: libuv1: please add support for loong64

2024-04-17 Thread wuruilong
Package: libuv1
Version: 1.46.0-3
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The libuv1 software fails to compile on loongarch architecture, please refer to 
the attached patch to fix it.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libuv1 depends on:
ii  libc6  2.37-13

libuv1 recommends no packages.

libuv1 suggests no packages.

-- no debconf information
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 libuv1 (1.48.0-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Rename libraries for 64-bit time_t transition.  Closes: #1062694
Author: Graham Inggs 
Bug-Debian: https://bugs.debian.org/1062694

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (|commit:)
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: (no|not-needed|)
Applied-Upstream: , (|commit:)
Reviewed-By: 
Last-Update: 2024-04-18

--- libuv1-1.48.0.orig/.github/workflows/CI-unix.yml
+++ libuv1-1.48.0/.github/workflows/CI-unix.yml
@@ -110,6 +110,7 @@ jobs:
   - {target: ppc64,   toolchain: gcc-powerpc64-linux-gnu,   cc: 
powerpc64-linux-gnu-gcc,qemu: qemu-ppc64-static   }
   - {target: ppc64le, toolchain: gcc-powerpc64le-linux-gnu, cc: 
powerpc64le-linux-gnu-gcc,  qemu: qemu-ppc64le-static }
   - {target: s390x,   toolchain: gcc-s390x-linux-gnu,   cc: 
s390x-linux-gnu-gcc,qemu: qemu-s390x-static   }
+  - {target: loongarch,   toolchain: gcc-loongarch-linux-gnu,   
cc: loongarch-linux-gnu-gcc,qemu: qemu-loongarch-static   }
   - {target: mips,toolchain: gcc-mips-linux-gnu,  cc: 
mips-linux-gnu-gcc, qemu: qemu-mips-static }
   - {target: mips64,  toolchain: gcc-mips64-linux-gnuabi64,   cc: 
mips64-linux-gnuabi64-gcc,  qemu: qemu-mips64-static   }
   - {target: mipsel,  toolchain: gcc-mipsel-linux-gnu,cc: 
mipsel-linux-gnu-gcc,   qemu: qemu-mipsel-static   }
--- libuv1-1.48.0.orig/src/unix/linux.c
+++ libuv1-1.48.0/src/unix/linux.c
@@ -85,6 +85,8 @@
 #  define __NR_copy_file_range 285
 # elif defined(__riscv)
 #  define __NR_copy_file_range 285
+# elif defined(__loongarch__)
+#  define __NR_copy_file_range 285
 # endif
 #endif /* __NR_copy_file_range */
 
@@ -103,6 +105,8 @@
 #  define __NR_statx 379
 # elif defined(__riscv)
 #  define __NR_statx 291
+# elif defined(__loongarch__)
+#  define __NR_statx 291
 # endif
 #endif /* __NR_statx */
 
@@ -121,6 +125,8 @@
 #  define __NR_getrandom 349
 # elif defined(__riscv)
 #  define __NR_getrandom 278
+# elif defined(__loongarch__)
+#  define __NR_getrandom 278
 # endif
 #endif /* __NR_getrandom */
 


  1   2   3   >