Bug#1059613: gtk4: add build support for loongarch64

zhangdandan zhangdandan at loongson.cn
Fri Dec 29 09:21:18 GMT 2023


Source: gtk4
Version: 4.12.4+ds-3
Severity: wishlist
Tags: ftbfs patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the gtk4 failed for loong64 in the Debian Package 
Auto-Building environment. The error messages is as follows,
```
Ok:                 1467
Expected Fail:      0
Fail:               33
Unexpected Pass:    0
Skipped:            15
Timeout:            0
+ debian/log-reftests.py
```
The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=gtk4&ver=4.12.4%2Bds-3&arch=loong64

Please consider the patch I have attached.
If you have any questions, you can contact me at any time.
The gtk4 source package was compiled successfully on my local 
environment and the test cases passed.
```
......
1515/1515 gtk:reftest / reftest window-height-for-width.ui 
OK                3.62s   1 subtests passed

Ok:                 1500
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            15
Timeout:            0

Full log written to 
/home/buildd/gtk4-4.12.4+ds/debian/build/deb/meson-logs/testlog-wayland.txt
......
dpkg-deb: building package 'libgtk-4-1-dbgsym' in 
'../libgtk-4-1-dbgsym_4.12.4+ds-3_loong64.deb'.
dpkg-deb: building package 'libgtk-4-1' in 
'../libgtk-4-1_4.12.4+ds-3_loong64.deb'.
dpkg-deb: building package 'gtk-4-examples-dbgsym' in 
'../gtk-4-examples-dbgsym_4.12.4+ds-3_loong64.deb'.
......
dpkg-deb: building package 'gir1.2-gtk-4.0' in 
'../gir1.2-gtk-4.0_4.12.4+ds-3_loong64.deb'.
dpkg-deb: building package 'libgtk-4-media-gstreamer-dbgsym' in 
'../libgtk-4-media-gstreamer-dbgsym_4.12.4+ds-3_loong64.deb'.
dpkg-deb: building package 'libgtk-4-1-udeb' in 
'debian/.debhelper/scratch-space/build-libgtk-4-1-udeb/libgtk-4-1-udeb_4.12.4+ds-3_loong64.deb'.
     Renaming libgtk-4-1-udeb_4.12.4+ds-3_loong64.deb to 
libgtk-4-1-udeb_4.12.4+ds-3_loong64.udeb
  dpkg-genbuildinfo -O../gtk4_4.12.4+ds-3_loong64.buildinfo
  dpkg-genchanges -O../gtk4_4.12.4+ds-3_loong64.changes
dpkg-genchanges: info: not including original source code in upload
  dpkg-source --after-build .
dpkg-buildpackage: info: binary and diff upload (original source NOT 
included)
```

thanks,
Dandan Zhang

-------------- next part --------------
diff -Nru gtk4-4.12.4+ds/debian/control gtk4-4.12.4+ds/debian/control
--- gtk4-4.12.4+ds/debian/control	2023-12-09 01:33:26.000000000 +0000
+++ gtk4-4.12.4+ds/debian/control	2023-12-09 01:33:26.000000000 +0000
@@ -46,8 +46,8 @@
                libpango1.0-dev (>= 1.50.0),
                libpng-dev,
                libpolkit-gobject-1-dev [linux-any],
-               librsvg2-common [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32] <!nocheck>,
-               librsvg2-dev (>= 2.52.0) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
+               librsvg2-common [amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32] <!nocheck>,
+               librsvg2-dev (>= 2.52.0) [amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
                libswresample-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
                libswscale-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
                libsysprof-capture-4-dev (>= 3.40.1) [linux-any],
@@ -266,7 +266,7 @@
          ${shlibs:Depends},
          libgtk-4-1 (= ${binary:Version})
 Recommends: fonts-cantarell,
-            librsvg2-common (>= 2.52.0) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
+            librsvg2-common (>= 2.52.0) [amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
 Description: example files for GTK 4
  GTK is a multi-platform toolkit for creating graphical user
  interfaces. Offering a complete set of widgets, GTK is suitable
@@ -281,7 +281,7 @@
 Section: x11
 Architecture: any
 Depends: iso-codes,
-         librsvg2-common (>= 2.52.0) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
+         librsvg2-common (>= 2.52.0) [amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x powerpc ppc64 riscv64 sparc64 x32],
          ${misc:Depends},
          ${shlibs:Depends},
          libgtk-4-1 (= ${binary:Version}),
diff -Nru gtk4-4.12.4+ds/debian/rules gtk4-4.12.4+ds/debian/rules
--- gtk4-4.12.4+ds/debian/rules	2023-12-09 01:33:26.000000000 +0000
+++ gtk4-4.12.4+ds/debian/rules	2023-12-09 01:33:26.000000000 +0000
@@ -196,7 +196,7 @@
 test_timeout_multiplier = 10
 endif
 
-ifneq ($(filter m68k riscv64 sh4,$(DEB_HOST_ARCH_CPU)),)
+ifneq ($(filter loong64 m68k riscv64 sh4,$(DEB_HOST_ARCH_CPU)),)
 $(info Architecture with qemu buildds detected, increasing test timeout a lot)
 test_timeout_multiplier = 20
 endif


More information about the pkg-gnome-maintainers mailing list