Subject: Re: pkg/36863: mk/emulator/netbsd-compat.mk syntax problem on NetBSD 3 ?
To: None <gnats-bugs@NetBSD.org>
From: Johnny C. Lam <jlam@pkgsrc.org>
List: pkgsrc-bugs
Date: 08/30/2007 16:29:55
On Thu, Aug 30, 2007 at 09:50:00AM +0000, kre@munnari.OZ.AU wrote:
> >Description:
> 	Recent changes to the netbsd-compat stuff (and EMUL_DIST maybe)
> 	have resulted in lintpkgsrc (on a NetBSD 3.0 system)
> 	generating messages like ...
> 
> /usr/pkgsrc/emulators/compat12/Makefile: Cannot locate /usr/pkgsrc/emulators/${DISTNAME:C/-.*//}/emulator.mk in . /usr/pkgsrc/emulators/compat12 /usr/pkgsrc/emulators/compat_netbsd
> 
> 	Each of the emulators/compat* packages is doing that.
> 
> >How-To-Repeat:
> 	Try lintpkgsrc -p on a NetBSD 3.0 sysyem (I'm using pkg_comp
> 	with libkver and the original 3.0 sets installed to simulate that)
> 	and just watch.
> 
> >Fix:
> 	?
> 
> 	Random guess is that perhaps something is relying upon some
> 	make behaviour that didn't exist (or work) in NetBSD 3.0

No, the bug is actually in lintpkgsrc, which has its own makefile
parser.  I'm loath to change compat_netbsd/Makefile.common just to
satisfy lintpkgsrc or pkglint (actually, I'm not even sure how to
rewrite that line so that lintpkgsrc or pkglint can understand it).
I did it once for the suse32_* packages already, but I wasn't happy
about doing it then, either.

I think this PR should be assigned to the pkglint maintainers.

	Cheers,

	-- Johnny Lam <jlam@pkgsrc.org>