On 17/12/2020 16:28, Roland Illig wrote:
On 17.12.2020 10:56, Ottavio Caruso wrote:[chroot]root@e130:~/cvs/pkgsrc/current/pkgsrc# lintpkgsrc -K /root/pkgsrc/packages/ -M /root/pkgsrc/distfiles/ -opr ... Bogus: PKGREVISION ${_GIT_PKGVERSION:S/.//g} (from /root/cvs/pkgsrc/current/pkgsrc/wip/8cc-git/Makefile)I just released lintpkgsrc 4.96, which does not complain about _CVS_PKGVERSION, _GIT_PKGVERSION, _HG_PKGVERSION and _SVN_PKGVERSION anymore. The files from the pkgsrc-wip infrastructure should not have defined PKGREVISION in the first place, but that's an entirely different issue.Bogus: ${DISTNAME:tl:S/-v//} (from /root/cvs/pkgsrc/current/pkgsrc/wip/pike/Makefile)Lintpkgsrc just doesn't use the right strategy for extracting the PKGNAME, DISTNAME, DISTFILES and PKGREVISION. Instead of trying to parse the Makefiles itself, it should rather do so only for the most trivial cases, falling back to running "bmake show-vars" if it is unsure, even if this means that determining the variables is slower. Roland
This is the output after updating lintpkgsrc:[chroot]root@e130:~/cvs/pkgsrc/current/pkgsrc# lintpkgsrc -K /root/pkgsrc/packages/ -M /root/pkgsrc/distfiles/ -opr
Scan distinfo: .......................................... (21299 packages) Unlinking 'bad' distfiles Scan Makefiles: ..........________________________________Bogus: -${DISTNAME:tl:S/-1$//1} (from /root/cvs/pkgsrc/current/pkgsrc/devel/lua-moses/Makefile) ............................Cannot extract arachne-pnr-e97e35c version (/root/cvs/pkgsrc/current/pkgsrc/wip/arachne-pnr-git/Makefile) Cannot extract avp-git version (/root/cvs/pkgsrc/current/pkgsrc/wip/avp/Makefile) Cannot extract axpbox-main version (/root/cvs/pkgsrc/current/pkgsrc/wip/axpbox-git/Makefile) Cannot extract barrier-v2.1.1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/barrier/Makefile) Cannot extract brisk-menu-v0.6.2 version (/root/cvs/pkgsrc/current/pkgsrc/wip/briskmenu/Makefile) Cannot extract cargo-audit-v0.7.0 version (/root/cvs/pkgsrc/current/pkgsrc/wip/cargo-audit/Makefile) Cannot extract cfiles-v1.3 version (/root/cvs/pkgsrc/current/pkgsrc/wip/cfiles/Makefile)
Bogus: ${GITHUB_PROJECT:tl}-9.5.2 (from /root/cvs/pkgsrc/current/pkgsrc/wip/chezscheme/Makefile) Cannot extract cockroach-v20.2.2 version (/root/cvs/pkgsrc/current/pkgsrc/wip/cockroach/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/despotify-svn/Makefile) Cannot extract dlt-viewer-v2.18.0 version (/root/cvs/pkgsrc/current/pkgsrc/wip/dlt-viewer/Makefile)
Bogus: PKGREVISION RC-1 (from /root/cvs/pkgsrc/current/pkgsrc/wip/dogecoin/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/doomlegacy-devel/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/dosbox-svn/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/flam3-svn/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/fricas-svn/Makefile) Cannot extract go-junit-report-af01ea7f8024089b458d804d5cdf190f962a9a0cnb7 version (/root/cvs/pkgsrc/current/pkgsrc/wip/go-junit-report/Makefile) Cannot extract go-paths-helper-c3c98d1bf2e1069f60ab84bff3a2eb3c5422f3b0nb7 version (/root/cvs/pkgsrc/current/pkgsrc/wip/go-paths-helper/Makefile) Cannot extract go-properties-map-ad37f0cfeff29fadeabe6b2f7f852d8db1fb5c41nb7 version (/root/cvs/pkgsrc/current/pkgsrc/wip/go-properties-map/Makefile)
Bogus: gst-plugins1-${GITHUB_PROJECT:tl}-0.3.0 (from /root/cvs/pkgsrc/current/pkgsrc/wip/gst-plugins1-svt-vp9/Makefile) Cannot extract i2pd-git-ce8d701ecb92be1563681ec9ce98a9e4d02041fd version (/root/cvs/pkgsrc/current/pkgsrc/wip/i2pd-git/Makefile) Cannot extract java-protobuf- version (/root/cvs/pkgsrc/current/pkgsrc/wip/java-protobuf/Makefile) Cannot extract libreofficenb2 version (/root/cvs/pkgsrc/current/pkgsrc/wip/libreoffice-git/Makefile) Cannot extract linux-ukbgene version (/root/cvs/pkgsrc/current/pkgsrc/wip/linux-ukbgene/Makefile) Cannot extract logfmon version (/root/cvs/pkgsrc/current/pkgsrc/wip/logfmon-git/Makefile) Cannot extract microbiomeutil-r20110519 version (/root/cvs/pkgsrc/current/pkgsrc/wip/microbiomeutil/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/mpg123-svn/Makefile) Cannot extract mpg123- version (/root/cvs/pkgsrc/current/pkgsrc/wip/mpg123-svn/Makefile) Cannot extract NBlood-current version (/root/cvs/pkgsrc/current/pkgsrc/wip/nblood/Makefile)
Bogus: PKGREVISION ${ -u +'%Y%m%d':L:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/objfw-fossil/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/openaxiom-svn/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/p5-xmlsig-svn/Makefile) Cannot extract p6-Grammar-Profiler-Simple-c0aca5fab323b2974821dabd6b89330c609e0b7dnb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-Grammar-Profiler-Simple/Makefile) Cannot extract p6-Pod-To-HTML-c5847eab0a1b7c39133c1ef7c93fc80b8a0cd792nb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-Pod-To-HTML/Makefile) Cannot extract p6-Terminal-ANSIColor-bb68d51182235b390277e47da1dbedf745abd163nb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-Terminal-ANSIColor/Makefile) Cannot extract p6-json-f6fe07850504e06a9422adb246e4326251004ad8nb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-json/Makefile) Cannot extract p6-oo-monitors-b9de07c277f0a9fa805bb18113788228f6acfd3bnb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-oo-monitors/Makefile) Cannot extract p6-svg-f7117f484c713ec5d84f5662ac87909bca5dfe5dnb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-svg/Makefile) Cannot extract p6-svg-plot-f867cbfe31fd3aadb5830f2acd433c2d8a1de6dfnb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-svg-plot/Makefile) Cannot extract p6-test-mock-b28dd4f3410ff1298649ea3ccb4efac0f77ab71bnb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-test-mock/Makefile) Cannot extract p6-uri-bac75821337a2142c0f364a5deefc5ecbddd8ee4nb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/p6-uri/Makefile) Cannot extract v1.0nb1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/pcsx2/Makefile) Cannot extract peercoin-master version (/root/cvs/pkgsrc/current/pkgsrc/wip/peercoin/Makefile)
Bogus: ${DISTNAME:tl:S/-v//} (from /root/cvs/pkgsrc/current/pkgsrc/wip/pike/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/pilemc-svn/Makefile) Cannot extract py-dependenpy-v0.2-beta version (/root/cvs/pkgsrc/current/pkgsrc/wip/py-dependenpy/Makefile) Cannot extract py-gem-v0.1.11 version (/root/cvs/pkgsrc/current/pkgsrc/wip/py-gem/Makefile) Cannot extract py- version (/root/cvs/pkgsrc/current/pkgsrc/wip/py-libtorrent-rasterbar/Makefile) Cannot extract q2pro20190305 version (/root/cvs/pkgsrc/current/pkgsrc/wip/q2pro/Makefile) Cannot extract qfusion-abd44fe98b9f7223c2070188b8aa56ea6f106d73 version (/root/cvs/pkgsrc/current/pkgsrc/wip/qfusion/Makefile) Cannot extract Another-World-Bytecode-Interpreter version (/root/cvs/pkgsrc/current/pkgsrc/wip/raw/Makefile) Cannot extract rust-bindgen-v0.50.0 version (/root/cvs/pkgsrc/current/pkgsrc/wip/rust-bindgen/Makefile)
/root/cvs/pkgsrc/current/pkgsrc/wip/scummvm-git/Makefile: /bin/date: 1608166942: No such file or directory bmake: "/root/cvs/pkgsrc/current/pkgsrc/wip/scummvm-git/Makefile" line 29: warning: "/bin/date -r 1608166942 +%Y%m%d" returned non-zero status Cannot extract scummvm- version (/root/cvs/pkgsrc/current/pkgsrc/wip/scummvm-git/Makefile) Cannot extract self version (/root/cvs/pkgsrc/current/pkgsrc/wip/self-git/Makefile) Cannot extract shellinabox-v2.20nb3 version (/root/cvs/pkgsrc/current/pkgsrc/wip/shellinabox/Makefile) Cannot extract simgrid-v3_13 version (/root/cvs/pkgsrc/current/pkgsrc/wip/simgrid/Makefile)
Bogus: ${GITHUB_PROJECT:tl}-0.3.0 (from /root/cvs/pkgsrc/current/pkgsrc/wip/svt-vp9/Makefile)
Bogus: PKGREVISION ${ -u +'%Y%m%d':L:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/tcl-fossil/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/tesseract-game-svn/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/trac-plugins-Paste/Makefile) Cannot extract twemproxy-v0.4.1 version (/root/cvs/pkgsrc/current/pkgsrc/wip/twemproxy/Makefile)
Bogus: unit-php${PHP_VERSION:R:S|.||g}-1.21.0 (from /root/cvs/pkgsrc/current/pkgsrc/wip/unit-php/Makefile)
Bogus: PKGREVISION ${_SVN_PKGREVISION_CMD:sh} (from /root/cvs/pkgsrc/current/pkgsrc/wip/virtualbox-svn/Makefile)
Bogus: ${GITHUB_PROJECT:tl}-1.1.126.0 (from /root/cvs/pkgsrc/current/pkgsrc/wip/vulkan-headers/Makefile)
Bogus: ${GITHUB_PROJECT:tl}-1.1.126.0 (from /root/cvs/pkgsrc/current/pkgsrc/wip/vulkan-loader/Makefile) Cannot extract version (/root/cvs/pkgsrc/current/pkgsrc/wip/xchat2-tcl/Makefile) Cannot extract yosys-a44cc7a version (/root/cvs/pkgsrc/current/pkgsrc/wip/yosys/Makefile)
22809 packages /root/pkgsrc/packages/All/lintpkgsrc-4.95nb1.tgz Unlinking listed prebuilt packages [chroot]root@e130:~/cvs/pkgsrc/current/pkgsrc# -- Ottavio Caruso