Package: debhelper
Version: 12.6.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
Control: affects -1 + src:cpuinfo

cpuinfo fails to cross build from source, because it does not recognize
the CMAKE_SYSTEM_PROCESSOR when building for 32bit arms. debhelper
passes the value "arm" for armel and armhf. cpuinfo expects some
"armv[5-8].*" there. During native builds, we get the value "armv7l"
there. debhelper should pass exactly that value. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru debhelper-12.6.1/debian/changelog 
debhelper-12.6.1+nmu1/debian/changelog
--- debhelper-12.6.1/debian/changelog   2019-09-15 12:08:53.000000000 +0200
+++ debhelper-12.6.1+nmu1/debian/changelog      2019-09-27 06:12:45.000000000 
+0200
@@ -1,3 +1,11 @@
+debhelper (12.6.1+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * cmake buildsystem: Fix CMAKE_SYSTEM_PROCESSOR for 32bit arms. (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 27 Sep 2019 06:12:45 +0200
+
 debhelper (12.6.1) unstable; urgency=medium
 
   * Upload to unstable now that libdebhelper-perl has been through
diff --minimal -Nru debhelper-12.6.1/lib/Debian/Debhelper/Buildsystem/cmake.pm 
debhelper-12.6.1+nmu1/lib/Debian/Debhelper/Buildsystem/cmake.pm
--- debhelper-12.6.1/lib/Debian/Debhelper/Buildsystem/cmake.pm  2019-08-15 
10:35:44.000000000 +0200
+++ debhelper-12.6.1+nmu1/lib/Debian/Debhelper/Buildsystem/cmake.pm     
2019-09-27 06:12:43.000000000 +0200
@@ -27,6 +27,7 @@
 );
 
 my %GNU_CPU2SYSTEM_PROCESSOR = (
+       'arm'         => 'armv7l',
        'mips64el'    => 'mips64',
        'powerpc64le' => 'ppc64le',
 );

Reply via email to