Bug#431346: kdesdk: wrongly assume that triplet ends with -gnu on glibc based systems
Package: kdesdk
Version: 3.5.7-2
Severity: important
Tags: patch
The configure scripts of kdesdk try to detect a glibc system by checking
if the triplet ends with -gnu. This is wrong on armel (ARM eabi),
as well as on mips n32 and mips64.
This make the package FTBFS on those system as kmtrace is not built.
Please find a patch below to fix that.
--- kdesdk-3.5.7.orig/debian/patches/07_armel.diff
+++ kdesdk-3.5.7/debian/patches/07_armel.diff
@@ -0,0 +1,37 @@
+--- kdesdk-3.5.7.orig/configure.in
++++ kdesdk-3.5.7/configure.in
+@@ -423,7 +423,7 @@
+ dnl AC_OUTPUT( kmtrace/kminspector )
+
+ case "$host" in
+- *-gnu)
++ *-gnu*)
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS -Wl,-Bstatic -liberty -Wl,-Bdynamic"
+ AC_TRY_LINK([], [], [kde_compile_kmtrace=$GCC], [kde_compile_kmtrace=no])
+only in patch2:
+unchanged:
+--- kdesdk-3.5.7.orig/kmtrace/configure.in.in
++++ kdesdk-3.5.7/kmtrace/configure.in.in
+@@ -1,7 +1,7 @@
+ dnl AC_OUTPUT( kmtrace/kminspector )
+
+ case "$host" in
+- *-gnu)
++ *-gnu*)
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS -Wl,-Bstatic -liberty -Wl,-Bdynamic"
+ AC_TRY_LINK([], [], [kde_compile_kmtrace=$GCC], [kde_compile_kmtrace=no])
+only in patch2:
+unchanged:
+--- kdesdk-3.5.7.orig/configure
++++ kdesdk-3.5.7/configure
+@@ -37844,7 +37844,7 @@
+
+
+ case "$host" in
+- *-gnu)
++ *-gnu*)
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS -Wl,-Bstatic -liberty -Wl,-Bdynamic"
+ cat >conftest.$ac_ext <<_ACEOF
-- System Information:
Debian Release: lenny/sid
Architecture: armel (armv5tejl)
Kernel: Linux 2.6.18-4-versatile
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: