From 0e9696354dd5e2f5980265fa931627926af58337 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 19 Sep 2026 17:33:39 -0400 Subject: sbopkglint: allow pkgconf's personality.d/ --- NEWS | 1 + sbopkglint.d/05-basic-sanity.t.sh | 4 +++- sbopkglint.d/95-pkgconfig.t.sh | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3