pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lintpkgsrc -i problem with cargo-c



Am 22.07.2023 um 11:13 schrieb Marc Baudoin:
> Hi,
>
> devel/cargo-c has recently been added as a dependency on my
> NetBSD/amd64 9.3 system and lintpkgsrc -i has a problem with it:
>
> % lintpkgsrc -i
> Scan Makefiles: 19340 packages
> Unknown package: 'cargo-c' version 0.9.22

Running 'lintpkgsrc -D .' in devel/cargo-c shows:

> DEBUG: ./Makefile: substitutelist PKGNAME (cargo-c-0.9.22+cargo-0.72) DISTNAME (C/\\+cargo-[[ digit ]\.]*//)
> DEBUG: expanding modifier 'C/\\+cargo-[['
> DEBUG: ./Makefile: variable 'PKGNAME' has unknown modifier 'C/\\+cargo-[['
> DEBUG: expanding modifier 'digit'
> DEBUG: ./Makefile: variable 'PKGNAME' has unknown modifier 'digit'
> DEBUG: expanding modifier ']\.]*//'
> DEBUG: ./Makefile: variable 'PKGNAME' has unknown modifier ']\.]*//'
> DEBUG: ./Makefile: PKGNAME=cargo-c-0.9.22+cargo-0.72
> DEBUG: ./Makefile: DISTNAME=cargo-c-0.9.22+cargo-0.72

Lintpkgsrc parses the ':C' modifier in a wrong way and then doesn't
decide to fall back to running 'make -v PKGNAME' to get the correct
package name and version.

It then ends up with the wrong PKGNAME, but still, it should be able to
split this wrong PKGNAME into PKGBASE and PKGVERSION and then complain
about a 'Version mismatch' instead of an 'Unknown package'.

When you investigate this problem, running 'lintpkgsrc -D .' should be
sufficient to narrow down and then fix this bug.

Roland



Home | Main Index | Thread Index | Old Index