Package: ne10
Version: 1.2.1-3
Severity: serious
Tags: patch
Justification: fails to build from source

As per
https://buildd.debian.org/status/fetch.php?pkg=ne10&arch=armhf&ver=1.2.1-3&stamp=1478897528&raw=0
the build of ne10 fails on armhf. This is because it detects the build
environment as targetting aarch64. From the log:
  -- Target architecture : aarch64

Attached is the debdiff from a derivative we hvae which fixes the issue.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'proposed-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 4.18.0-rc4-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru ne10-1.2.1/debian/changelog ne10-1.2.1/debian/changelog
--- ne10-1.2.1/debian/changelog 2016-10-18 19:01:22.000000000 +0200
+++ ne10-1.2.1/debian/changelog 2018-08-10 12:26:58.000000000 +0200
@@ -1,3 +1,9 @@
+ne10 (1.2.1-3co1) apertis; urgency=medium
+
+  * Fix build on armhf
+
+ -- Sjoerd Simons <sjo...@debian.org>  Fri, 10 Aug 2018 12:26:58 +0200
+
 ne10 (1.2.1-3) unstable; urgency=medium
 
   * Update copyright file for modules/*
diff -Nru ne10-1.2.1/debian/rules ne10-1.2.1/debian/rules
--- ne10-1.2.1/debian/rules     2016-10-12 19:35:53.000000000 +0200
+++ ne10-1.2.1/debian/rules     2018-08-10 12:26:57.000000000 +0200
@@ -13,12 +13,19 @@
 # package maintainers to append LDFLAGS
 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+ifeq ($(DEB_TARGET_GNU_CPU),arm)
+       NE10_LINUX_TARGET_ARCH = armv7
+else
+       NE10_LINUX_TARGET_ARCH = ${DEB_TARGET_GNU_CPU}
+endif
+
 %:
        dh $@ 
 
 override_dh_auto_configure:
+       
        dh_auto_configure -- \
-       -DNE10_LINUX_TARGET_ARCH=$(DEB_TARGET_GNU_CPU) \
+       -DNE10_LINUX_TARGET_ARCH=$(NE10_LINUX_TARGET_ARCH) \
        -DGNULINUX_PLATFORM=ON \
        -DNE10_BUILD_SHARED=ON
 

Reply via email to