aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-07-01 21:54:59 -0400
committerB. Watson <urchlay@slackware.uk>2023-07-01 21:54:59 -0400
commit7204578ffb5316c507287c01c152ba7974840757 (patch)
tree5e88f647fe5db67672dcffa9320203aa3301e75d
parentdbd66d1963b826d23f7093aa771bead1fe39b3ab (diff)
downloadsbo-maintainer-tools-7204578ffb5316c507287c01c152ba7974840757.tar.gz
sbopkglint: special case /usr/share/qemu.
-rw-r--r--NEWS7
-rw-r--r--sbopkglint.d/20-arch.t.sh4
2 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index cd4d18c..d017428 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ sbopkglint:
- Long names for all options (see --help or man page).
- New static library test (permissions, ownership, validity, plus a
note if there's also a shared version of the same lib).
+- Files that aren't supposed to exist in perl builds are now
+ checked for (perllocal.pod, .packlist, *.bs).
sbolint:
- Warning: -n option has changed meaning! It used to mean "no warnings",
@@ -26,6 +28,11 @@ sbolint:
- If the slack-desc still has "(short description of app)", that's an error.
- The -a option now redirects stdout to a log file, if stdout is a terminal.
+sbodl:
+- Color is now used only if stdout is a TTY.
+- Exit status is now useful: success if all files exist and their
+ md5sums match, or failure otherwise.
+
New in 0.8.2:
=============
diff --git a/sbopkglint.d/20-arch.t.sh b/sbopkglint.d/20-arch.t.sh
index 462a3c6..2b8268c 100644
--- a/sbopkglint.d/20-arch.t.sh
+++ b/sbopkglint.d/20-arch.t.sh
@@ -31,7 +31,9 @@ case "$ARCH" in
esac
if [ -n "$WRONGDIR" ]; then
- find * -type f -print0 | \
+ # 20230701 bkw: special case for /usr/share/qemu, it contains BIOS and such
+ # for emulated systems, some of which are ELF binaries.
+ find * -type f -a \! -path usr/share/qemu/\* -print0 | \
xargs -0 file -m /etc/file/magic/elf | \
grep 'ELF.*\(executable\|shared object\)' > .tmp.$$