Merge ~liushuyu-011/ubuntu/+source/libgrokj2k:ubuntu/devel into ubuntu/+source/libgrokj2k:ubuntu/devel

Proposed by Zixing Liu
Status: Rejected
Rejected by: Andreas Hasenack
Proposed branch: ~liushuyu-011/ubuntu/+source/libgrokj2k:ubuntu/devel
Merge into: ubuntu/+source/libgrokj2k:ubuntu/devel
Diff against target: 47 lines (+18/-0)
3 files modified
debian/changelog (+7/-0)
debian/control (+1/-0)
debian/rules (+10/-0)
Reviewer Review Type Date Requested Status
Andreas Hasenack Disapprove
Review via email: mp+475563@code.launchpad.net

Description of the change

This merge proposal fixes the FTBFS issue on armhf by switching the compiler to Clang/LLVM.

PPA build: https://launchpad.net/~liushuyu-011/+archive/ubuntu/misc/+sourcepub/16579758/+listing-archive-extra

To post a comment you must log in.
Revision history for this message
Lukas Märdian (slyon) wrote :

Please note that there's an upstream fix that is supposedly fixing the armhf FTBFS:

* https://mentors.debian.net/package/libgrokj2k/
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085165

Revision history for this message
Dave Jones (waveform) wrote :

Is this still the right way forward, given the patch posted on the Debian report? Reading through that report it seems there's also a new version potentially ready for inclusion in Debian, but pending upload.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Since debian has also removed the package, and it had no delta, let's leave it be. If debian reintroduces the package, we can get it.

review: Disapprove

Unmerged commits

f04d595... by Zixing Liu

changelog

9300d6a... by Zixing Liu

d/rules: fix armhf SIMD errors by using Clang/LLVM to generate a fallback

code path for fp16 SIMD element-wise widening conversion

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index d6ae1f9..bb0f02e 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+libgrokj2k (10.0.5-1ubuntu1) plucky; urgency=medium
7+
8+ * d/rules: fix armhf SIMD errors by using Clang/LLVM to generate a fallback
9+ fp16 code path (GCC does not support this as of GCC 15).
10+
11+ -- Zixing Liu <zixing.liu@canonical.com> Mon, 21 Oct 2024 15:32:11 -0600
12+
13 libgrokj2k (10.0.5-1build5) plucky; urgency=medium
14
15 * No-change rebuild for libperl soname.
16diff --git a/debian/control b/debian/control
17index 2b69295..a38edfa 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -12,6 +12,7 @@ Build-Depends: cmake (>= 3.16.0),
21 libjpeg-dev,
22 zlib1g-dev,
23 libimage-exiftool-perl,
24+ clang [armhf],
25 Build-Depends-Indep: doxygen
26 Standards-Version: 4.6.1.0
27 Section: libs
28diff --git a/debian/rules b/debian/rules
29index 77be8b0..20a416c 100755
30--- a/debian/rules
31+++ b/debian/rules
32@@ -6,6 +6,16 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
33 # as per upstream request:
34 export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden
35
36+ifeq (armhf,$(DEB_HOST_ARCH))
37+# FP16 is an armv8.2 feature and GCC does not know how to generate fallback
38+# code for FP16 Neon AdvSIMD operations, we use clang to do that
39+ export CC=clang
40+ export CXX=clang++
41+# Downgrade DWARF version to make dwz happy
42+ export DEB_CFLAGS_MAINT_APPEND+=-gdwarf-4
43+ export DEB_CXXFLAGS_MAINT_APPEND+=-gdwarf-4
44+endif
45+
46 %:
47 dh $@
48

Subscribers

People subscribed via source and target branches

to all changes: