Subject: pkg/5653: fd pkg broken on alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 06/25/1998 04:28:01
>Number: 5653
>Category: pkg
>Synopsis: fd pkg broken on alpha
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 25 04:20:00 1998
>Last-Modified:
>Originator: Tim Rightnour
>Organization:
Tim Rightnour - root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release: 6/10/98<NetBSD-current source date>
>Environment:
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386
>Description:
Try to build fd pkg, noticed it defines OSTYPE twice in machine.h. Noticed
it does a nasty trick involving an __alpha check followed by !linux.
Then it ends up thinking we are running OSF1.
>How-To-Repeat:
try to build fd on alpha
>Fix:
The real fix would involve knowing the CPP predefine for OSF1.. But I
haven't a clue.
--- machine.h.orig Thu Jun 25 04:11:06 1998
+++ machine.h Thu Jun 25 04:11:26 1998
@@ -162,3 +162,3 @@
-#if (defined (__alpha) || defined (alpha)) && !defined(linux)
+#if (defined (__alpha) || defined (alpha)) && !defined(linux) && !defined(__NetBSD__)
#define CODEEUC
>Audit-Trail:
>Unformatted: