Subject: pkg/33043: pkgsrc mk/plist/ error
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/09/2006 15:50:00
>Number:         33043
>Category:       pkg
>Synopsis:       pkgsrc mk/plist/ error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 09 15:50:00 +0000 2006
>Originator:     Stuart Shelton

Running pkg_chk results in:

$ pkg_chk -sun
bmake: "../../mk/plist/../../mk/plist/../../mk/plist/../../mk/plist/" line 39: Malformed conditional (!empty(INFO_FILES))
bmake: "../../mk/plist/../../mk/plist/../../mk/plist/../../mk/plist/" line 43: if-less endif
bmake: "../../mk/plist/../../mk/plist/../../mk/plist/../../mk/plist/" line 43: Need an operator
bmake: Fatal errors encountered -- cannot continue
/usr/bsd/sbin/pkg_chk[9]:  bmake: stopped in /usr/bsd/src/pkgtools/pkg_chk:  not found

... as does trying to rebuild pkg_chk.

>Fix: is incorrect - Line 39 reads:

.if !empty(INFO_FILES)

... but should read:

.if defined(INFO_FILES) && !empty(INFO_FILES)

... to remove the above error.