Package: liburcu
Version: 0.8.4-2.1
Severity: serious

If your package is built on a system with an armv7 processor it builds for armv7. Since debian armel targets armv4t but is now built on armv7 hardware this is a major prboem. It's also a problem for rasbian.

Also I notice the flags are selecting coretex-a9 specficially rather than a generic armv7-a. I don't know if that is a problem on debian armhf or not (that is I don't know if there are any instructions specific to that core that are not available more generally)

The attatched patch disables the offending flags completely. It has been uploaded to raspbian, no intent to nmu in Debian.
diff -Nru liburcu-0.8.4/debian/changelog liburcu-0.8.4/debian/changelog
--- liburcu-0.8.4/debian/changelog      2014-05-23 07:35:08.000000000 +0000
+++ liburcu-0.8.4/debian/changelog      2014-05-28 08:35:38.000000000 +0000
@@ -1,3 +1,9 @@
+liburcu (0.8.4-2.1+rpi1) jessie-staging; urgency=low
+
+  * Disable use of armv7 options in configure.ac
+
+ -- Peter Michael Green <[email protected]>  Mon, 23 Sep 2013 17:10:40 
+0000
+
 liburcu (0.8.4-2.1) unstable; urgency=high
 
   * Non-maintainer upload
diff -Nru liburcu-0.8.4/debian/patches/no-armv7-flags.patch 
liburcu-0.8.4/debian/patches/no-armv7-flags.patch
--- liburcu-0.8.4/debian/patches/no-armv7-flags.patch   1970-01-01 
00:00:00.000000000 +0000
+++ liburcu-0.8.4/debian/patches/no-armv7-flags.patch   2014-05-28 
08:36:57.000000000 +0000
@@ -0,0 +1,24 @@
+Description: Don't pass armv7 options
+ The configure script detects the cpu of the build system and if it is armv7
+ proceeds to  pass armv7 options to the compiler thus causing use of 
+ inappropriate options when an armv7 machine is used to build packages for
+ a port targetting a lower arm CPU. This patch disables that behavious
+Author: Peter Michael Green <[email protected]>
+
+Index: liburcu-0.8.4/configure.ac
+===================================================================
+--- liburcu-0.8.4.orig/configure.ac    2014-05-28 08:36:49.000000000 +0000
++++ liburcu-0.8.4/configure.ac 2014-05-28 08:36:49.000000000 +0000
+@@ -92,9 +92,9 @@
+       AC_DEFINE([CONFIG_RCU_COMPAT_ARCH], [1])
+ ])
+ 
+-AS_IF([test "$host_cpu" = "armv7l"],[
+-      CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
+-])
++#AS_IF([test "$host_cpu" = "armv7l"],[
++#     CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
++#])
+ 
+ # ARM-specific checks
+ AS_IF([test "x$ARCHTYPE" = "xarm"],[
diff -Nru liburcu-0.8.4/debian/patches/series 
liburcu-0.8.4/debian/patches/series
--- liburcu-0.8.4/debian/patches/series 2014-05-23 07:35:08.000000000 +0000
+++ liburcu-0.8.4/debian/patches/series 2014-05-28 08:35:38.000000000 +0000
@@ -1 +1,2 @@
 ignore-gcc-check.patch
+no-armv7-flags.patch

Reply via email to