From affabbf14cdda08baa15e1c2848a9d04ea7a83c8 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 23 Oct 2022 02:01:22 -0400 Subject: xlint: don't allow wrksrc for void-linux/void-packages#40122 --- xlint | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xlint') diff --git a/xlint b/xlint index 61d5e9d..5c8e8e4 100755 --- a/xlint +++ b/xlint @@ -60,7 +60,6 @@ variables_order() { version=*) curr_index=3;; revision=*) curr_index=4;; archs=*) curr_index=5;; - wrksrc=*) curr_index=7;; create_wrksrc=*) curr_index=8;; build_wrksrc=*) curr_index=9;; build_style=*) curr_index=11;; @@ -269,7 +268,6 @@ system_groups tags triggers version -wrksrc xml_catalogs xml_entries" | tr '\n' '|') @@ -466,7 +464,7 @@ for argument; do scan 'distfiles=.*xorg\.freedesktop\.org/wiki/' 'use $XORG_HOME' scan 'usr/lib/python3.[0-9]/site-packages' 'use $py3_sitelib' scan 'pycompile_module=' 'do not set pycompile_module, it is autodetected' - scan '^wrksrc=(\$\{[^}]+\}|[^${}/])*/.+' 'wrksrc should be a top-level directory' + scan '^wrksrc=' 'wrksrc should not be defined' scan '^\t*function\b' 'do not use the function keyword' scan '^\t*[^ ]* *\(\)' 'do not use space before function parenthesis' scan '^\t*[^ ]*\(\)(| *){' 'use one space after function parenthesis' @@ -476,7 +474,6 @@ for argument; do pkgname_re=$(echo "$pkgname" | regex_escape) version=$(grep -Po "^version=\K.*" "$template" | once) version_re=$(echo "$version" | regex_escape) - scan '^wrksrc="?(\$\{?pkgname\}?|'$pkgname_re')-(\$\{?version\}?|'$version_re')"?$' 'unnecessary wrksrc definition' scan "distfiles=.*\Q$version_re\E" 'use ${version} in distfiles instead' scan "system_accounts=.*\b(?!($old_accounts))[a-zA-Z]" 'new accounts should be prefixed with underscore' scan "cargo update (--package|-p) [A-Za-z_][A-Za-z0-9_]*(?!\:[0-9]+\.[0-9]+\.[0-9]+)(\s.+)?$" '"cargo update" commands should include the specific version we are updating from in the --package SPEC' -- cgit 1.4.1