Bug#1071484: add the error picture attachment

2024-07-25 Thread liuxiang
If do not add this patch, when right-click on "Memory Details" in 
ksysgurad, will get an error as shown in the picture.




Bug#1071484: libksysguard: please add support for loong64

2024-05-19 Thread liuxiang
Source: libksysguard
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

   please add support for loong64,
   thank you

liuxiang

-- 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 -ruN libksysguard-5.27.11-orig/debian/control 
libksysguard-5.27.11/debian/control
--- libksysguard-5.27.11-orig/debian/control2024-05-19 16:53:41.0 
+0800
+++ libksysguard-5.27.11/debian/control 2024-05-20 11:38:28.831090335 +0800
@@ -38,7 +38,7 @@
qtbase5-dev (>= 5.15.2~),
qtdeclarative5-dev (>= 5.15.2~),
qttools5-dev,
-   qtwebengine5-dev (>= 5.15.2~) [amd64 arm64 armhf i386],
+   qtwebengine5-dev (>= 5.15.2~) [amd64 arm64 armhf i386 loong64],
zlib1g-dev,
 Standards-Version: 4.7.0
 Homepage: https://invent.kde.org/plasma/libksysguard


Bug#1061545: Skip test on loong64

2024-01-26 Thread liuxiang

Package: pymatgen
Version: 2023.06.23+dfsg1-4
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please skip test_get_parchg test on loong64 , patch file is attached.

Thanks

diff --git a/debian/rules b/debian/rules
index 2a2acd5..f1081e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,6 +67,10 @@ ifneq (,$(findstring $(DEB_HOST_ARCH), riscv64))
 SKIP_TEST_LIST += test_get_parchg
 endif

+ifneq (,$(findstring $(DEB_HOST_ARCH), loong64))
+SKIP_TEST_LIST += test_get_parchg
+endif
+

 %:
dh $@ --buildsystem=pybuild


Bug#1061373: Add support for loong64

2024-01-23 Thread liuxiang

Package: iraf
Version: 2.17.1-3
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff --git a/debian/control b/debian/control
index 18bd716..a14795d 100644
--- a/debian/control
+++ b/debian/control
@@ -21,7 +21,7 @@ Homepage: https://iraf-community.github.io
 Rules-Requires-Root: no
 
 Package: iraf
-Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32
+Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32 loong64
 Multi-Arch: foreign
 Depends: ${misc:Depends},
  ${shlibs:Depends}
@@ -44,7 +44,7 @@ Description: Image Reduction and Analysis Facility
  facility.
 
 Package: iraf-dev
-Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32
+Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32 loong64
 Depends: gcc,
  iraf (= ${binary:Version}),
  libc6-dev,
@@ -67,7 +67,7 @@ Description: Image Reduction and Analysis Facility (development files)
  system and all applications are written.
 
 Package: iraf-noao
-Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32
+Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32 loong64
 Multi-Arch: foreign
 Depends: iraf (= ${binary:Version}),
  ${misc:Depends},
@@ -83,7 +83,7 @@ Description: IRAF NOAO data reduction package
  of Optical Astronomy data.
 
 Package: iraf-noao-dev
-Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32
+Architecture: any-amd64 any-i386 alpha arm64 armel armhf mips64el mipsel ppc64el riscv64 x32 loong64
 Depends: iraf-dev (= ${binary:Version}),
  iraf-noao (= ${binary:Version}),
  ${misc:Depends}


Bug#1060901: Add support for loong64

2024-01-16 Thread liuxiang

Package: kamailio
Version: 5.7.3-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN kamailio-5.7.3-bk/debian/control kamailio-5.7.3/debian/control
--- kamailio-5.7.3-bk/debian/control	2023-11-20 19:54:26.0 +0800
+++ kamailio-5.7.3/debian/control	2024-01-16 17:22:51.274876803 +0800
@@ -39,7 +39,7 @@
  libreadline-dev,
  libsasl2-dev,
  libsctp-dev [linux-any],
- libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x],
+ libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64],
  libsnmp-dev,
  libsqlite3-dev,
  libssl-dev,
@@ -788,7 +788,7 @@
  the subscriptions can be fully controlled by scripting commands.
 
 Package: kamailio-secsipid-modules
-Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x
+Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64
 Multi-Arch: same
 Pre-Depends:
  ${misc:Pre-Depends},
