Subject: pkg/33051: "Malformed conditional" in oss.buildlink3.mk
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: pkgsrc-bugs
Date: 03/10/2006 18:45:00
>Number:         33051
>Category:       pkg
>Synopsis:       "Malformed conditional" in oss.buildlink3.mk
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 10 18:45:00 +0000 2006
>Originator:     Stuart Shelton
>Release:        
>Organization:
>Environment:
>Description:
When rebuilding PKGDB or INDEX, some packages include oss.buildlink3.mk, which causes the build to fail during the making of print-summary-data for the package in question:

make: "../../mk/../../mk/oss.buildlink3.mk" line 14: Malformed conditional ((${OPSYS} == "Linux") && exists(/dev/dsp))
bmake: "../../mk/../../mk/oss.buildlink3.mk" line 14: Missing dependency operator
bmake: "../../mk/../../mk/oss.buildlink3.mk" line 29: if-less endif
bmake: "../../mk/../../mk/oss.buildlink3.mk" line 29: Need an operator
bmake: Fatal errors encountered -- cannot continue

... so the ".if (${OPSYS} == "Linux") && exists(/dev/dsp)" line seems to be at fault.  Is an additional check required to see whether $OPSYS (and possibly $OSS_BUILDLINK3_MK too) are actually defined?

>How-To-Repeat:

>Fix: