[Debian-med-packaging] Bug#1059517: gdcm: add build support for loongarch64

zhangdandan zhangdandan at loongson.cn
Wed Dec 27 12:26:37 GMT 2023


Source: gdcm
Version: 3.0.22-2
Severity: wishlist
Tags: patch ftbfs
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the gdcm failed for loong64 in the my local loong64 environment.
We need to add build support for loongarch64 in d/control.
Please consider the patch I have attached.

I would like to remind you that compilation dependency of gdcm is 
libvtk9-dev (vtk9 lacks loongarch64 support), I have submitted a bug 
request to vtk9 to support loongarch64, please see 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054471.
The gdcm source package was compiled successfully on my local loong64 
rootfs environment, for examples,
```
......
    dh_md5sums -O--buildsystem=cmake\+ninja
    dh_builddeb -O--buildsystem=cmake\+ninja
dpkg-deb: 正在 '../libgdcm3.0_3.0.22-2_loong64.deb' 中构建软件包 
'libgdcm3.0'。
dpkg-deb: 正在 '../libgdcm-tools_3.0.22-2_loong64.deb' 中构建软件包 
'libgdcm-tools'。
dpkg-deb: 正在 '../libgdcm3.0-dbgsym_3.0.22-2_loong64.deb' 中构建软件包 
'libgdcm3.0-dbgsym'。
......
dpkg-deb: 正在 '../python3-vtkgdcm_3.0.22-2_loong64.deb' 中构建软件包 
'python3-vtkgdcm'。
dpkg-deb: 正在 '../libgdcm-java-dbgsym_3.0.22-2_loong64.deb' 中构建软件包 
'libgdcm-java-dbgsym'。
  dpkg-genbuildinfo -O../gdcm_3.0.22-2_loong64.buildinfo
  dpkg-genchanges -O../gdcm_3.0.22-2_loong64.changes
......
```

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

thanks,
Dandan Zhang

-------------- next part --------------
diff -Nru gdcm-3.0.22/debian/control gdcm-3.0.22/debian/control
--- gdcm-3.0.22/debian/control	2023-10-30 14:38:48.000000000 +0000
+++ gdcm-3.0.22/debian/control	2023-12-07 09:37:28.000000000 +0000
@@ -185,7 +185,7 @@
  This is the documentation for gdcm and vtkgdcm
 
 Package: libgdcm-java
-Architecture: alpha amd64 arm64 armel armhf i386 ia64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
+Architecture: alpha amd64 arm64 armel armhf i386 ia64 loong64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Suggests: java-virtual-machine
diff -Nru gdcm-3.0.22/debian/control.in gdcm-3.0.22/debian/control.in
--- gdcm-3.0.22/debian/control.in	2023-10-30 14:38:48.000000000 +0000
+++ gdcm-3.0.22/debian/control.in	2023-12-07 09:37:28.000000000 +0000
@@ -185,7 +185,7 @@
  This is the documentation for gdcm and vtkgdcm
 
 Package: libgdcm-java
-Architecture: alpha amd64 arm64 armel armhf i386 ia64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
+Architecture: alpha amd64 arm64 armel armhf i386 ia64 loong64 m68k mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Suggests: java-virtual-machine


More information about the Debian-med-packaging mailing list