Bug#1071606: ucx: FTBFS: add support for loongarch64

2024-05-22 Thread zhangdandan

Source: ucx
Version: 1.16.0+ds-5
Severity: normal
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the ucx failed for loong64 in my local ENV.

We need to add loong64 support in d/control.
And we need to add loongarch64 support in ucx source.

The debian ucx source package is pulling the upstream 1.16.x version.
The latest release version of ucx upstream is 1.17.x.
Support for the new architecture will be committed to the ucx upstream 
master branch.


Due to the large differences between the main branch and the 1.16.x 
version of the ucx code, I prioritized adding support for loongarch in 
the ucx 1.16.0+ds-5 source package.

Please consider the patch I attached.
Suggestion to consider adding the attached patch to the debian/patches.
For now, it is recommended that the attached patch be maintained in the 
debian ucx source package.
With the attached patch, the ucx source package was built successfully 
in my local ENV.

Execute the constructed binary and the output is normal, e.g.
```
root@localhost:/home/ucx/ucx-1.16.0+ds# ./debian/tmp/usr/bin/ucx_info -v
# Library version: 1.16.0
# Library path: 
/home/ucx/ucx-1.16.0+ds/debian/tmp/usr/lib/loongarch64-linux-gnu/libucs.so.0

# API headers version: 1.16.0
# Git branch '', revision 000
# Configured with: --build=loongarch64-linux-gnu --prefix=/usr 
--includedir=${prefix}/include..

-enable-rc --enable-dc --enable-ud --with-mlx5-dv --enable-dm
```

In addition, I will add loongarch64 support to the ucx upstream master 
branch.
Future new upstream releases of the debian ucx source package will 
include support for the loongarch architecture.


Your opinions are welcome.

Thanks,
Dandan Zhang

diff -Nru ucx-1.16.0+ds/debian/changelog ucx-1.16.0+ds/debian/changelog
--- ucx-1.16.0+ds/debian/changelog  2024-03-24 11:19:06.0 +
+++ ucx-1.16.0+ds/debian/changelog  2024-05-22 07:30:00.0 +
@@ -1,3 +1,9 @@
+ucx (1.16.0+ds-5+loong64) unreleased; urgency=medium
+
+  * Add support for loongarch64.
+
+ -- Dandan Zhang   Wed, 22 May 2024 15:30:00 +0800
+
 ucx (1.16.0+ds-5) unstable; urgency=medium
 
   * Fix FTBFS: Don't pass CFLAGS to C++ (cxxflags.patch). Closes: #1066543
diff -Nru ucx-1.16.0+ds/debian/control ucx-1.16.0+ds/debian/control
--- ucx-1.16.0+ds/debian/control2024-03-24 11:19:06.0 +
+++ ucx-1.16.0+ds/debian/control2024-05-22 07:26:40.0 +
@@ -4,13 +4,13 @@
 Maintainer: Debian Science Maintainers 

 Uploaders: Alastair McKinstry 
 Build-Depends: debhelper-compat (= 13),
- libibverbs-dev (>= 1.1.7) [amd64 arm64  riscv64 ppc64el s390x],
- libnuma-dev [amd64 arm64 riscv64 ppc64 s390x],
+ libibverbs-dev (>= 1.1.7) [amd64 arm64 loong64 riscv64 ppc64el s390x],
+ libnuma-dev [amd64 arm64 loong64 riscv64 ppc64 s390x],
  librdmacm-dev, 
  libibmad-dev,
  libibumad-dev,
  libfuse3-dev,
- libamdhip64-dev [!riscv64],
+ libamdhip64-dev [!riscv64 !loong64],
  doxygen,
  texlive-latex-base,
  lcov
@@ -20,7 +20,7 @@
 Homepage: https://www.openucx.org
 
 Package: ucx-utils
-Architecture: amd64 arm64 riscv64 ppc64el
+Architecture: amd64 arm64 loong64 riscv64 ppc64el
 Depends: libucx0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Description: Utilities for the UCX messaging library
  Unified Communication X (UCX) provides an optimized communication layer
@@ -32,7 +32,7 @@
 
 Package: libucx-dev
 Section: libdevel
-Architecture: amd64 arm64  riscv64 ppc64el
+Architecture: amd64 arm64 loong64 riscv64 ppc64el
 Multi-Arch: same
 Depends: libucx0 (= ${binary:Version}), ${misc:Depends}
 Description: Header files for UCX library
@@ -46,7 +46,7 @@
 Package: libucx0
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Architecture: amd64 arm64  riscv64 ppc64el
+Architecture: amd64 arm64 loong64 riscv64 ppc64el
 Multi-Arch: same
 Description: Unified Communication X libraries
  Unified Communication X (UCX) provides an optimized communication layer