diff -ruN kamailio-5.7.3-bk/pkg/kamailio/deb/bookworm/control kamailio-5.7.3/pkg/kamailio/deb/bookworm/control
--- kamailio-5.7.3-bk/pkg/kamailio/deb/bookworm/control	2023-11-17 19:30:25.0 +0800
+++ kamailio-5.7.3/pkg/kamailio/deb/bookworm/control	2024-01-16 17:24:17.561093264 +0800
@@ -40,7 +40,7 @@
  libreadline-dev,
  libsasl2-dev,
  libsctp-dev [any],
- libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x],
+ libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64],
  libsnmp-dev,
  libsqlite3-dev,
  libssl-dev,
@@ -812,7 +812,7 @@
  the subscriptions can be fully controlled by scripting commands.
 
 Package: kamailio-secsipid-modules
-Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x
+Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64
 Multi-Arch: same
 Pre-Depends:
  ${misc:Pre-Depends},
diff -ruN kamailio-5.7.3-bk/pkg/kamailio/deb/bullseye/control kamailio-5.7.3/pkg/kamailio/deb/bullseye/control
--- kamailio-5.7.3-bk/pkg/kamailio/deb/bullseye/control	2023-11-17 19:30:25.0 +0800
+++ kamailio-5.7.3/pkg/kamailio/deb/bullseye/control	2024-01-16 17:24:41.420600088 +0800
@@ -39,7 +39,7 @@
  libreadline-dev,
  libsasl2-dev,
  libsctp-dev [any],
- libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x],
+ libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64],
  libsnmp-dev,
  libsqlite3-dev,
  libssl-dev,
@@ -831,7 +831,7 @@
  the subscriptions can be fully controlled by scripting commands.
 
 Package: kamailio-secsipid-modules
-Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x
+Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64
 Multi-Arch: same
 Pre-Depends:
  ${misc:Pre-Depends},
diff -ruN kamailio-5.7.3-bk/pkg/kamailio/deb/debian/control kamailio-5.7.3/pkg/kamailio/deb/debian/control
--- kamailio-5.7.3-bk/pkg/kamailio/deb/debian/control	2023-11-17 19:30:25.0 +0800
+++ kamailio-5.7.3/pkg/kamailio/deb/debian/control	2024-01-16 17:23:50.305656635 +0800
@@ -42,7 +42,7 @@
  libreadline-dev,
  libsasl2-dev,
  libsctp-dev [any],
- libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x],
+ libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64],
  libsnmp-dev,
  libsqlite3-dev,
  libssl-dev,
@@ -869,7 +869,7 @@
  the subscriptions can be fully controlled by scripting commands.
 
 Package: kamailio-secsipid-modules
-Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x
+Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64
 Multi-Arch: same
 Pre-Depends:
  ${misc:Pre-Depends},
diff -ruN kamailio-5.7.3-bk/pkg/kamailio/deb/jammy/control kamailio-5.7.3/pkg/kamailio/deb/jammy/control
--- kamailio-5.7.3-bk/pkg/kamailio/deb/jammy/control	2023-11-17 19:30:25.0 +0800
+++ kamailio-5.7.3/pkg/kamailio/deb/jammy/control	2024-01-16 17:25:11.803972063 +0800
@@ -40,7 +40,7 @@
  libreadline-dev,
  libsasl2-dev,
  libsctp-dev [any],
- libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x],
+ libsecsipid-dev [amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64],
  libsnmp-dev,
  libsqlite3-dev,
  libssl-dev,
@@ -813,7 +813,7 @@
  the subscriptions can be fully controlled by scripting commands.
 
 Package: kamailio-secsipid-modules
-Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x
+Architecture: amd64 arm64 armel armhf hurd-i386 i386 powerpc ppc64 ppc64el riscv64 s390x loong64
 Multi-Arch: same
 Pre-Depends:
  ${misc:Pre-Depends},
diff -ruN 

Bug#1059959: sub...@bugs.debian.org

2024-01-03 Thread liuxiang

Package: xmake
Version: 2.8.6+ds-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN xmake-2.8.6+ds-bk/configure xmake-2.8.6+ds/configure
--- xmake-2.8.6+ds-bk/configure	2023-12-26 02:44:24.0 +
+++ xmake-2.8.6+ds/configure	2024-01-04 05:11:00.444510453 +
@@ -2718,7 +2718,7 @@
 - linux
   --arch=ARCH Compile for the given architecture. (default: '"${_target_arch_default}"')
 - msys: i386 x86_64
