Subject: pkg/5653: fd pkg broken on alpha
To: None <>
From: Tim Rightnour <>
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
>Originator:     Tim Rightnour
Tim Rightnour    -
>Release:        6/10/98<NetBSD-current source date>
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


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.
try to build fd on alpha
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