Subject: pkg/33051: "Malformed conditional" in
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/10/2006 18:45:00
>Number:         33051
>Category:       pkg
>Synopsis:       "Malformed conditional" in
>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
When rebuilding PKGDB or INDEX, some packages include, which causes the build to fail during the making of print-summary-data for the package in question:

make: "../../mk/../../mk/" line 14: Malformed conditional ((${OPSYS} == "Linux") && exists(/dev/dsp))
bmake: "../../mk/../../mk/" line 14: Missing dependency operator
bmake: "../../mk/../../mk/" line 29: if-less endif
bmake: "../../mk/../../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?