summaryrefslogtreecommitdiff
path: root/debian/patches/0001-hurd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-hurd.patch')
-rw-r--r--debian/patches/0001-hurd.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/0001-hurd.patch b/debian/patches/0001-hurd.patch
new file mode 100644
index 0000000..8f26387
--- /dev/null
+++ b/debian/patches/0001-hurd.patch
@@ -0,0 +1,16 @@
+Author: Svante Signell <svante.signell@telia.com>
+Description: Enable build of all targets on GNU/Hurd (Closes: #643649).
+
+Index: trunk/Makefile
+===================================================================
+--- trunk.orig/Makefile
++++ trunk/Makefile
+@@ -44,7 +44,7 @@ INSTALL_PROGRAM := $(INSTALL) -m 755
+ RM := rm -f
+
+ # BSD make provides $MACHINE, but GNU make doesn't
+-MACHINE ?= $(shell uname -m 2>/dev/null)
++MACHINE ?= $(shell uname -m 2>/dev/null | cut - -d- -f 1)
+
+ # These programs are only useful on x86
+ PROGRAMS-i386 := biosdecode ownership vpddecode