-- cross: i386 x86_64 arm arm64 mips mips64 riscv riscv64 s390x ppc ppc64 sh4
+- cross: i386 x86_64 arm arm64 mips mips64 riscv riscv64 loong64 s390x ppc ppc64 sh4
 - bsd: i386 x86_64
 - mingw: i386 x86_64 arm arm64
 - macosx: x86_64 arm64
diff -ruN xmake-2.8.6+ds-bk/xmake/modules/private/detect/find_platform.lua xmake-2.8.6+ds/xmake/modules/private/detect/find_platform.lua
--- xmake-2.8.6+ds-bk/xmake/modules/private/detect/find_platform.lua	2023-12-26 02:44:25.0 +
+++ xmake-2.8.6+ds/xmake/modules/private/detect/find_platform.lua	2024-01-04 05:14:53.550969342 +
@@ -66,6 +66,8 @@
 arch = "riscv64"
 elseif cross:find("riscv", 1, true) then
 arch = "riscv"
+elseif cross:find("loong64", 1, true) then
+arch = "loong64"
 elseif cross:find("s390x", 1, true) then
 arch = "s390x"
 elseif cross:find("powerpc64", 1, true) then
diff -ruN xmake-2.8.6+ds-bk/xmake/platforms/cross/xmake.lua xmake-2.8.6+ds/xmake/platforms/cross/xmake.lua
--- xmake-2.8.6+ds-bk/xmake/platforms/cross/xmake.lua	2023-12-26 02:44:25.0 +
+++ xmake-2.8.6+ds/xmake/platforms/cross/xmake.lua	2024-01-04 05:14:09.995257298 +
@@ -20,7 +20,7 @@
 
 platform("cross")
 set_hosts("macosx", "linux", "windows", "bsd")
-set_archs("i386", "x86_64", "arm", "arm64", "mips", "mips64", "riscv", "riscv64", "s390x", "ppc", "ppc64", "sh4")
+set_archs("i386", "x86_64", "arm", "arm64", "mips", "mips64", "riscv", "riscv64", "loong64", "s390x", "ppc", "ppc64", "sh4")
 
 set_formats("static", "lib$(name).a")
 set_formats("object", "$(name).o")
diff -ruN xmake-2.8.6+ds-bk/xmake/toolchains/zig/xmake.lua xmake-2.8.6+ds/xmake/toolchains/zig/xmake.lua
--- xmake-2.8.6+ds-bk/xmake/toolchains/zig/xmake.lua	2023-12-26 02:44:25.0 +
+++ xmake-2.8.6+ds/xmake/toolchains/zig/xmake.lua	2024-01-04 05:11:32.312299769 +
@@ -78,6 +78,8 @@
 arch = "i386"
 elseif toolchain:is_arch("riscv64") then
 arch = "riscv64"
+elseif toolchain:is_arch("loong64") then
+arch = "loong64"
 elseif toolchain:is_arch("mips.*") then
 arch = toolchain:arch()
 elseif toolchain:is_arch("ppc64") then


Bug#1059853: Add support for loong64

2024-01-02 Thread liuxiang

Package: xmobar
Version: 0.46-2
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN xmobar-0.46-bk/debian/rules xmobar-0.46/debian/rules
--- xmobar-0.46-bk/debian/rules	2023-12-22 08:59:07.0 +
+++ xmobar-0.46/debian/rules	2024-01-02 12:19:16.882208867 +
@@ -4,7 +4,7 @@
 
 # Work-around a bug in GHC on 64-bit unregistered platforms.
 # https://ghc.haskell.org/trac/ghc/ticket/15853
-ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el s390x alpha ia64 riscv64 sparc64))
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el s390x alpha ia64 riscv64 loong64 sparc64))
 	DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-O0"
 endif
 


Bug#1059850: Add support for loong64

2024-01-02 Thread liuxiang

Package: opm-grid
Version: 2023.04+ds-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN opm-grid-2023.04+ds-bk/debian/control opm-grid-2023.04+ds/debian/control
--- opm-grid-2023.04+ds-bk/debian/control	2023-07-14 13:56:33.0 +
+++ opm-grid-2023.04+ds/debian/control	2024-01-02 11:59:44.365924217 +
@@ -22,7 +22,7 @@
 
 Package: libopm-grid-dev
 Section: libdevel
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${opm:shared-library}, ${misc:Depends}, libdune-grid-dev (>= 2.6),
  libdune-istl-dev  (>= 2.6), libopm-common-dev  (>= 2023.04),
@@ -51,7 +51,7 @@
 
 Package: libopm-grid
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Provides: ${opm:shared-library}
@@ -103,7 +103,7 @@
 
 Package: libopm-grid-bin
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Replaces: libopm-grid1-bin


Bug#1059849: Add support for loong64

2024-01-02 Thread liuxiang

Package: opm-models
Version: 2023.04+ds-3
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN opm-models-2023.04+ds-bk/debian/control opm-models-2023.04+ds/debian/control
--- opm-models-2023.04+ds-bk/debian/control	2023-08-21 13:57:40.0 +
+++ opm-models-2023.04+ds/debian/control	2024-01-02 11:55:41.979518857 +
@@ -22,7 +22,7 @@
 
 Package: libopm-models-dev
 Section: libdevel
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${misc:Depends},
  libdune-grid-dev, libdune-istl-dev,
diff -ruN opm-models-2023.04+ds-bk/debian/tests/control opm-models-2023.04+ds/debian/tests/control
--- opm-models-2023.04+ds-bk/debian/tests/control	2023-08-21 13:57:40.0 +
+++ opm-models-2023.04+ds/debian/tests/control	2024-01-02 11:56:00.959393990 +
@@ -6,4 +6,4 @@
   libboost-test-dev
 # skip test on architectures where there is no installable package (e.g. 32bit)
 Restrictions: allow-stderr, skip-not-installable
-Architecture: amd64 arm64 mips64el ppc64el riscv64
+Architecture: amd64 arm64 mips64el ppc64el riscv64 loong64


Bug#1059848: Add support for loong64

2024-01-02 Thread liuxiang

Package: opm-simulators
Version: 2023.04+ds-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN opm-simulators-2023.04+ds-bk/debian/control opm-simulators-2023.04+ds/debian/control
--- opm-simulators-2023.04+ds-bk/debian/control	2023-07-16 15:12:42.0 +
+++ opm-simulators-2023.04+ds/debian/control	2024-01-02 11:51:00.049373922 +
@@ -18,7 +18,7 @@
 
 Package: libopm-simulators-dev
 Section: libdevel
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${opm:shared-library}, ${misc:Depends}, libopm-grid-dev (>= 2023.04),
  libopm-models-dev (>= 2023.04), libboost-date-time-dev
@@ -42,7 +42,7 @@
 
 Package: libopm-simulators
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
 Provides: ${opm:shared-library}
@@ -67,7 +67,7 @@
 Package: libopm-simulators-bin
 Section: science
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Replaces: libopm-simulators1-bin
@@ -113,7 +113,7 @@
 Package: python3-opm-simulators
 Section: python
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 #Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libopm-simulators
 Recommends: python3-opm-common


Bug#1059847: Add support for loong64

2024-01-02 Thread liuxiang

Package: opm-upscaling
Version: 2023.04+ds-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN opm-upscaling-2023.04+ds-bk/debian/control opm-upscaling-2023.04+ds/debian/control
--- opm-upscaling-2023.04+ds-bk/debian/control	2023-07-15 11:38:02.0 +
+++ opm-upscaling-2023.04+ds/debian/control	2024-01-02 11:40:35.637486906 +
@@ -19,7 +19,7 @@
 
 Package: libopm-upscaling-dev
 Section: libdevel
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${opm:shared-library}, ${misc:Depends}, libopm-grid-dev (>= 2023.04),
  libboost-date-time-dev
@@ -39,7 +39,7 @@
 
 Package: libopm-upscaling-bin
 Section: science
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Replaces: libopm-upscaling1-bin
@@ -58,7 +58,7 @@
 
 Package: libopm-upscaling
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Provides: ${opm:shared-library}


Bug#1059845: Add support for loong64

2024-01-02 Thread liuxiang

Package: python-cooler
Version: 0.9.1-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN python-cooler-0.9.1-bk/debian/control python-cooler-0.9.1/debian/control
--- python-cooler-0.9.1-bk/debian/control	2023-02-07 19:35:24.0 +
+++ python-cooler-0.9.1/debian/control	2024-01-02 11:28:39.498202692 +
@@ -24,7 +24,7 @@
 Rules-Requires-Root: no
 
 Package: python3-cooler
-Architecture: any-amd64 arm64 mips64el ppc64el ia64 ppc64 riscv64 sparc64 alpha
+Architecture: any-amd64 arm64 mips64el ppc64el ia64 ppc64 riscv64 loong64 sparc64 alpha
 Section: python
 Depends: ${python3:Depends},
  ${misc:Depends},
diff -ruN python-cooler-0.9.1-bk/debian/tests/control python-cooler-0.9.1/debian/tests/control
--- python-cooler-0.9.1-bk/debian/tests/control	2023-02-07 19:35:24.0 +
+++ python-cooler-0.9.1/debian/tests/control	2024-01-02 11:28:55.274098842 +
@@ -1,4 +1,4 @@
 Tests: run-unit-test
 Depends: @, python3-pytest, python3-mock, python3-dask
 Restrictions: allow-stderr
-Architecture: any-amd64 arm64 mips64el ia64 ppc64 riscv64 sparc64 alpha
+Architecture: any-amd64 arm64 mips64el ia64 ppc64 riscv64 loong64 sparc64 alpha


Bug#1059844: Add support for loong64

2024-01-02 Thread liuxiang

Package: python-loompy
Version: 3.0.7+dfsg-2
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN python-loompy-3.0.7+dfsg-bk/debian/control python-loompy-3.0.7+dfsg/debian/control
--- python-loompy-3.0.7+dfsg-bk/debian/control	2023-01-12 07:54:23.0 +
+++ python-loompy-3.0.7+dfsg/debian/control	2024-01-02 11:19:33.629796064 +
@@ -21,7 +21,7 @@
 Rules-Requires-Root: no
 
 Package: python3-loompy
-Architecture: any-amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 sparc64 alpha
+Architecture: any-amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 loong64 sparc64 alpha
 Section: python
 Depends: ${python3:Depends},
  ${misc:Depends},


Bug#1059843: Add support for loong64

2024-01-02 Thread liuxiang

Package: python-pynndescent
Version: 0.5.8-2
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN python-pynndescent-0.5.8-bk/debian/control python-pynndescent-0.5.8/debian/control
--- python-pynndescent-0.5.8-bk/debian/control	2023-02-11 17:48:21.0 +
+++ python-pynndescent-0.5.8/debian/control	2024-01-02 11:10:07.141528455 +
@@ -20,7 +20,7 @@
 Rules-Requires-Root: no
 
 Package: python3-pynndescent
-Architecture: any-amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 sparc64 alpha
+Architecture: any-amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 loong64 sparc64 alpha
 Depends: ${python3:Depends},
  ${misc:Depends}
 Description: nearest neighbor descent for approximate nearest neighbors
diff -ruN python-pynndescent-0.5.8-bk/debian/tests/control python-pynndescent-0.5.8/debian/tests/control
--- python-pynndescent-0.5.8-bk/debian/tests/control	2023-02-11 20:01:13.0 +
+++ python-pynndescent-0.5.8/debian/tests/control	2024-01-02 11:10:22.985424032 +
@@ -1,4 +1,4 @@
 Tests: run-unit-test
 Depends: @, python3-pytest, python3-all
 Restrictions: allow-stderr
-Architecture: amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 sparc64 alpha
+Architecture: amd64 arm64 mips64el ppc64el s390x ia64 ppc64 riscv64 loong64 sparc64 alpha


Bug#1059428: Add support for loong64

2023-12-25 Thread liuxiang

Package: brian
Version: 2.5.4-3
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN brian-2.5.4-bk/brian2/codegen/cpp_prefs.py brian-2.5.4/brian2/codegen/cpp_prefs.py
--- brian-2.5.4-bk/brian2/codegen/cpp_prefs.py	2023-12-25 08:37:13.0 +
+++ brian-2.5.4/brian2/codegen/cpp_prefs.py	2023-12-25 08:57:33.323718519 +
@@ -124,7 +124,7 @@
 "-mtune=native",
 "-std=c++11",
 ]
-elif re.match("^(parisc.*|riscv.*|mips.*)$", machine):
+elif re.match("^(parisc.*|riscv.*|mips.*|loong64.*)$", machine):
 default_buildopts = [
 "-w",
 "-O3",
@@ -155,7 +155,7 @@
 elif re.match('^(alpha|ppc.*|sparc.*)$', machine):
 default_buildopts = ['-w', '-O3', '-ffast-math', '-fno-finite-math-only',
  '-mcpu=native', '-mtune=native', '-std=c++11']
-elif re.match('^(sh|m68k|ia64|parisc.*|riscv.*|mips.*)$', machine):
+elif re.match('^(sh|m68k|ia64|parisc.*|riscv.*|mips.*|loong64.*)$', machine):
 default_buildopts = ['-w', '-O3', '-ffast-math', '-fno-finite-math-only',
  '-std=c++11']
 else:


Bug#1059205: Add supoort for loong64

2023-12-21 Thread liuxiang

Package: python-py2bit
Version: 0.3.1-1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN python-py2bit-0.3.1-bk/debian/control python-py2bit-0.3.1/debian/control
--- python-py2bit-0.3.1-bk/debian/control	2022-08-09 18:19:44.0 +
+++ python-py2bit-0.3.1/debian/control	2023-12-21 08:52:44.395365071 +
@@ -14,7 +14,7 @@
 
 Package: python3-py2bit
 Section: python
-Architecture: any-amd64 ppc64el any-ia64 arm64 armel armhf any-i386 mips64el mipsel alpha riscv64 sh4 x32
+Architecture: any-amd64 ppc64el any-ia64 arm64 armel armhf any-i386 mips64el mipsel alpha riscv64 sh4 x32 loong64
 Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Description: access to 2bit files
  From https://genome.ucsc.edu/FAQ/FAQformat.html#format7:


Bug#1059203: Add support for loong64

2023-12-21 Thread liuxiang

Package: opm-common
Version: 2023.04+ds-5
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN opm-common-2023.04+ds-bk/debian/control opm-common-2023.04+ds/debian/control
--- opm-common-2023.04+ds-bk/debian/control	2023-08-19 18:58:11.0 +
+++ opm-common-2023.04+ds/debian/control	2023-12-21 08:41:56.331642326 +
@@ -19,7 +19,7 @@
 
 Package: libopm-common
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
 Provides: ${opm:shared-library}
@@ -36,7 +36,7 @@
 
 Package: libopm-common-bin
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Replaces: libopm-common1-bin
@@ -59,7 +59,7 @@
 
 Package: libopm-common-dev
 Section: libdevel
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Multi-Arch: same
 Suggests: libopm-common-doc
 Replaces: libopm-common1-dev, libopm-material-dev (<< 2023.04~), libopm-material1-dev
@@ -102,7 +102,7 @@
 Package: python3-opm-common
 Section: python
 Pre-Depends: ${misc:Pre-Depends}
-Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64
+Architecture: amd64 arm64 armel ia64 m68k mips64el mipsel ppc64el riscv64 loong64
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libopm-common, python3-numpy, python3-decorator
 Description: Tools for Eclipse reservoir simulation files -- Python wrappers
  The Open Porous Media (OPM) software suite provides libraries and


Bug#1059202: Add support for loong64

2023-12-20 Thread liuxiang

Package: python-demgengeo
Version: 1.4-4.1
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

--- a/m4/boost.m4	2023-10-13 07:12:47.0 +
+++ b/m4/boost.m4	2023-10-13 06:55:21.006728797 +
@@ -491,17 +491,17 @@
   possible_paths="${with_boost}/lib ${with_boost}"
 else
   possible_paths="${boost_cv_inc_path%/include}/lib \
-/usr/lib*/x86_64* /usr/lib*/i386* /usr/lib*/aarch64* /usr/lib*/alpha* /usr/lib*/arm* /usr/lib*/ia64* /usr/lib*/hppa* /usr/lib*/mips* /usr/lib*/m68k* \
+/usr/lib*/x86_64* /usr/lib*/i386* /usr/lib*/aarch64* /usr/lib*/alpha* /usr/lib*/arm* /usr/lib*/ia64* /usr/lib*/loongarch64* /usr/lib*/hppa* /usr/lib*/mips* /usr/lib*/m68k* \
   /usr/lib*/powerpc* /usr/lib*/ppc64* /usr/lib*/riscv64* /usr/lib*/s390* /usr/lib*/sh4* /usr/lib*/sparc* /usr/lib* \
 /usr/local/lib*/x86_64* /usr/local/lib*/i386* /usr/local/lib*/aarch64* /usr/local/lib*/alpha* /usr/local/lib*/arm* /usr/local/lib*/ia64* \
-  /usr/local/lib*/hppa* /usr/local/lib*/mips* /usr/local/lib*/m68k* /usr/local/lib*/powerpc* /usr/local/lib*/ppc64* /usr/local/lib*/riscv64* /usr/local/lib*/s390* \
+  /usr/local/lib*/loongarch64* /usr/local/lib*/hppa* /usr/local/lib*/mips* /usr/local/lib*/m68k* /usr/local/lib*/powerpc* /usr/local/lib*/ppc64* /usr/local/lib*/riscv64* /usr/local/lib*/s390* \
   /usr/local/lib*/sh4* /usr/local/lib*/sparc* /usr/local/lib* \
-/opt/lib*/x86_64* /opt/lib*/i386* /opt/lib*/aarch64* /opt/lib*/alpha* /opt/lib*/arm* /opt/lib*/ia64* /opt/lib*/hppa* /opt/lib*/mips* /opt/lib*/m68k* \
+/opt/lib*/x86_64* /opt/lib*/i386* /opt/lib*/aarch64* /opt/lib*/alpha* /opt/lib*/arm* /opt/lib*/ia64* /opt/lib*/loongarch64* /opt/lib*/hppa* /opt/lib*/mips* /opt/lib*/m68k* \
   /opt/lib*/powerpc* /opt/lib*/ppc64* /opt/lib*/riscv64* /opt/lib*/s390* /opt/lib*/sh4* /opt/lib*/sparc* /opt/lib* \
 /opt/local/lib*/x86_64* /opt/local/lib*/i386* /opt/local/lib*/aarch64* /opt/local/lib*/alpha* /opt/local/lib*/arm* /opt/local/lib*/ia64*\
-  /opt/local/lib*/hppa* /opt/local/lib*/mips* /opt/local/lib*/m68k* /opt/local/lib*/powerpc* /opt/local/lib*/ppc64* /opt/local/lib*/riscv64* /opt/local/lib*/s390* \
+  /opt/local/lib*/loongarch64* /opt/local/lib*/hppa* /opt/local/lib*/mips* /opt/local/lib*/m68k* /opt/local/lib*/powerpc* /opt/local/lib*/ppc64* /opt/local/lib*/riscv64* /opt/local/lib*/s390* \
   /opt/local/lib*/sh4* /opt/local/lib*/sparc* /opt/local/lib* \
-/lib*/x86_64* /lib*/i386* /lib*/aarch64* /lib*/alpha* /lib*/arm* /lib*/ia64* /lib*/hppa* /lib*/mips* /lib*/m68k* \
+/lib*/x86_64* /lib*/i386* /lib*/aarch64* /lib*/alpha* /lib*/arm* /lib*/ia64* /lib*/loongarch64* /lib*/hppa* /lib*/mips* /lib*/m68k* \
   /lib*/powerpc* /lib*/ppc64* /lib*/riscv64* /lib*/s390* /lib*/sh4* /lib*/sparc* /lib* \
 C:/Boost/lib"
 fi


Bug#1059072: Add support for loong64

2023-12-19 Thread liuxiang

Package: trinityrnaseq
Version: 2.15.1+dfsg-4
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN trinityrnaseq-2.15.1+dfsg-bk/debian/control trinityrnaseq-2.15.1+dfsg/debian/control
--- trinityrnaseq-2.15.1+dfsg-bk/debian/control	2023-10-05 14:09:25.0 +
+++ trinityrnaseq-2.15.1+dfsg/debian/control	2023-12-19 12:30:42.421979075 +
@@ -20,7 +20,7 @@
 Rules-Requires-Root: no
 
 Package: trinityrnaseq
-Architecture: amd64 arm64 ppc64el riscv64
+Architecture: amd64 arm64 ppc64el riscv64 loong64
 Depends: ${shlibs:Depends},
  ${misc:Depends},
  ${perl:Depends},
@@ -85,7 +85,7 @@
  apart transcripts derived from paralogous genes.
 
 Package: trinityrnaseq-examples
-Architecture: amd64 arm64 ppc64el riscv64
+Architecture: amd64 arm64 ppc64el riscv64 loong64
 Depends: ${perl:Depends},
  ${java:Depends},
  ${misc:Depends},


Bug#1059018: Add support for loong64

2023-12-19 Thread liuxiang

Package: varnish-modules
Version: 0.20.0-2
Severity: normal
X-Debbugs-Cc: liuxi...@loongson.cn

Dear Maintainer,

  Please add loong64 support, patch file is attached.

Thanks

diff -ruN varnish-modules-0.20.0-bk/debian/control varnish-modules-0.20.0/debian/control
--- varnish-modules-0.20.0-bk/debian/control	2022-08-13 08:05:00.0 +
+++ varnish-modules-0.20.0/debian/control	2023-12-19 11:38:47.914550110 +
@@ -15,7 +15,7 @@
 Homepage: https://github.com/varnish/varnish-modules
 
 Package: varnish-modules
-Architecture: amd64 arm64 i386 mips64el mipsel ppc64el s390x alpha hppa ia64 m68k powerpc ppc64 riscv64 sh4 x32
+Architecture: amd64 arm64 i386 mips64el mipsel ppc64el s390x alpha hppa ia64 m68k powerpc ppc64 riscv64 sh4 x32 loong64
 Depends: ${shlibs:Depends},
  ${misc:Depends},
  ${Varnish:ABI}


Bug#1054302: add support for loongarch

2023-11-16 Thread liuxiang

patch attached

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.
 .
 python-greenlet (2.0.2-1.loong64) UNRELEASED; urgency=medium
 .
   * Add support for loongarch.
Author: Xiang Liu 

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

--- python-greenlet-2.0.2.orig/setup.py
+++ python-greenlet-2.0.2/setup.py
@@ -58,6 +58,7 @@ if (
 #
 # Adding the -Os flag fixes the problem.
 or (is_linux and plat_machine == "riscv64")
+or (is_linux and plat_machine == "loongarch64")
 ):
 global_compile_args.append("-Os")
 
--- /dev/null
+++ python-greenlet-2.0.2/src/greenlet/platform/switch_loongarch64_linux.h
@@ -0,0 +1,31 @@
+#define STACK_REFPLUS 1
+
+#ifdef SLP_EVAL
+#define STACK_MAGIC 0
+
+#define REGS_TO_SAVE "s0", "s1", "s2", "s3", "s4", "s5", \
+ "s6", "s7", "s8", "fp", \
+		 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31"
+
+static int
+slp_switch(void)
+{
+  register int ret;
+  register long *stackref, stsizediff;
+  __asm__ volatile ("" : : : REGS_TO_SAVE);
+  __asm__ volatile ("move %0, $sp" : "=r" (stackref) : );
+  {
+  SLP_SAVE_STATE(stackref, stsizediff);
+  __asm__ volatile (
+ "add.d $sp, $sp, %0\n\t"
+ : /* no outputs */
+ : "r" (stsizediff)
+ );
+  SLP_RESTORE_STATE();
+  }
+  __asm__ volatile ("" : : : REGS_TO_SAVE);
+  __asm__ volatile ("move %0, $zero" : "=r" (ret) : );
+  return ret;
+}
+
+#endif
--- python-greenlet-2.0.2.orig/src/greenlet/slp_platformselect.h
+++ python-greenlet-2.0.2/src/greenlet/slp_platformselect.h
@@ -38,6 +38,8 @@ extern "C" {
 #include "platform/switch_s390_unix.h"	/* Linux/S390 */
 #elif defined(__GNUC__) && defined(__s390x__) && defined(__linux__)
 #include "platform/switch_s390_unix.h"	/* Linux/S390 zSeries (64-bit) */
+#elif defined(__GNUC__) && defined(__loongarch64) && defined(__linux__)
+#include "platform/switch_loongarch64_linux.h"	/* Linux/LoongArch64 */
 #elif defined(__GNUC__) && defined(__arm__)
 #ifdef __APPLE__
 #include 


Bug#1053835: a patch for loong64 in python3.12

2023-10-12 Thread liuxiang

Package: python3.12
Version: 3.12.0
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

Dear python3.12 maintainers,

 There need a patch for loong64 arch in debian/multiarch.h.
 If you have any questions, you can contact me at any time.


thanks,
Xiang Liu

--- a/multiarch.h	2023-10-12 11:33:34.300368389 +
+++ b/multiarch.h	2023-10-12 11:28:42.874335964 +
@@ -19,6 +19,20 @@
 #  include 
 # elif defined(__ia64__)
 #  include 
+# elif defined(__loongarch__)
+#  if defined(__loongarch_lp64)
+#   if defined(__loongarch_soft_float)
+#	include 
+#   elif defined(__loongarch_single_float)
+#	include 
+#   elif defined(__loongarch_double_float)
+#	include 
+#   else
+#   	error unknown multiarch location for @header@
+#   endif
+#  else
+#   	error unknown multiarch location for @header@
+#  endif
 # elif defined(__m68k__) && !defined(__mcoldfire__)
 #  include 
 # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)