Summary: | ports-mgmt/portlint: PORTVERSION check busted for versions like g20220630+2022.04 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Robert Clausecker <fuz> |
Component: | Individual Port(s) | Assignee: | Joe Marcus Clarke <marcus> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(marcus) |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Robert Clausecker
2022-07-21 20:36:09 UTC
Added to my private git repo pending the next release. Committed, thanks! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9800743f0178a43313a7248f7ef2bcabfacef23d commit 9800743f0178a43313a7248f7ef2bcabfacef23d Author: Joe Marcus Clarke <marcus@FreeBSD.org> AuthorDate: 2022-09-07 17:21:52 +0000 Commit: Joe Marcus Clarke <marcus@FreeBSD.org> CommitDate: 2022-09-07 17:24:21 +0000 ports-mgmt/portlint: Update to 2.19.13 * Allow for a plus ('+') in other places in a PORTVERSION [1] * Check for .dkestop file installation [2] * Support the new Makefile WWW macro [3] PR: 265364 [1] 265551 [2] 266068 [3] Submitted by: Robert Clausecker [1] se [3] ports-mgmt/portlint/Makefile | 2 +- ports-mgmt/portlint/src/portlint.pl | 71 +++++++++++++++++++++++++++---------- 2 files changed, 53 insertions(+), 20 deletions(-) The check is still kind of weird. Instead of the $portversion =~ /^[0-9]*[A-Za-z]?[0-9]*([.+][0-9]*[A-Za-z]?[0-9]*)*$/ I recommended, it now reads $portversion =~ /^[0-9]*[A-Za-z]?[0-9]*([.+][0-9]*[A-Za-z]?[0-9+]*)*$/ i.e. there is an extra + in [0-9]+. While this does not change the set of accepted versions, it should perhaps be looked into to make the regex less confusing. |