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#1069022: (no subject)

2024-06-04 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(, 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#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#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#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#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#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#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#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#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#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#1066182: (no subject)

2024-05-22 Thread wuruilong

Dear Maintainer,

Can someone please merge this patch?

wuruilong



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] =  _ppc64,
[MACH_RISCV32] =_riscv32,
[MACH_RISCV64] =_riscv64,
+   [MACH_LOONGARCH64] =_loongarch64,
[MACH_S390] =   _s390,
[MACH_S390X] =  _s390x,
[MACH_SH] = _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#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#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#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#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#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#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#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#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#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#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#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#1070104: termshark: please add support for loong64

2024-04-30 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#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#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#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#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 )
 {
   if(subarch=="mipsel" ||
@@ -735,6 +764,8 @@ void configt::set_arch(const irep_idt 
 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 );
 void set_arch_spec_arm(const irep_idt );
 void set_arch_spec_alpha();
+void set_arch_spec_loongarch64();
 void set_arch_spec_mips(const irep_idt );
 void set_arch_spec_riscv64();
 void set_arch_spec_s390();


Bug#1069808: perftest: please add support for loong64

2024-04-25 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#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#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#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
+  if arch(loongarch64

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#1069701: haskell-hspec-hedgehog: please add support for loong64

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

Dear Maintainer,

haskell-hspec-hedgehog 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
--- haskell-hspec-hedgehog-0.0.1.2-origin/hspec-hedgehog.cabal  2024-04-23 
01:31:13.0 +
+++ haskell-hspec-hedgehog-0.0.1.2/hspec-hedgehog.cabal 2024-04-23 
01:23:33.121573479 +
@@ -41,7 +41,7 @@
   Spec.hs
   hs-source-dirs:
   test
-  if arch(arm) || arch(mips) || arch(s390x) || arch(i386) || arch(riscv64)
+  if arch(arm) || arch(mips) || arch(s390x) || arch(i386) || arch(riscv64) || 
arch(loongarch64)
 ghc-options: -threaded -rtsopts
   else
 ghc-options: -threaded -rtsopts -with-rtsopts=-N


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 */
 


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=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#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#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#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_stat64), 
pathname, MAKE_

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#1068622: colobot: please add support for loong64

2024-04-08 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#1068620: rust-nix: please add support for loong64

2024-04-08 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#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#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=loong64=2.0.813%2Bds-1%2Bb1=1710143471=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", );
+   fclose(fp);
+   }
+   return i;
 }
 #elif defined(_WIN32)
 static uint64_t getCacheLineSizeLocal()


Bug#1068164: bart: please add support for loong64

2024-04-01 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#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
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#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#1066835: universal-ctags: please add support for loong64

2024-03-13 Thread wuruilong
Package: universal-ctags
Version: 5.9.20210829.0-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-de...@lists.debian.org
Usertags: loong64

Dear Maintainer,

Universal-ctags has a compilation error in the loong64 architecture. 
The attached patch solves the problem. Please refer to it supports 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

Versions of packages universal-ctags depends on:
ii  libc62.37-15.1
ii  libjansson4  2.14-2+b1
ii  libseccomp2  2.5.4-1+loong64
ii  libxml2  2.9.14+dfsg-1.3+b1
ii  libyaml-0-2  0.2.5-1+b1

universal-ctags recommends no packages.

Versions of packages universal-ctags suggests:
ii  vim  2:9.1.0016-1+b1

-- 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.
 .
 universal-ctags (5.9.20210829.0-1) unstable; urgency=medium
 .
   * New upstream release
 + Fix FTBFS with glibc 2.33 (Closes: #990784)
 + Fix etags segfault (Closes: #993509)
   * Add debian/watch file
   * Bump Standards-Version to 4.6.0 (no changes needed)
   * Add patch to avoid running git during tests
   * Update d/copyright
Author: Alessandro Ghedini 
Bug-Debian: https://bugs.debian.org/990784
Bug-Debian: https://bugs.debian.org/993509

---
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-03-14

--- universal-ctags-5.9.20210829.0.orig/main/seccomp.c
+++ universal-ctags-5.9.20210829.0/main/seccomp.c
@@ -41,7 +41,9 @@ int installSyscallFilter (void)
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (exit_group), 0);
 
// The bowels of stdio want to know the size of a file, even for stdout.
+#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);
 #ifdef __SNR_newfstatat
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (newfstatat), 0);


Bug#1066182: erlang-jiffy: please add support for loongarch

2024-03-13 Thread wuruilong
Source: erlang-jiffy
Version: 1.1.1-2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn
User: debian-de...@lists.debian.org
Usertags: loong64

Dear Maintainer,

Erlang-jiffy has a compilation error in the loong64 architecture. 
The attached patch solves the problem. Please refer to it supports 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
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.
 .
 erlang-jiffy (1.1.1-2) unstable; urgency=medium
 .
   * Removed superfluous line from debian/copyright
   * Updated Standards-Version: 4.6.2 (no changes needed)
   * Updated lintian overrides
   * Updated years in debian/copyright
   * Renamed debian/erlang-jiffy.lintian-overrides -> debian/lintian-overrides
   * Updated debian/rules
   * Updated debian/patches/remove_git_clean
Author: Philipp Huebner 

---
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-03-13

--- erlang-jiffy-1.1.1.orig/c_src/double-conversion/utils.h
+++ erlang-jiffy-1.1.1/c_src/double-conversion/utils.h
@@ -93,6 +93,7 @@ int main(int argc, char** argv) {
 #if defined(_M_X64) || defined(__x86_64__) || \
 defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || 
defined(_M_ARM64) || \
 defined(__hppa__) || defined(__ia64__) || \
+defined(__loongarch__) ||\
 defined(__mips__) || \
 defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
 defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \


Bug#1065601: libhugetlbfs: please add support for loong64

2024-03-07 Thread wuruilong
Source: libhugetlbfs
Version: 2.23-5
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

"Please refer to the attached patch to support the Loong64 architecture. This 
patch has been successfully compiled locally and has been merged upstream. The 
PR link is: https://github.com/libhugetlbfs/libhugetlbfs/pull/82;

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.
 .
 libhugetlbfs (2.23-5) unstable; urgency=medium
 .
   * Disable malloc if __morecore hook not available (Closes: #1017324)
Author: Punit Agrawal 
Bug-Debian: https://bugs.debian.org/1017324

---
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-03-07

--- libhugetlbfs-2.23.orig/Makefile
+++ libhugetlbfs-2.23/Makefile
@@ -120,10 +120,17 @@ ELF64 = elf_riscv64
 TMPLIB64 = lib64
 CUSTOM_LDSCRIPTS = no
 else
+ifeq ($(ARCH),loongarch64)
+CC64 = $(CC) 
+ELF64 = elf_loong64
+TMPLIB64 = lib64
+CUSTOM_LDSCRIPTS = no
+else
 $(error "Unrecognized architecture ($(ARCH))")
 endif
 endif
 endif
+endif
 endif
 endif
 endif
--- /dev/null
+++ libhugetlbfs-2.23/sys-elf_loong64.S
@@ -0,0 +1,22 @@
+/*
+ * libhugetlbfs - direct system call for loong64
+ *
+ * Author(s): WuRuilong
+ */
+   .text
+
+   .globl  direct_syscall
+direct_syscall:
+move $a7, $a0
+move $a0, $a1
+   move  $a1, $a2
+move  $a2, $a3
+move  $a3, $a4 
+move  $a4, $a5
+   move  $a5, $a6
+syscall 0
+   ret
+
+#if defined(__linux__) && defined(__ELF__)
+   .section .note.GNU-stack,"",%progbits
+#endif
--- libhugetlbfs-2.23.orig/tests/icache-hygiene.c
+++ libhugetlbfs-2.23/tests/icache-hygiene.c
@@ -88,7 +88,8 @@ static void sig_handler(int signum, sigi
 {
 #if defined(__powerpc__) || defined(__powerpc64__) || defined(__ia64__) || \
 defined(__s390__) || defined(__s390x__) || defined(__sparc__) || \
-defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)
+defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64) || \
+defined(__loongarch64)
/* On powerpc, ia64, s390 and Aarch64, 0 bytes are an illegal
 * instruction, so, if the icache is cleared properly, we SIGILL
 * as soon as we jump into the cleared page */


Bug#1061727: gromacs: please add support for loong64

2024-01-28 Thread wuruilong
Source: gromacs
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The attached patch fixes the compilation error problem in the loong64 
architecture, and the local compilation passes.

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.
 .
 gromacs (2023.3-1) unstable; urgency=medium
 .
   * New upstream release.
 - Remove erfinv-portability.patch, included in this release.
Author: Nicholas Breen 

---
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-01-29

--- gromacs-2023.3.orig/src/gromacs/hardware/architecture.h
+++ gromacs-2023.3/src/gromacs/hardware/architecture.h
@@ -46,12 +46,13 @@ namespace gmx
 //! Enum for GROMACS CPU hardware detection support
 enum class Architecture
 {
-Unknown, //!< Not one of the cases below
-X86, //!< X86
-Arm, //!< ARM
-PowerPC, //!< IBM PowerPC
-RiscV32, //!< 32-bit RISC-V
-RiscV64  //!< 64-bit RISC-V
+Unknown,//!< Not one of the cases below
+X86,//!< X86
+Arm,//!< ARM
+PowerPC,//!< IBM PowerPC
+RiscV32,//!< 32-bit RISC-V
+RiscV64,//!< 64-bit RISC-V
+Loongarch64 //!< 64-bit Loongarch   
 };
 
 //! Whether the compilation is targeting 32-bit x86.
@@ -81,6 +82,8 @@ static constexpr Architecture c_architec
 Architecture::RiscV32;
 #elif defined __riscv && defined __riscv_xlen && (__riscv_xlen == 64)
 Architecture::RiscV64;
+#elif defined __loongarch__ && defined __loongarch64
+   Architecture::Loongarch64;
 #else
 Architecture::Unknown;
 #endif
--- gromacs-2023.3.orig/src/gromacs/hardware/cpuinfo.cpp
+++ gromacs-2023.3/src/gromacs/hardware/cpuinfo.cpp
@@ -785,6 +785,9 @@ CpuInfo::Vendor detectProcCpuInfoVendor(
 { "riscv64", CpuInfo::Vendor::RiscV64 },
 { "riscv32", CpuInfo::Vendor::RiscV32 },
 { "riscv", CpuInfo::Vendor::RiscV32 }, // Must come after riscv64 to 
avoid misidentification
+   { "Loongson", CpuInfo::Vendor::Loongson },
+   { "loongarch64", CpuInfo::Vendor::Loongson },
+   { "loong64", CpuInfo::Vendor::Loongson },
 };
 
 // For each label in /proc/cpuinfo, compare the value to the name in the
@@ -1038,6 +1041,10 @@ CpuInfo CpuInfo::detect()
 {
 result.vendor_ = CpuInfo::Vendor::RiscV64;
 }
+else if (c_architecture == Architecture::Loongarch64)
+{
+result.vendor_ = CpuInfo::Vendor::Loongson;
+}
 
 #if defined __aarch64__ || (defined _M_ARM && _M_ARM >= 8)
 result.features_.insert(Feature::Arm_Neon);  // ARMv8 always has 
Neon
@@ -1100,6 +1107,7 @@ const std::string& CpuInfo::vendorString
 { Vendor::Hygon, "Hygon" },
 { Vendor::RiscV32, "RISC-V 32" },
 { Vendor::RiscV64, "RISC-V 64" },
+{ Vendor::Loongson, "Loongarch" },
 };
 
 return vendorStrings.at(vendor_);
--- gromacs-2023.3.orig/src/gromacs/hardware/cpuinfo.h
+++ gromacs-2023.3/src/gromacs/hardware/cpuinfo.h
@@ -88,6 +88,7 @@ public:
 Hygon,   //!< HygonGenuine
 RiscV32, //!< RISC-V 32 bit
 RiscV64, //!< RISC-V 64 bit
+Loongson,//!< Loongson
 };
 
 /*! \brief List of CPU features
--- gromacs-2023.3.orig/src/gromacs/timing/include/gromacs/timing/cyclecounter.h
+++ gromacs-2023.3/src/gromacs/timing/include/gromacs/timing/cyclecounter.h
@@ -138,6 +138,9 @@ typedef unsigned long long gmx_cycle
 
 typedef unsigned long gmx_cycles_t;
 
+#elif defined(__loongarch__) && defined(__GNUC__)
+typedef unsigned long long gmx_cycles_t;
+
 #else
 /*! \brief Integer-like datatype for cycle counter values
  *
@@ -394,6 +397,13 @@ static __inline gmx_cycles_t gmx_cycles_
 return ret;
 }
 
+#elif defined __loongarch__ && __loongarch64
+static __inlin

Bug#1061418: castle-game-engine: please add support for loong64

2024-01-24 Thread wuruilong
Source: castle-game-engine
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the attachment patch to support loong64 arch

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.
 .
 castle-game-engine (7.0~alpha.2+dfsg1-5) unstable; urgency=medium
 .
   * Applied patch to use local jquery version instead of web based one.
   * Remove statically linked libraries and object files from source package.
Author: Abou Al Montacir 

---
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-01-24

--- 
castle-game-engine-7.0~alpha.2+dfsg1.orig/tools/build-tool/code/tooldebian.pas
+++ castle-game-engine-7.0~alpha.2+dfsg1/tools/build-tool/code/tooldebian.pas
@@ -116,6 +116,7 @@ procedure PackageDebian(const PackagedPa
   WriteLnWarning('Architecture ' + CpuToString(Cpu) + ' is ambiguous 
between "armel" and "armhf" in Debian.');
 end;
   i386: Result := 'i386';
+  loong64: Result := 'loong64';
   mips: Result := 'mips';
   mipsel: Result := 'mipsel';
   powerpc64:


Bug#1061414: clisp: please add support for loong64

2024-01-23 Thread wuruilong
Source: clisp
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the attachment patch to support loong64 arch

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.
 .
 clisp (1:2.49.20210628.gitde01f0f-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Drop clisp-module-pcre. (Closes: #189)
Author: Bastian Germann 
Bug-Debian: https://bugs.debian.org/189

---
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-01-24

--- clisp-2.49.20210628.gitde01f0f.orig/src/lispbibl.d
+++ clisp-2.49.20210628.gitde01f0f/src/lispbibl.d
@@ -259,6 +259,9 @@
   #if defined(__riscv) && (__riscv_xlen == 64)
 #define RISCV64
   #endif
+  #if defined(__loongarch__) || defined(__loongarch64)
+#define LOONGARCH64
+  #endif
   /* 64-bit processors: */
   #ifdef __alpha
 #define DECALPHA
@@ -591,7 +594,7 @@
   #define log2_C_CODE_ALIGNMENT  1
   #define C_FUNCTION_POINTER_BIAS 2
 #endif
-#if defined(M68K) || defined(RISCV64) || defined(__CR16__) || 
defined(__cris__) || defined(__H8300__) || defined(__mcore__) || 
defined(__mep__) || defined(__moxie__) || defined(__MSP430__) || 
defined(__pdp11__) || defined(__sh__) || defined(__xstormy16__) || 
defined(__v850__) || defined(__vax__)
+#if defined(M68K) || defined(RISCV64) || defined(__CR16__) || 
defined(__cris__) || defined(__H8300__) || defined(__mcore__) || 
defined(__mep__) || defined(__moxie__) || defined(__MSP430__) || 
defined(__pdp11__) || defined(__sh__) || defined(__xstormy16__) || 
defined(__v850__) || defined(__vax__) || defined(LOONGARCH64)
   #define C_CODE_ALIGNMENT  2
   #define log2_C_CODE_ALIGNMENT  1
 #endif
@@ -2777,6 +2780,10 @@ typedef enum {
 #define MAPPABLE_ADDRESS_RANGE_START 0x8000UL
 #define MAPPABLE_ADDRESS_RANGE_END   0x001FUL
   #endif
+  #if defined(UNIX_LINUX) && defined(LOONGARCH64)
+#define MAPPABLE_ADDRESS_RANGE_START 0x8000UL
+#define MAPPABLE_ADDRESS_RANGE_END   0x001FUL
+  #endif
   #if defined(UNIX_LINUX) && defined(S390_64)
 /* On Linux/s390x:
MMAP_FIXED_ADDRESS_HIGHEST_BIT = 52
@@ -4340,6 +4347,10 @@ Long-Float, Ratio and Complex (only if S
 #define HEAPCODES1BIT_WITH_TRIVIALMAP_WORKS 1
 #define HEAPCODES1BIT_WITH_MALLOC_WORKS 1
   #endif
+  #if defined(UNIX_LINUX) && defined(LOONGARCH64)
+#define HEAPCODES1BIT_WITH_TRIVIALMAP_WORKS 1
+#define HEAPCODES1BIT_WITH_MALLOC_WORKS 1
+  #endif
   #if defined(UNIX_LINUX) && defined(S390_64) /* Linux/s390x */
 #define HEAPCODES1BIT_WITH_TRIVIALMAP_WORKS 1 /* but only with(!) 
GENERATIONAL_GC */
 #define HEAPCODES1BIT_WITH_MALLOC_WORKS 0
@@ -4729,6 +4740,9 @@ Long-Float, Ratio and Complex (only if S
 #if defined(UNIX_LINUX) && defined(RISCV64) /* Linux/riscv64 */
   #define GENERIC64C_HEAPCODES_WORKS 1
 #endif
+#if defined(UNIX_LINUX) && defined(LOONGARCH64)
+  #define GENERIC64C_HEAPCODES_WORKS 1
+#endif
 #if defined(UNIX_LINUX) && defined(S390_64) /* Linux/s390x */
   #define GENERIC64C_HEAPCODES_WORKS 1
 #endif
@@ -5031,6 +5045,9 @@ Long-Float, Ratio and Complex (only if S
   #if defined(UNIX_LINUX) && defined(RISCV64) /* Linux/riscv64 */
 #define TYPECODES_WITH_TRIVIALMAP_WORKS 1
   #endif
+ #if defined(UNIX_LINUX) && defined(LOONGARCH64)
+#define TYPECODES_WITH_TRIVIALMAP_WORKS 1
+  #endif
   #if defined(UNIX_LINUX) && defined(S390_64) /* Linux/s390x */
 #define TYPECODES_WITH_TRIVIALMAP_WORKS 1
   #endif
@@ -5167,6 +5184,9 @@ Long-Float, Ratio and Complex (only if S
   #if defined(UNIX_LINUX) && defined(RISCV64) /* Linux/riscv64 */
 #define TYPECODES_WITH_MALLOC_WORKS 1
   #endif
+ #if defined(UNIX_LINUX) && defined(LOONGARCH64

Bug#1061093: ironseed: please add support for loong64

2024-01-17 Thread wuruilong
Source: ironseed
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please modify the file to support the loong64 architecture, the content is as 
follows:
debian/tests/control:2:Architecture: amd64 arm64 armel armhf i386 loong64 
mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 riscv64
debian/control:23:Architecture: amd64 arm64 armel armhf i386 loong64 mipsel 
mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 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#1061056: giara: please add support for loong64

2024-01-16 Thread wuruilong
Source: giara
Version: 1.0.1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please modify the control file to support loong64 arch.

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#1061054: srst2: please add support for loong64

2024-01-16 Thread wuruilong
Source: srst2
Version: 0.2.0
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please modify the file to support the loong64 architecture, the content is as 
follows:
debian/tests/control:5:Architecture: amd64 arm64 loong64 mips64el ppc64el 
riscv64 sh4

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#1061052: libjogl2-java: please add support for loong64

2024-01-16 Thread wuruilong
Source: libjogl2-java
Version: please add support for loong64
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the attached patch to support the loong64 arch.

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.
 .
 libjogl2-java (2.5.0+dfsg-1) unstable; urgency=medium
 .
   * New upstream version 2.5.0+dfsg
   * Refreshing patches
   * Fixing the clean target (Closes: #1046349)
   * Refreshing d/copyright
   * Raising minimal gluegen2 version in the (Build-)Depends
Author: Pierre Gruet 
Bug-Debian: https://bugs.debian.org/1046349

---
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-01-17

--- libjogl2-java-2.5.0+dfsg.orig/make/build-jogl.xml
+++ libjogl2-java-2.5.0+dfsg/make/build-jogl.xml
@@ -1451,6 +1451,12 @@
   
   
 
+
+
+  
+  
+  
+
 
 
   
@@ -1506,7 +1512,7 @@
   
 
 
-
+
 
 
   
--- libjogl2-java-2.5.0+dfsg.orig/make/build-nativewindow.xml
+++ libjogl2-java-2.5.0+dfsg/make/build-nativewindow.xml
@@ -730,6 +730,13 @@
   
 
 
+
+  
+  
+  
+  
+
+
 
   
   
@@ -791,7 +798,7 @@
   
 
 
-
+
 
 
   
--- libjogl2-java-2.5.0+dfsg.orig/make/build-newt.xml
+++ libjogl2-java-2.5.0+dfsg/make/build-newt.xml
@@ -777,6 +777,16 @@
   
 
 
+
+  
+  
+  
+  
+  
+  
+
+
 
   
   
@@ -874,7 +884,7 @@
   
 
 
-
+
 
 
   


Bug#1060883: golang-github-containers-toolbox: please add support for loong64

2024-01-15 Thread wuruilong
Source: golang-github-containers-toolbox
Version: 0.0.99.3+git20230118+446d7bfdef6a-2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the attached patch to support the loong64 arch.

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-containers-toolbox (0.0.99.3+git20230118+446d7bfdef6a-2) 
unstable; urgency=medium
 .
   * Add community images for Debian and Ubuntu.
   * Clarify the community image status in README.Debian.
Author: Andrej Shadura 

---
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-01-16

--- 
golang-github-containers-toolbox-0.0.99.3+git20230118+446d7bfdef6a.orig/src/meson.build
+++ 
golang-github-containers-toolbox-0.0.99.3+git20230118+446d7bfdef6a/src/meson.build
@@ -43,6 +43,8 @@ elif cpu_family == 'x86_64' and endian =
   dynamic_linker = '/lib64/ld-linux-x86-64.so.2'
 elif cpu_family == 'riscv64' and endian == 'little'
   dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1'
+elif cpu_family == 'loongarch64' and endian == 'little'
+  dynamic_linker = '/lib/ld-linux-loongarch-lp64d.so.1'
 else
   host_machine_description = cpu_family + ' (' + endian + ' endian)'
   error('Please specify dynamic linker for:', host_machine_description)


Bug#1060829: fricas: please add support for loong64

2024-01-14 Thread wuruilong
Source: fricas
Version: 1.3.8-8
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please refer to the attached patch to support the loong64 arch.

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.
 .
 fricas (1.3.8-8) unstable; urgency=medium
 .
   * rewrite strcpy lines in sockio-c.c to work around fortify object size
 detection bug.  As previously written, size available in pad was
 incorrectly calculated as 14.
Author: Camm Maguire 

---
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-01-15

--- fricas-1.3.8.orig/config/config.guess
+++ fricas-1.3.8/config/config.guess
@@ -964,6 +964,9 @@ EOF
 k1om:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
+loongarch64:Linux:*:*)
+   echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
+   exit ;;
 m32r*:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
--- fricas-1.3.8.orig/config/config.sub
+++ fricas-1.3.8/config/config.sub
@@ -265,6 +265,7 @@ case $basic_machine in
| k1om \
| le32 | le64 \
| lm32 \
+| loong64 | loongarch64 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \


Bug#1060822: choose-mirror: please add support for loong64

2024-01-14 Thread wuruilong
Source: choose-mirror
Version: 2.125
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please modify Mirrors.masterlist to support 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#1060369: gridengine: please add support for loong64

2024-01-09 Thread wuruilong
Source: gridengine
Version: 8.1.9+dfsg-11
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please support the loong64 architecture. 
The patch is provided in the attachment for your 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.
 .
 gridengine (8.1.9+dfsg-11) unstable; urgency=medium
 .
   * Team upload.
   * d/patches/riscv64.patch: add support for riscv64 with a patch from
 Bo YU  ; thanks!
 Closes: #1017771
Author: Michael R. Crusoe 
Bug-Debian: https://bugs.debian.org/1017771

---
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-01-10

--- gridengine-8.1.9+dfsg.orig/source/aimk
+++ gridengine-8.1.9+dfsg/source/aimk
@@ -1977,6 +1977,9 @@ if ( $JNI == 1 ) then
 case lx-riscv64:
  set JAVA_LIB_ARCH = riscv64
  breaksw
+case lx-loong64:
+ set JAVA_LIB_ARCH = loong64
+ breaksw
 case lx-mips64:
  set JAVA_LIB_ARCH = mips64el
  breaksw
--- gridengine-8.1.9+dfsg.orig/source/dist/util/arch
+++ gridengine-8.1.9+dfsg/source/dist/util/arch
@@ -206,6 +206,9 @@ Linux)
  lxmachine=amd64
   fi
   ;;
+   loongarch64)
+  lxmachine=loong64
+  ;;
mips)
   lxmachine=mips
   maybe_el
--- gridengine-8.1.9+dfsg.orig/source/scripts/compilearch
+++ gridengine-8.1.9+dfsg/source/scripts/compilearch
@@ -185,6 +185,11 @@ case $buildarch in
   COMPILE_ARCH=LINUXIA64
   TARGET_BITS=TARGET_64BIT
   ;;
+   lx-loong64)
+  BUILDARCH=LINUXLOONG64
+  COMPILE_ARCH=LINUXLOONG64
+  TARGET_BITS=TARGET_64BITT
+  ;;
lx-mips)
   BUILDARCH=LINUXMIPS
   COMPILE_ARCH=LINUXMIPS


Bug#1060031: efitools: please add support for loong64

2024-01-04 Thread wuruilong
Source: efitools
Version: 1.9.2-3
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please support the loong64 arch. 
The patch is provided in the attachment for your 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.
 .
 efitools (1.9.2-3) unstable; urgency=medium
 .
   [ Bo YU ]
   * Add patch to allow building on riscv64. Closes: #1012849
 .
   * Team upload
Author: Steve McIntyre <93...@debian.org>
Bug-Debian: https://bugs.debian.org/1012849

---
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-01-05

--- efitools-1.9.2.orig/Make.rules
+++ efitools-1.9.2/Make.rules
@@ -12,6 +12,8 @@ else ifeq ($(ARCH),riscv64)
 ARCH3264 =
 else ifeq ($(ARCH),arm)
 ARCH3264 =
+else ifeq ($(ARCH),loongarch64)
+ARCH3264 =
 else
 $(error unknown architecture $(ARCH))
 endif
@@ -62,6 +64,11 @@ ifeq ($(ARCH),riscv64)
   LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
   FORMAT = -O binary
 endif
+
+ifeq ($(ARCH),loongarch64)
+  LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
+  FORMAT = -O binary
+endif
 
 %.efi: %.so
$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \


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#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#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#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#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#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#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#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#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#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#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#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#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#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#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#1058461: hypre: compilation errors on the loong64 architecture

2023-12-12 Thread wuruilong
Source: hypre
Version: 2.28.0-7
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  Hyper has compilation errors on the loong64 architecture. 
  Please modify the following code to resolve this issue.
  ---ARCH_RELAX_TOL_LIST = arm64 i386 ppc64el riscv64 s390x hppa powerpc ppc64
  +++ARCH_RELAX_TOL_LIST = arm64 i386 loong64 ppc64el riscv64 s390x hppa 
powerpc ppc64

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#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#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#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#1055146: zydis: Compilation error on the LoongArch architecture

2023-11-01 Thread wuruilong
Source: zydis
Version: 4.0.0-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

There is a compilation error for zydis on the loongarch machine. 
Tested the patch attached to the email on the LoongArch machine and it 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
--- zydis-4.0.0.orig/src/String.c
+++ zydis-4.0.0/src/String.c
@@ -322,7 +322,7 @@ ZyanStatus ZydisStringAppendDecU(ZyanStr
 ZYAN_CHECK(ZydisStringAppend(string, prefix));
 }
 
-#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) || 
defined(ZYAN_RISCV64)
+#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) || 
defined(ZYAN_RISCV64) || defined(ZYAN_LOONGARCH)
 ZYAN_CHECK(ZydisStringAppendDecU64(string, value, padding_length));
 #else
 if (value & 0x)
@@ -348,7 +348,7 @@ ZyanStatus ZydisStringAppendHexU(ZyanStr
 ZYAN_CHECK(ZydisStringAppend(string, prefix));
 }
 
-#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) || 
defined(ZYAN_RISCV64)
+#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) || 
defined(ZYAN_RISCV64) || defined(ZYAN_LOONGARCH)
 ZYAN_CHECK(ZydisStringAppendHexU64(string, value, padding_length, 
force_leading_number,
 uppercase));
 #else


Bug#1054567: ocserv: Compilation error on the LoongArch architecture

2023-10-29 Thread wuruilong

在 2023/10/26 下午2:47, Aron Xu 写道:

Hi,


On Oct 26, 2023, at 10:54, wuruilong  wrote:

Source: ocserv
Version: 1.2.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  There is a compilation error for ocserv on the loongarch machine.
Tested the patch attached to the email on the LoongArch machine and it resolved 
the issue.


I see the patch is quite straightforward, would you mind submit it to upstream, 
too?

Cheers,
Aron


Hi,

I encountered an issue with duplicate email registration on the upstream 
GitLab, and it will take three days to resolve.
After addressing this problem, I will proceed to submit the code to the 
upstream.

wuruilong



Bug#1054567: ocserv: Compilation error on the LoongArch architecture

2023-10-25 Thread wuruilong
Source: ocserv
Version: 1.2.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  There is a compilation error for ocserv on the loongarch machine. 
Tested the patch attached to the email on the LoongArch machine and it 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.
 .
 ocserv (1.2.1-1) unstable; urgency=medium
 .
   * New upstream version 1.2.1
   * Replace nuttcp with iperf3 from B-D
Author: Aron Xu 

---
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-10-26

--- ocserv-1.2.1.orig/src/worker-privs.c
+++ ocserv-1.2.1/src/worker-privs.c
@@ -182,7 +182,9 @@ int disable_system_calls(struct worker_s
 
ADD_SYSCALL(open, 0);
ADD_SYSCALL(openat, 0);
+#if defined(SYS_fstat) || defined(__NR_fstat)
ADD_SYSCALL(fstat, 0);
+#endif
 #if defined(SYS_fstat64) || defined(__NR_fstat64)
ADD_SYSCALL(fstat64, 0);
 #endif


Bug#1054467: re2: The re2 package fails to compile on the loongarch architecture

2023-10-24 Thread wuruilong
Source: re2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  The libre2-10.symbols file does not support loong64, causing compilation 
errors.

  wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
merged-usr: no
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 /bin/dash
Init: unable to detect
--- a/re2-20230301/debian/libre2-10.symbols 2023-10-24 07:27:36.940129986 
+
+++ b/re2-20230301/debian/libre2-10.symbols 2023-06-14 02:38:17.0 
+
@@ -1,7 +1,7 @@
 libre2.so.10 libre2-10 #MINVER#
 * Build-Depends-Package: libre2-dev
-(arch= alpha  amd64  arm64  ia64  loong64  mips64  mips64el  ppc64  ppc64el  
riscv64  s390x  sparc64  netbsd-alpha  kfreebsd-amd64  s390  avr32)#include 
"libre2.symbols.long_size_t"
-(arch=!alpha !amd64 !arm64 !ia64 !loong64 !mips64 !mips64el !ppc64 !ppc64el 
!riscv64 !s390x !sparc64 !netbsd-alpha !kfreebsd-amd64 !s390 !avr32)#include 
"libre2.symbols.int_size_t"
+(arch= alpha  amd64  arm64  ia64  mips64  mips64el  ppc64  ppc64el  riscv64  
s390x  sparc64  netbsd-alpha  kfreebsd-amd64  s390  avr32)#include 
"libre2.symbols.long_size_t"
+(arch=!alpha !amd64 !arm64 !ia64 !mips64 !mips64el !ppc64 !ppc64el !riscv64 
!s390x !sparc64 !netbsd-alpha !kfreebsd-amd64 !s390 !avr32)#include 
"libre2.symbols.int_size_t"
  _ZN3re211FilteredRE214PrintPrefilterEi@Base 20131024+dfsg
  _ZN3re211FilteredRE219RegexpsGivenStringsERKSt6vectorIiSaIiEEPS3_@Base 
20131024+dfsg
  _ZN3re211FilteredRE23AddERKNS_11StringPieceERKNS_3RE27OptionsEPi@Base 
20131024+dfsg


Bug#1052385: st: Add loongarch64 support

2023-09-21 Thread wuruilong
Source: st
Version: 1.9-3.2
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

Please add loongarch64 support.