diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-14 22:29:53 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-14 22:29:53 -0400 |
| commit | e809cd1952ba28415697df9fc654c72051e30e86 (patch) | |
| tree | 8d5ed1436eef2afa6807f24402195238cf251672 | |
| parent | b23ceb76a8a7039bb1b04dc620a861cadb7ac799 (diff) | |
| download | sbo-maintainer-tools-e809cd1952ba28415697df9fc654c72051e30e86.tar.gz | |
sbolint: doinst.sh must not use chmod or refer to $PKG.
| -rwxr-xr-x | sbolint | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -322,6 +322,9 @@ to config() or preserve_perms() must end with a B<.new> suffix. If doinst.sh calls B<gtk-update-icon-cache>, the existence of the cache must be checked before this command is run. ++=item - ++doinst.sh must not use chmod or refer to the build-time $PKG directory. + =back =item - @@ -1823,7 +1826,11 @@ sub check_doinst { s,\s*$,,; next unless /./; - if(/^config\(\)/) { + if(/chmod/) { + log_error("$file:$lineno: doinst.sh must not use chmod; set file permissions while building the package."); + } elsif(/\$\{?PKG\}?/ || /"\$PKG"/) { + log_error("$file:$lineno: doinst.sh must not use \$PKG; package root is the current directory."); + } elsif(/^config\(\)/) { $config_defined = $lineno; } elsif(/^config\s+/) { # the [\@\$] is intended to skip stuff like $NEW, or a for loop variable, |