diff -Nru ucx-1.16.0+ds/debian/patches/series 
ucx-1.16.0+ds/debian/patches/series
--- ucx-1.16.0+ds/debian/patches/series 2024-03-24 11:19:06.0 +
+++ ucx-1.16.0+ds/debian/patches/series 2024-05-22 07:24:44.0 +
@@ -4,3 +4,4 @@
 gcc-11.patch
 ptr-fix.patch
 cxxflags.patch
+ucx-add-loongarch64-support.patch
diff -Nru ucx-1.16.0+ds/debian/patches/ucx-add-loongarch64-support.patch 
ucx-1.16.0+ds/debian/patches/ucx-add-loongarch64-support.patch
--- ucx-1.16.0+ds/debian/patches/ucx-add-loongarch64-support.patch  
1970-01-01 00:00:00.0 +
+++ ucx-1.16.0+ds/debian/patches/ucx-add-loongarch64-support.patch  
2024-05-22 07:25:38.0 +
@@ -0,0 +1,601 @@
+Description: Add loongarch64 support 
+Signed-Off-By: lix...@loongson.cn, zhangdan...@loongson.cn
+Last-Update: 2024-05-22
+
+--- ucx-1.16.0+ds.orig/src/tools/info/sys_info.c
 ucx-1.16.0+ds/src/tools/info/sys_info.c
+@@ -41,6 +41,7 @@ static const char *cpu_model_names[] = {
+ 

Bug#1070849: onetbb: FTBFS: Fix testcases failed on loong64

2024-05-10 Thread zhangdandan

Source: onetbb
Version: 2021.11.0-2
Severity: normal
Tags: FTBFS patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the onetbb failed for loong64 in the Debian Package 
Auto-Building environment.

The error log is as follows,
```
99% tests passed, 1 tests failed out of 137

Total Test time (real) = 233.63 sec

The following tests FAILED:
    133 - test_malloc_whitebox (Failed)
Errors while running CTest
FAILED: CMakeFiles/test.util
```
The full log can be found at 
https://buildd.debian.org/status/logs.php?pkg=onetbb=2021.11.0-2=loong64.


For loongarch64, the size of the huge page I got from /proc/meminfo is 
32768 kB.

```
$ cat /proc/meminfo |grep Hugepagesize
Hugepagesize:  32768 kB
$ uname -m
loongarch64
```

I have adjusted the page size of HUGE_PAGE_SIZE for loongarch64 in 
onetbb package.

I have built successfully on my local ENV and test cases passed.
```
137/137 Test #137: test_malloc_new_handler .. Passed    
0.04 sec

100% tests passed, 0 tests failed out of 137
Total Test time (real) = 332.60 sec
```

The pull request for loongarch64 has been merged in onetbb upstream.
https://github.com/oneapi-src/oneTBB/pull/850/files.
https://github.com/oneapi-src/oneTBB/pull/1230/files.

Meanwhile, you can also consider the patch I attached.
Your opinions are welcome.

Thanks,
Dandan Zhang

Description: Adjust HUGE_PAGE_SIZE size for loongarch64 
Last-Update: 2024-05-10

--- onetbb-2021.11.0.orig/src/tbbmalloc/tbbmalloc_internal.h
+++ onetbb-2021.11.0/src/tbbmalloc/tbbmalloc_internal.h
@@ -102,7 +102,11 @@ void suppress_unused_warning( const T& )
 /*
  * Default huge page size
  */
+#if defined __loongarch64
+static const size_t HUGE_PAGE_SIZE = 32 * 1024 * 1024;
+#else
 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024;
+#endif
 
 /** End of global default constants */
 
--- onetbb-2021.11.0.orig/test/tbbmalloc/test_malloc_whitebox.cpp
+++ onetbb-2021.11.0/test/tbbmalloc/test_malloc_whitebox.cpp
@@ -1257,7 +1257,11 @@ void TestTHP() {
 scalable_allocation_mode(USE_HUGE_PAGES, 1);
 REQUIRE_MESSAGE(hugePages.isEnabled, "Huge pages should be enabled via scalable_allocation_mode");
 
+#if defined __loongarch64
+const int HUGE_PAGE_SIZE = 32 * 1024 * 1024;
+#else
 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024;
+#endif
 
 // allocCount transparent huge pages should be allocated
 const int allocCount = 10;
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1059262: trilinos: add loongarch64 support

2024-04-09 Thread zhangdandan

Hi maintainers,

On Fri, 29 Mar 2024 09:53:53 +0800 zhangdandan wrote:

>
> The trilinos itself blocks the compilation of many packages.
> Based on the attached patch, the trilinos package was compiled
> successfully on my local loong64 rootfs environment.
> I have built 132 binary packages from trilinos on local ENV.
>
I have generated a debdiff for loong64.
Please consider the patch I have attached.
Could you enable loong64 support in debian/control in the next upload.
Looking forward to your reply.

In addition, if I need to submit a merge-request to 
https://salsa.debian.org/science-team/trilinos, please contact me in time.


Thanks,
Dandan Zhang
diff -Nru trilinos-13.2.0/debian/control trilinos-13.2.0/debian/control
--- trilinos-13.2.0/debian/control  2023-09-04 12:17:04.0 +
+++ trilinos-13.2.0/debian/control  2023-09-04 16:41:09.0 +
@@ -35,7 +35,7 @@
 Vcs-Browser: https://salsa.debian.org/science-team/trilinos
 
 Package: trilinos-all-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${misc:Depends}, ${mydevpackages}
@@ -50,7 +50,7 @@
  This package depends on all Trilinos development packages.
 
 Package: trilinos-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${misc:Depends}
@@ -65,7 +65,7 @@
  This package contains the development header and some makefile templates.
 
 Package: libtrilinos-amesos-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -77,7 +77,7 @@
  This package contains the dynamic libraries.
 
 Package: libtrilinos-amesos-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libdevel
 # Manually add libtrilinos-trilinosss-dev as dependency until
@@ -92,7 +92,7 @@
  This package provides headers.
 
 Package: libtrilinos-amesos2-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -104,7 +104,7 @@
  This package contains the dynamic libraries.
 
 Package: libtrilinos-amesos2-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libdevel
 # Manually add libtrilinos-trilinosss-dev as dependency until
@@ -119,7 +119,7 @@
  This package provides headers.
 
 Package: libtrilinos-anasazi-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -134,7 +134,7 @@
  This package contains the dynamic libraries.
 
 Package: libtrilinos-anasazi-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libdevel
 Depends: libtrilinos-anasazi-13.2 (= ${binary:Version}), trilinos-dev, 
${misc:Depends}
@@ -150,7 +150,7 @@
  This package provides headers.
 
 Package: libtrilinos-aztecoo-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -164,7 +164,7 @@
  This package contains the dynamic libraries.
 
 Package: libtrilinos-aztecoo-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libdevel
 Depends: liblapack-dev, libtrilinos-aztecoo-13.2 (= ${binary:Version}), 
trilinos-dev, ${misc:Depends}
@@ -179,7 +179,7 @@
  This package provides headers.
 
 Package: libtrilinos-belos-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -193,7 +193,7 @@
  This package contains the dynamic libraries.
 
 Package: libtrilinos-belos-dev
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libdevel
 Depends: libtrilinos-belos-13.2 (= ${binary:Version}), trilinos-dev, 
${misc:Depends}
@@ -210,7 +210,7 @@
  This package provides headers.
 
 Package: libtrilinos-epetra-13.2
-Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64
+Architecture: amd64 arm64 ppc64el s390x ppc64 riscv64 loong64
 Multi-Arch: same
 Section: libs
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -222,7 +222,7 @@
  This package contains the dynamic lib

Bug#1059262: trilinos: add loongarch64 support

2024-03-28 Thread zhangdandan

Hi maintainers,

On Fri, 22 Dec 2023 09:17:19 + Zhang Na wrote:

> Source: trilinos
> Version: 13.2.0-5
> Severity: normal
> X-Debbugs-Cc: zhan...@loongson.cn
>
> Dear Maintainer,
>
> Please add loong64 support in debian/control, thanks!

The trilinos itself blocks the compilation of many packages.
Based on the attached patch, the trilinos package was compiled 
successfully on my local loong64 rootfs environment.

I have built 132 binary packages from trilinos on local ENV.

Could you enable loong64 support in debian/control in the next upload?
Your suggestions are always welcome.

Thanks,
Dandan Zhang

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054471: vtk9: FTBFS: add support for loongarch64

2024-02-23 Thread zhangdandan

Dear maintainers,

On Tue, 24 Oct 2023 17:28:02 +0800 zhangdandan wrote:

> Source: vtk9
> Version: 9.1.0+really9.1.0+dfsg2-7
> Severity: wishlist
> Tags: ftbfs patch
> User: debian-loonga...@lists.debian.org
> Usertags: loong64
>
> Dear maintainers,
>
> When compiling the package vtk9 for loong64 in the Debian Package

> The full compilation log can be found at [2].
>
> Please consider the patch I have attached.
> The LoongArch architecture has been supported in the vtk upstream [3].
> Would it be possible to include the support for LoongArch in the next
> upload?
Please add loongarch64 support in vtk9.
The number of libvtk9-dev:loong64 blocking compilation source packages 
is 12 in Debian Package Auto-Building.

>
> [1]:https://buildd.debian.org/status/package.php?p=vtk9=sid
> 
[2]:https://buildd.debian.org/status/logs.php?pkg=vtk9=9.1.0%2Breally9.1.0%2Bdfsg2-7=loong64
> 
[3]:https://gitlab.kitware.com/vtk/vtk/-/blob/master/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h

>
> thanks,
> Dandan Zhang
>
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1059276: python-demgengeo: FTBFS on loongarch64 - error: cannot find the flags to link with Boost system

2024-01-11 Thread zhangdandan

Dear maintainers,

>
> The full log can be found at
> 
https://buildd.debian.org/status/logs.php?pkg=python-demgengeo=1.4-4.1=loong64

> Referring to other architectures, the relevant bug is
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829143
>
> Please add loongarch64 directories in m4/boost.m4.

I have added loongarch64 support in python-demgengeo.
Please consider the patch (my local patch) I have attached.
If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang


Description: Add loongarch64 support
Last-Update: 2023-12-23

--- python-demgengeo-1.4.orig/m4/boost.m4
+++ python-demgengeo-1.4/m4/boost.m4
@@ -491,17 +491,17 @@ for boost_py_ in '' ${python_suffix}; do
   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*/hppa* /usr/lib*/loongarch64*/ /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*/hppa* /usr/local/lib*/loongarch64* /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*/hppa* /opt/lib*/loongarch64* /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*/hppa* /opt/local/lib*/loongarch64* /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*/hppa* /lib*/loongarch64* /lib*/mips* /lib*/m68k* \
   /lib*/powerpc* /lib*/ppc64* /lib*/riscv64* /lib*/s390* /lib*/sh4* /lib*/sparc* /lib* \
 C:/Boost/lib"
 fi
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1059276: python-demgengeo: FTBFS on loongarch64 - error: cannot find the flags to link with Boost system

2023-12-22 Thread zhangdandan

Source: python-demgengeo
Version: 1.4-4.1
Severity: wishlist
Tags: ftbfs
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the python-demgengeo failed for loong64 in the Debian Package 
Auto-Building environment.

The error messages are as follows,
```
checking for the Boost system library... /usr/lib/libboost_system.so ...
no...
/usr/lib64/libboost_system.so ...
no...
/usr/libexec/libboost_system.so ...
no...
/usr/local/lib/libboost_system.so ...
no...
...
/usr/lib64/libboost_system-d.so ...
no...
/usr/libexec/libboost_system-d.so ...
no...
/usr/local/lib/libboost_system-d.so ...
no...
/lib/libboost_system-d.so ...
no...
/lib64/libboost_system-d.so ...
no...
/libboost_system-d.so ...
no...
/usr/lib/libboost_system-mt-d.so ...
no...
/usr/lib64/libboost_system-mt-d.so ...
no...
/usr/libexec/libboost_system-mt-d.so ...
no...
/usr/local/lib/libboost_system-mt-d.so ...
no...
..
/lib64/libboost_system--mt-d-1_83.so ...
no...
/libboost_system--mt-d-1_83.so ...
no...
no
configure: error: cannot find the flags to link with Boost system
```

The full log can be found at 
https://buildd.debian.org/status/logs.php?pkg=python-demgengeo=1.4-4.1=loong64
Referring to other architectures, the relevant bug is 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829143


Please add loongarch64 directories in m4/boost.m4.

thanks,
Dandan Zhang

--
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1059206: scikit-learn: FTBFS on loong64

2023-12-21 Thread zhangdandan

Source: scikit-learn
Version: 1.2.1+dfsg-1
Severity: wishlist
Tags: ftbfs
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the scikit-learn failed for loong64 in the Debian Package 
Auto-Building environment.
The full compilation log can be found at 
https://buildd.debian.org/status/logs.php?pkg=scikit-learn=1.2.1%2Bdfsg-1%2Bb1=loong64


Refer to other architectures, need to add loong64 in d/rules where test 
suite results are ignored.


Please consider the patch I have attached.
The scikit-learn source package was compiled successfully on my local 
loong64 rootfs environment.

If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

diff -Nru scikit-learn-1.2.1+dfsg/debian/rules 
scikit-learn-1.2.1+dfsg/debian/rules
--- scikit-learn-1.2.1+dfsg/debian/rules2023-01-30 06:02:29.0 
+
+++ scikit-learn-1.2.1+dfsg/debian/rules2023-01-30 06:02:29.0 
+
@@ -108,7 +108,7 @@
 
 else
 # for all architectures that are known to have failures in test suite we are 
ignoring these
-ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), i386 mipsel mips64el hppa 
armel armhf arm64 ppc64 ppc64el s390x alpha riscv64 amd64))
+ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), i386 loong64 mipsel mips64el 
hppa armel armhf arm64 ppc64 ppc64el s390x alpha riscv64 amd64))
   # Ignored due to bug #1003165
 IGNORE_ERRORS= || true
 endif
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054471: vtk9: FTBFS: add support for loongarch64

2023-12-20 Thread zhangdandan

Hi,

On Sun, 10 Dec 2023 22:31:42 +0800 Bo YU wrote:

> On Tue, Oct 24, 2023 at 05:28:02PM +0800, zhangdandan wrote:
> >Source: vtk9
> >Version: 9.1.0+really9.1.0+dfsg2-7
> >Severity: wishlist
> >Tags: ftbfs patch
> >User: debian-loonga...@lists.debian.org
> >Usertags: loong64
> >
>
> We can just open one reportbug to submit issue with the same theme. If
> we want to remind the maintainer to be noticed in time, we can follow-up
> with the same issue.
>
> I am trying to built it on my local build machines and then do team
> upload.
>
> BTW, what status for vtk9 upstream support loon64? It would be better to
> submit patch on Debian with `--dep3` standard to let the maintainer to
> learn more.

Please see this commit in vtk9 upstream: 
https://gitlab.kitware.com/seanm/vtk/-/commit/886b536a0d0bb3694951e09169a52896d585c517


thanks,
Dandan Zhang


-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1058675: giac: add build support for loongarch64

2023-12-14 Thread zhangdandan

Source: giac
Version: 1.9.0.69+dfsg2-1
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

The giac source package lacks LoongArch architecture support.
We need to add build support for loongarch64 in d/control.

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

thanks,
Dandan Zhang

diff -Nru giac-1.9.0.69+dfsg2/debian/control giac-1.9.0.69+dfsg2/debian/control
--- giac-1.9.0.69+dfsg2/debian/control  2023-11-06 17:02:28.0 +
+++ giac-1.9.0.69+dfsg2/debian/control  2023-11-06 17:02:28.0 +
@@ -51,7 +51,7 @@
 
 Package: libgiac0
 Section: libs
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel riscv64
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel riscv64
 Multi-Arch: same
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Suggests: giac-doc
@@ -64,7 +64,7 @@
  This package contains the shared libraries needed to run programs using giac.
 
 Package: libgiac-dev
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel riscv64
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel riscv64
 Section: libdevel
 Depends: libfltk1.3-dev,
  libgiac0 (= ${binary:Version}),
@@ -84,7 +84,7 @@
  development files needed to build software that uses giac.
 
 Package: xcas
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel riscv64
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel riscv64
 Multi-Arch: allowed
 Depends: libgiac0 (= ${binary:Version}),
  ${misc:Depends},
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1057248: libsdsl: add support for loongarch64

2023-12-01 Thread zhangdandan

Source: libsdsl
Version: 2.1.1+dfsg-4
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

The libsdsl source package lacks LoongArch architecture support.
We need to add support for loongarch64 in d/control.

Please consider the patch I have attached.
And the libsdsl source package was compiled successfully on my local 
loong64 rootfs environment.
Would it be possible to include the support for LoongArch in the next 
upload?


thanks,
Dandan Zhang

diff -Nru libsdsl-2.1.1+dfsg/debian/control libsdsl-2.1.1+dfsg/debian/control
--- libsdsl-2.1.1+dfsg/debian/control   2023-08-09 14:55:15.0 +
+++ libsdsl-2.1.1+dfsg/debian/control   2023-08-09 14:55:15.0 +
@@ -16,7 +16,7 @@
 Rules-Requires-Root: no
 
 Package: libsdsl-dev
-Architecture: alpha amd64 arm64 kfreebsd-amd64 mips64el ppc64 ppc64el riscv64 
s390x sparc64 x32
+Architecture: alpha amd64 arm64 kfreebsd-amd64 loong64 mips64el ppc64 ppc64el 
riscv64 s390x sparc64 x32
 Multi-Arch: same
 Section: libdevel
 Depends: libdivsufsort-dev, libsdsl3 (= ${binary:Version}), ${misc:Depends}
@@ -34,7 +34,7 @@
  This package installs development files.
 
 Package: libsdsl3
-Architecture: alpha amd64 arm64 kfreebsd-amd64 mips64el ppc64 ppc64el riscv64 
s390x sparc64 x32
+Architecture: alpha amd64 arm64 kfreebsd-amd64 loong64 mips64el ppc64 ppc64el 
riscv64 s390x sparc64 x32
 Multi-Arch: same
 Section: libs
 Depends: libjs-d3, ${misc:Depends}, ${shlibs:Depends}
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054525: vtk9: Please add support for loongarch64

2023-10-24 Thread zhangdandan

Source: vtk9
Version: 9.1.0+really9.1.0+dfsg2-7
Severity: wishlist
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

When compiling the package vtk9 for loong64 in the Debian Package 
Auto-Building environment [1], the error messages are as follows.

..Omit
/<>/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h:476:3: 
error: #error "Byte order of target CPU unknown."

  476 | # error "Byte order of target CPU unknown."
  |   ^
..Omit

The full compilation log can be found at [2].

Please consider the patch I have attached.
The LoongArch architecture has been supported in the vtk upstream [3].
Would it be possible to include the support for LoongArch in the next 
upload?

If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=vtk9=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=vtk9=9.1.0%2Breally9.1.0%2Bdfsg2-7=loong64
[3]:https://gitlab.kitware.com/vtk/vtk/-/blob/master/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h

thanks,
Dandan Zhang

diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/control 
vtk9-9.1.0+really9.1.0+dfsg2/debian/control
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-08-21 19:01:21.0 
+
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-10-24 14:01:55.0 
+0800
@@ -159,7 +159,7 @@
  that use VTK.
 
 Package: libvtk9-java
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha 
ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el 
s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends},
  ${misc:Depends},
diff -Nru 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch
--- 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
1970-01-01 00:00:00.0 +
+++ 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
2023-10-24 14:35:29.0 +0800
@@ -0,0 +1,23 @@
+Description: add support for loongarch64 
---
+Last-Update: 2023-10-24
+
+--- 
vtk9-9.1.0+really9.1.0+dfsg2.orig/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
 vtk9-9.1.0+really9.1.0+dfsg2/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
+@@ -407,6 +407,10 @@ suppression macro KWIML_ABI_NO_VERIFY wa
+ #elif defined(__hppa) || defined(__hppa__)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
+ 
++/* LoongArch */
++#elif defined(__loongarch64) 
++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
++
+ /* Motorola 68k */
+ #elif defined(__m68k__) || defined(M68000)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054524: vtk9: FTBFS: add support for loongarch64

2023-10-24 Thread zhangdandan

Source: vtk9
Version: 9.1.0+really9.1.0+dfsg2-7
Severity: wishlist
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

When compiling the package vtk9 for loong64 in the Debian Package 
Auto-Building environment [1], the error messages are as follows.

..Omit
cd /<>/debian/build/Wrapping/Java && 
../../bin/vtkParseJava-9.1 
@/<>/debian/build/Wrapping/Java/CMakeFiles/vtkCommonCoreJava/vtkCommonCore-java.RelWithDebInfo.args 
-o /<>/debian/build/Wrapping/Java/vtk/vtkBreakPoint.java 
/<>/Common/Core/vtkBreakPoint.h

In file included from /<>/Utilities/KWIML/vtkkwiml/abi.h:2,
 from /<>/Utilities/KWIML/vtk_kwiml.h:19,
 from /<>/Common/Core/vtkType.h:21,
 from /<>/Common/Core/vtkSystemIncludes.h:43,
 from /<>/Common/Core/vtkIndent.h:28,
 from /<>/Common/Core/vtkObjectBase.h:53,
 from /<>/Common/Core/vtkObject.h:45,
 from /<>/Common/Core/vtkArrayIterator.h:47,
 from 
/<>/Common/Core/vtkArrayIteratorTemplate.h:29,
 from 
/<>/Common/Core/vtkArrayIteratorTemplate.txx:18,
 from 
/<>/Common/Core/vtkArrayIteratorTemplateInstantiate.cxx:17:
/<>/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h:476:3: 
error: #error "Byte order of target CPU unknown."

  476 | # error "Byte order of target CPU unknown."
  |   ^
..Omit

The full compilation log can be found at [2].

Please consider the patch I have attached.
The LoongArch architecture has been supported in the vtk upstream [3].
Would it be possible to include the support for LoongArch in the next 
upload?

If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=vtk9=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=vtk9=9.1.0%2Breally9.1.0%2Bdfsg2-7=loong64
[3]:https://gitlab.kitware.com/vtk/vtk/-/blob/master/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h

thanks,
Dandan Zhang

diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog 
vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog   2023-08-21 
22:27:20.0 +
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog   2023-10-24 
14:35:29.0 +0800
@@ -1,3 +1,9 @@
+vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+
+  * Add support for loongarch64.
+
+ -- Dandan Zhang   Tue, 24 Oct 2023 14:35:29 +0800
+
 vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium
 
   * Team upload.
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/control 
vtk9-9.1.0+really9.1.0+dfsg2/debian/control
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-08-21 19:01:21.0 
+
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-10-24 14:01:55.0 
+0800
@@ -159,7 +159,7 @@
  that use VTK.
 
 Package: libvtk9-java
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha 
ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el 
s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends},
  ${misc:Depends},
diff -Nru 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch
--- 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
1970-01-01 00:00:00.0 +
+++ 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
2023-10-24 14:35:29.0 +0800
@@ -0,0 +1,23 @@
+Description: add support for loongarch64 
+ .
+ vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+ .
+   * Add support for loongarch64.
+Author: Dandan Zhang 
+
+---
+Last-Update: 2023-10-24
+
+--- 
vtk9-9.1.0+really9.1.0+dfsg2.orig/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
 vtk9-9.1.0+really9.1.0+dfsg2/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
+@@ -407,6 +407,10 @@ suppression macro KWIML_ABI_NO_VERIFY wa
+ #elif defined(__hppa) || defined(__hppa__)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
+ 
++/* LoongArch */
++#elif defined(__loongarch64) 
++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
++
+ /* Motorola 68k */
+ #elif defined(__m68k__) || defined(M68000)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series  2023-08-21 
19:02:08.0 +
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series  2023-10-24 
14:35:29.0 +0800
@@ -13,3 +13,4 @@
 99_fix_ftbfs.patch
 110_vtk9_netcdf.patch
 120_fix_shader_crash.patch
+Add-support-for-loongarch64.patch
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net

Bug#1054471: vtk9: FTBFS: add support for loongarch64

2023-10-24 Thread zhangdandan

Source: vtk9
Version: 9.1.0+really9.1.0+dfsg2-7
Severity: wishlist
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

When compiling the package vtk9 for loong64 in the Debian Package 
Auto-Building environment [1], the error messages are as follows.

..Omit
cd /<>/debian/build/Wrapping/Java && 
../../bin/vtkParseJava-9.1 
@/<>/debian/build/Wrapping/Java/CMakeFiles/vtkCommonCoreJava/vtkCommonCore-java.RelWithDebInfo.args 
-o /<>/debian/build/Wrapping/Java/vtk/vtkBreakPoint.java 
/<>/Common/Core/vtkBreakPoint.h

In file included from /<>/Utilities/KWIML/vtkkwiml/abi.h:2,
 from /<>/Utilities/KWIML/vtk_kwiml.h:19,
 from /<>/Common/Core/vtkType.h:21,
 from /<>/Common/Core/vtkSystemIncludes.h:43,
 from /<>/Common/Core/vtkIndent.h:28,
 from /<>/Common/Core/vtkObjectBase.h:53,
 from /<>/Common/Core/vtkObject.h:45,
 from /<>/Common/Core/vtkArrayIterator.h:47,
 from 
/<>/Common/Core/vtkArrayIteratorTemplate.h:29,
 from 
/<>/Common/Core/vtkArrayIteratorTemplate.txx:18,
 from 
/<>/Common/Core/vtkArrayIteratorTemplateInstantiate.cxx:17:
/<>/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h:476:3: 
error: #error "Byte order of target CPU unknown."

  476 | # error "Byte order of target CPU unknown."
  |   ^
..Omit

The full compilation log can be found at [2].

Please consider the patch I have attached.
The LoongArch architecture has been supported in the vtk upstream [3].
Would it be possible to include the support for LoongArch in the next 
upload?

If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=vtk9=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=vtk9=9.1.0%2Breally9.1.0%2Bdfsg2-7=loong64
[3]:https://gitlab.kitware.com/vtk/vtk/-/blob/master/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h

thanks,
Dandan Zhang

diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog 
vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog   2023-08-21 
22:27:20.0 +
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog   2023-10-24 
14:35:29.0 +0800
@@ -1,3 +1,9 @@
+vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+
+  * Add support for loongarch64.
+
+ -- Dandan Zhang   Tue, 24 Oct 2023 14:35:29 +0800
+
 vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium
 
   * Team upload.
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/control 
vtk9-9.1.0+really9.1.0+dfsg2/debian/control
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-08-21 19:01:21.0 
+
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/control 2023-10-24 14:01:55.0 
+0800
@@ -159,7 +159,7 @@
  that use VTK.
 
 Package: libvtk9-java
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha 
ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el 
s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends},
  ${misc:Depends},
diff -Nru 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch
--- 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
1970-01-01 00:00:00.0 +
+++ 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch   
2023-10-24 14:35:29.0 +0800
@@ -0,0 +1,23 @@
+Description: add support for loongarch64 
+ .
+ vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+ .
+   * Add support for loongarch64.
+Author: Dandan Zhang 
+
+---
+Last-Update: 2023-10-24
+
+--- 
vtk9-9.1.0+really9.1.0+dfsg2.orig/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
 vtk9-9.1.0+really9.1.0+dfsg2/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
+@@ -407,6 +407,10 @@ suppression macro KWIML_ABI_NO_VERIFY wa
+ #elif defined(__hppa) || defined(__hppa__)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
+ 
++/* LoongArch */
++#elif defined(__loongarch64) 
++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
++
+ /* Motorola 68k */
+ #elif defined(__m68k__) || defined(M68000)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series 
vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series  2023-08-21 
19:02:08.0 +
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series  2023-10-24 
14:35:29.0 +0800
@@ -13,3 +13,4 @@
 99_fix_ftbfs.patch
 110_vtk9_netcdf.patch
 120_fix_shader_crash.patch
+Add-support-for-loongarch64.patch
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net

Bug#1050845: mpi-defaults: Please add support for loongarch64

2023-08-29 Thread zhangdandan

Package: mpi-defaults
Version: 1.14
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

   Dear maintainers,

Please add support for loongarch64 (64-bit LoongArch) in mpi-defaults, 
default to openmpi. And loong64 is dpkg architecture for loongarch64.

I have compiled the packages on local Debian system as follows
mpi-default-bin_1.14_loong64.deb
mpi-default-dev_1.14_loong64.deb

Please consider the patch attached.
For ease of viewing, you can also review the following link [1].
If you have any questions, you can contact me at any time.

[1]:https://salsa.debian.org/science-team/mpi-defaults/-/merge_requests/1

thanks,
Dandan Zhang

diff -Nru mpi-defaults-1.14/debian/control mpi-defaults-1.14/debian/control
--- mpi-defaults-1.14/debian/control2021-08-04 13:43:05.0 +
+++ mpi-defaults-1.14/debian/control2021-08-04 13:46:55.0 +
@@ -10,8 +10,8 @@
  Alastair McKinstry ,
 Build-Depends:
  debhelper-compat (= 13),
- libopenmpi-dev (>= 1.4.3-2.1) [alpha amd64 arm64 armel armhf hppa hurd-i386 
i386 ia64 kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc 
powerpcspe ppc64 ppc64el riscv64 s390x sh4 sparc64 x32],
- openmpi-bin (>= 1.4.3-2.1) [alpha amd64 arm64 armel armhf hppa hurd-i386 i386 
ia64 kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe 
ppc64 ppc64el riscv64 s390x sh4 sparc64 x32],
+ libopenmpi-dev (>= 1.4.3-2.1) [alpha amd64 arm64 armel armhf hppa hurd-i386 
i386 ia64 kfreebsd-amd64 kfreebsd-i386 loong64 m68k mips mips64el mipsel 
powerpc powerpcspe ppc64 ppc64el riscv64 s390x sh4 sparc64 x32],
+ openmpi-bin (>= 1.4.3-2.1) [alpha amd64 arm64 armel armhf hppa hurd-i386 i386 
ia64 kfreebsd-amd64 kfreebsd-i386 loong64 m68k mips mips64el mipsel powerpc 
powerpcspe ppc64 ppc64el riscv64 s390x sh4 sparc64 x32],
 # libmpich-dev [],
 # mpich []
 Rules-Requires-Root: no
@@ -20,7 +20,7 @@
 Vcs-Git: https://salsa.debian.org/science-team/mpi-defaults.git
 
 Package: mpi-default-dev
-Architecture: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe ppc64 
ppc64el riscv64 s390x sh4 sparc64 x32
+Architecture: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 loong64 m68k mips mips64el mipsel powerpc 
powerpcspe ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
 Section: libdevel
 Depends: ${mpi-dev}, ${misc:Depends}
 Description: Standard MPI development files (metapackage)
@@ -31,7 +31,7 @@
  compilers mpicc, mpic++/mpicxx/mpiCC, mpif77 and mpi90 and their manpages.
 
 Package: mpi-default-bin
-Architecture: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe ppc64 
ppc64el riscv64 s390x sh4 sparc64 x32
+Architecture: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 
kfreebsd-amd64 kfreebsd-i386 loong64 m68k mips mips64el mipsel powerpc 
powerpcspe ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
 Section: net
 Depends: ${mpi}, ${misc:Depends}
 Description: Standard MPI runtime programs (metapackage)
diff -Nru mpi-defaults-1.14/debian/rules mpi-defaults-1.14/debian/rules
--- mpi-defaults-1.14/debian/rules  2021-08-04 13:43:02.0 +
+++ mpi-defaults-1.14/debian/rules  2021-08-04 13:46:55.0 +
@@ -21,6 +21,7 @@
ia64 \
kfreebsd-amd64 \
kfreebsd-i386 \
+   loong64 \
mips \
mips64el \
mipsel \
@@ -47,6 +48,7 @@
ia64 \
kfreebsd-amd64 \
kfreebsd-i386 \
+   loong64 \
m68k \
mips \
mips64el \
@@ -76,6 +78,7 @@
ia64 \
kfreebsd-amd64 \
kfreebsd-i386 \
+   loong64 \
m68k \
mips \
mips64el \
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1024793: gmp: update symbols and add definition for loongarch64

2022-11-24 Thread zhangdandan

Package: gmp
Version: 6.2.1+dfsg1-1.1
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

   Hi gmp maintainers,

- update symbols for loongarch64.
gmp would fail to build from source on mips64r6el if we had bootstrapped 
this port due to symbol issues. Methods for updating symbol files:

   sed -i -e 's/!hppa/& !loongarch64/' libgmp10.symbols

- definition for mixed size 64 bit arithmetic.
I have added patch for loongarch64. The patch:
   gmp-6.2.1-add-loongarch64-definition.patch

Please update the symbol file and consider applying the attached patch.

thanks,
Dandan Zhang

diff --git a/longlong.h b/longlong.h
index edbaf56..fa9ea18 100644
--- a/longlong.h
+++ b/longlong.h
@@ -1162,6 +1162,15 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
 #endif /* i960mx */
 #endif /* i960 */
 
+#if defined (__loongarch64) && W_TYPE_SIZE == 64
+#define umul_ppmm(w1, w0, u, v) \
+  do {	\
+UDItype __u = (u), __v = (v);	\
+(w0) = __u * __v;			\
+(w1) = (unsigned __int128__) __u * __v >> 64;			\
+  } while (0)
+#endif
+
 #if (defined (__mc68000__) || defined (__mc68020__) || defined(mc68020) \
  || defined (__m68k__) || defined (__mc5200__) || defined (__mc5206e__) \
  || defined (__mc5307__)) && W_TYPE_SIZE == 32
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers