[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#643649: dmidecode: Enable build of all targets on GNU/Hurd



Package: dmidecode
Version: 2.11-1
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

When dmidecode is on the buildd list for GNU/Hurd it will be built for
one taget: demidecode. In order to get the other targets built:
biosdecode, ownership, vpddecode the Makefile has to be changed to
something like the following patch, since uname -m gives i686-AT386 for
GNU/Hurd. kfreebsd and linux reports i686 and x86_64 for i386 and amd64
targets, so the patched Makefile should work for all arches (including
ia64).

--- dmidecode-2.11.orig/Makefile	2011-09-28 12:46:35.000000000 +0200
+++ dmidecode-2.11/Makefile	2011-09-28 12:43:50.000000000 +0200
@@ -39,7 +39,7 @@
 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





Reply to: