aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-02 05:24:00 -0400
committerB. Watson <urchlay@slackware.uk>2023-06-02 05:24:00 -0400
commit1f3942d90c4a02a1664fee1d72f9f2e2de527f75 (patch)
tree02ba6c39491a28272aaf49504cd43016ef6b5242
parent254f6d6ad88ea246b7a3cbd66f0aa6f5d3ff99ff (diff)
downloadsbo-maintainer-tools-1f3942d90c4a02a1664fee1d72f9f2e2de527f75.tar.gz
sbopkglint: exempt kernel modules from hardcoded $TMP test.
-rw-r--r--sbopkglint.d/70-tmp_path.t.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbopkglint.d/70-tmp_path.t.sh b/sbopkglint.d/70-tmp_path.t.sh
index 9d1f090..4bf9218 100644
--- a/sbopkglint.d/70-tmp_path.t.sh
+++ b/sbopkglint.d/70-tmp_path.t.sh
@@ -8,8 +8,10 @@
#######################################################################
# checks for /tmp/SBo (or the environment TMP) hardcoded in files.
# don't check the SlackBuild in the doc dir, since it's guaranteed to match.
+# also don't check kernel modules (they include the full path to the source,
+# for debug messages).
-found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | xargs fgrep -l "$TMP")"
+found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | grep -v '^\./lib/modules/' | xargs fgrep -l "$TMP")"
if [ -n "$found" ]; then
warn "found files with TMP ($TMP) baked in:"
echo "$found" 1>&2