Package: hardinfo
Version: 0.5.1-1.4
Tags: patch
Usertags: origin-ubuntu ubuntu-patch vivid
dh_clean
dpkg-buildpackage: warning: debian/rules must be updated to support the
'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be
missing)
debian/rules build
dh_testdir
./configure
ToscoConf (version 0.04) for hardinfo version 0.5.1
Determining system architecture.
Your architecture is not supported yet. Please send the
output of the following commands to lean...@hardinfo.org:
$ cat /proc/cpuinfo
$ uname -a
$ uname -m
make: *** [configure-stamp] Error 1
debian/rules:24: recipe for target 'configure-stamp' failed
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/aarch64.diff, debian/rules:
- Build for AArch64, using the ARM configuration. Fixes FTBFS on
arm64.
We thought you might be interested in doing the same.
diff -u hardinfo-0.5.1/debian/rules hardinfo-0.5.1/debian/rules
--- hardinfo-0.5.1/debian/rules
+++ hardinfo-0.5.1/debian/rules
@@ -22,6 +22,7 @@
configure: configure-stamp
configure-stamp:
dh_testdir
+ ln -sf armv4l arch/linux/aarch64
./configure
touch configure-stamp
@@ -39,6 +40,7 @@
clean:
dh_testdir
dh_testroot
+ rm -f arch/linux/aarch64
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
only in patch2:
unchanged:
--- hardinfo-0.5.1.orig/debian/patches/aarch64.diff
+++ hardinfo-0.5.1/debian/patches/aarch64.diff
@@ -0,0 +1,14 @@
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -66,6 +66,9 @@
+ sparc*)
+ ln -sf linux/sparc arch/this
+ ARCH="ARCH_SPARC" ;;
++ aarch64*)
++ ln -sf linux/aarch64 arch/this
++ ARCH="ARCH_AARCH64" ;;
+ armv*)
+ ln -sf linux/armv4l arch/this
+ ARCH="ARCH_ARMV4L" ;;