[neon/extras/kstars/Neon/release] debian: use clang on mipsel for now

Pino Toscano null at kde.org
Tue Nov 1 11:10:31 GMT 2022


Git commit 21dbe1e7345760233fb5363303095f5e4d6aeb3a by Pino Toscano.
Committed on 11/10/2021 at 14:33.
Pushed by jriddell into branch 'Neon/release'.

use clang on mipsel for now

M  +6    -0    debian/changelog
M  +1    -0    debian/control
M  +9    -0    debian/rules

https://invent.kde.org/neon/extras/kstars/commit/21dbe1e7345760233fb5363303095f5e4d6aeb3a

diff --git a/debian/changelog b/debian/changelog
index bbc8b2c..47ed90e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,11 @@
 kstars (5:3.5.5-2) UNRELEASED; urgency=medium
 
+  [ Pino Toscano ]
+  * Build using clang on mipsel, to workaround a GCC bug:
+    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602
+    - add the clang build dependency
+    - point CC & CXX to clang
+    - restore explicit as-needed linking, as it seems needed when using clang
 
  -- Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Mon, 11 Oct 2021 14:46:35 +0200
 
diff --git a/debian/control b/debian/control
index 247b153..7d70a05 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
 Uploaders: Pino Toscano <pino at debian.org>, Maximiliano Curia <maxy at debian.org>
 Build-Depends: cmake (>= 3.10.0~),
+               clang [mipsel],
                debhelper-compat (= 13),
                extra-cmake-modules (>= 5.44.0~),
                gettext,
diff --git a/debian/rules b/debian/rules
index 85e9718..96b0dd1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,14 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
+archs_using_clang = mipsel
+ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(archs_using_clang)))
+export CC=clang
+export CXX=clang++
+export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
+endif
+
 %:
 	dh $@ --with kf5
 



More information about the Neon-commits mailing list