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