Subject: CVS commit: pkgsrc/pkgtools/lintpkgsrc
From: Roland Illig
Date: 2022-01-01 14:27:37
Message id: 20220101132737.E54D9FAEC@cvs.NetBSD.org

Log Message:
lintpkgsrc: fix bogus warning for devel/lua-moses

The warning was:

	Bogus: -${DISTNAME:tl:S/-1$//1}
	    (from /.../devel/lua-moses/Makefile)

Previously, lintpkgsrc searched for the package name and version by
looking for '-' followed by a digit.  This was too naive, as in the
above expression, the '-1' does not mark the beginning of the version
number.  Fix this by resorting to 'make show-vars' in all cases in which
the PKGNAME still contains a '$'.

When running 'lintpkgsrc -Dp devel/lua-moses' with a relative directory
as argument, lintpkgsrc tried 'cd /lua-moses' and ignored the failure,
running 'make show-vars' in the current directory instead, which in my
case was the top-level pkgsrc directory.

Bump version.

Files:
RevisionActionfile
1.37modifypkgsrc/pkgtools/lintpkgsrc/Makefile
1.21modifypkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl