Subject: pkg/32924: Darwin/MacOS X -- Unknown operating system for qcad-1.5.4nb6
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jdbaker@mylinuxisp.com>
List: pkgsrc-bugs
Date: 02/24/2006 19:20:01
>Number:         32924
>Category:       pkg
>Synopsis:       Darwin/MacOS X -- Unknown operating system for qcad-1.5.4nb6
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 24 19:20:01 +0000 2006
>Originator:     John D. Baker
>Release:        MacOS X 10.4.5
>Organization:
>Environment:
Darwin ed.local 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh powerpc

>Description:
Attempting to build cad/qcad on MacOS X (any version) fails as follows:

140 [ed:pkgsrc/cad/qcad] jdbaker% bmake
===> Unknown operating system for qcad-1.5.4nb6
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/cad/qcad


qcad build just fine on MacOS X in the past.
>How-To-Repeat:
On any MacOS X or Darwin system:

cd .../cad/qcad
bmake
>Fix:
Add '|| ${OPSYS} == "Darwin"' to test for BSD-based operating systems
in package Makefile:

--- Makefile.orig       2006-02-24 13:13:34.000000000 -0600
+++ Makefile    2006-02-24 13:13:55.000000000 -0600
@@ -21,7 +21,7 @@
 QCAD_OPSYS = LINUX
 .elif ${OPSYS} == "SunOS"
 QCAD_OPSYS = SOLARIS
-.elif !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
+.elif !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
 QCAD_OPSYS = BSD
 .elif !empty(OPSYS:MIRIX)
 QCAD_OPSYS = IRIX