From 1f3942d90c4a02a1664fee1d72f9f2e2de527f75 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 2 Jun 2023 05:24:00 -0400 Subject: sbopkglint: exempt kernel modules from hardcoded $TMP test. --- sbopkglint.d/70-tmp_path.t.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3