Subject: pkg/29264: sysutils/dmidecode Makefile fix for x86_64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: pkgsrc-bugs
Date: 02/07/2005 12:39:00
>Number:         29264
>Category:       pkg
>Synopsis:       sysutils/dmidecode Makefile fix for x86_64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 07 12:39:00 +0000 2005
>Originator:     Nicolas Joly
>Release:        NetBSD 2.99.15
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 2.99.15 NetBSD 2.99.15 (LANFEUST) #0: Mon Feb 7 10:16:01 CET 2005 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
There is a typo in sysutils/dmidecode/Makefile, that prevent building it
on x86_64.

njoly@lanfeust [sysutils/dmidecode]> make
===> dmidecode-2.5 is not available for NetBSD-2.99.15-x86_64

The `ONLY_FOR_PLATFORM' variable use `*-*-x86' instead of `*-*-x86_64'.

>How-To-Repeat:
cd pkgsrc/sysutils/dmidecode && make
>Fix:
With the following patch, this apllication compile/works fine on all my
NetBSD/amd64 boxes.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/dmidecode/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	12 Jan 2005 00:00:36 -0000	1.1.1.1
+++ Makefile	7 Feb 2005 10:45:48 -0000
@@ -10,6 +10,6 @@
 COMMENT=	Print out DMI (SMBIOS) table in human-readable format
 
 NO_BUILDLINK=	YES
-ONLY_FOR_PLATFORM=	*-*-i386 *-*-x86
+ONLY_FOR_PLATFORM=	*-*-i386 *-*-x86_64
 
 .include "../../mk/bsd.pkg.mk"