NetBSD Problem Report #46001

From www@NetBSD.org  Sun Feb 12 11:48:56 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 7A8F263E028
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Feb 2012 11:48:56 +0000 (UTC)
Message-Id: <20120212114855.CCBF363B86B@www.NetBSD.org>
Date: Sun, 12 Feb 2012 11:48:55 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: Use the correct MACHINE_ARCH for amd64.
X-Send-Pr-Version: www-1.0

>Number:         46001
>Category:       lib
>Synopsis:       Use the correct MACHINE_ARCH for amd64.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 11:50:01 +0000 2012
>Closed-Date:    Mon Feb 13 12:53:16 +0000 2012
>Last-Modified:  Mon Feb 13 12:55:01 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Use the correct MACHINE_ARCH for amd64.
Remove hack also.
>How-To-Repeat:

>Fix:
diff -u -p -r1.5 Makefile
--- external/cddl/osnet/lib/libdtrace/Makefile	3 Apr 2010 18:34:19 -0000	1.5
+++ external/cddl/osnet/lib/libdtrace/Makefile	5 Feb 2012 11:42:00 -0000
@@ -82,13 +82,10 @@ COPTS.dt_program.c	+= -Wno-stack-protect
 COPTS.dt_provider.c	+= -Wno-stack-protector
 COPTS.dt_subr.c		+= -Wno-stack-protector

-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 
 CPPFLAGS+=	-I${OPENSOLARIS_SYS_DISTDIR}/uts/intel
 .elif ${MACHINE_ARCH} == "sparc64"
 CPPFLAGS+=	-I${OPENSOLARIS_SYS_DISTDIR}/uts/sparc
-.else
-# temporary hack
-CPPFLAGS+=	-I${OPENSOLARIS_SYS_DISTDIR}/uts/intel
 .endif

 LFLAGS+=-l

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 13 Feb 2012 12:53:16 +0000
State-Changed-Why:
Committed, thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46001 CVS commit: src/external/cddl/osnet/lib/libdtrace
Date: Mon, 13 Feb 2012 12:52:54 +0000

 Module Name:	src
 Committed By:	wiz
 Date:		Mon Feb 13 12:52:54 UTC 2012

 Modified Files:
 	src/external/cddl/osnet/lib/libdtrace: Makefile

 Log Message:
 Use the correct MACHINE_ARCH for amd64.
 Remove temporary hack while here.
 From Henning Petersen in PR 46001.


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/lib/libdtrace/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.