aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-19 17:33:39 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-19 17:33:46 -0400
commit0e9696354dd5e2f5980265fa931627926af58337 (patch)
tree06d95dbbd4acd1cc6056c1ca0895329a3e8e008e
parent71c245be5c5dc90832885e379bb1290bfd4ca6e4 (diff)
downloadsbo-maintainer-tools-0e9696354dd5e2f5980265fa931627926af58337.tar.gz
sbopkglint: allow pkgconf's personality.d/
-rw-r--r--NEWS1
-rw-r--r--sbopkglint.d/05-basic-sanity.t.sh4
-rw-r--r--sbopkglint.d/95-pkgconfig.t.sh5
3 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 30a3df3..76505d6 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ sbopkglint:
may not exist in the package tarball.
- Packages may not contain /etc/rc.d/rc.local or rc.local_shutdown,
*or* modify them via doinst.sh.
+- Allow usr/share/pkgconfig/personality.d, since pkgconf uses this.
New in 0.9.8:
=============
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh
index 50c5c10..b0afb94 100644
--- a/sbopkglint.d/05-basic-sanity.t.sh
+++ b/sbopkglint.d/05-basic-sanity.t.sh
@@ -38,7 +38,9 @@ bindirs="bin usr/bin sbin usr/sbin usr/games"
# and must be mode 0755, root:root. I thought usr/share/pixmaps
# belonged here, but quite a few packages create subdirs there for
# images required at runtime that aren't the app icon.
-fileonlydirs="$bindirs usr/man/man1 usr/man/man2 usr/man/man3 usr/man/man4 usr/man/man5 usr/man/man6 usr/man/man7 usr/man/man8 usr/man/man9 usr/man/manl usr/man/mann usr/lib/pkgconfig usr/lib64/pkgconfig usr/share/pkgconfig"
+# 20260919 bkw: usr/share/pkgconfig removed from this list, because
+# pkgconf uses usr/share/pkgconfig/personality.d/
+fileonlydirs="$bindirs usr/man/man1 usr/man/man2 usr/man/man3 usr/man/man4 usr/man/man5 usr/man/man6 usr/man/man7 usr/man/man8 usr/man/man9 usr/man/manl usr/man/mann usr/lib/pkgconfig usr/lib64/pkgconfig"
# these directories may exist, but must contain only subdirectories
# (no files, symlinks, devices, etc). "." (the top-level package dir)
diff --git a/sbopkglint.d/95-pkgconfig.t.sh b/sbopkglint.d/95-pkgconfig.t.sh
index cd77889..ed6a9bc 100644
--- a/sbopkglint.d/95-pkgconfig.t.sh
+++ b/sbopkglint.d/95-pkgconfig.t.sh
@@ -73,6 +73,11 @@ check_pc_file() {
## echo "===> checking $file"
+ if [ "$( basename $file )" = "personality.d" -a -d "$file" ]; then
+ # 20260919 bkw: pkgconf uses this
+ return
+ fi
+
if [ ! -f "$file" ]; then
warn "$file is not a regular file:"
ls -ld "$file"