From 22054be8351639008aff2acc76dfbffa44916423 Mon Sep 17 00:00:00 2001 From: Đoàn Trần Công Danh Date: Mon, 21 Nov 2022 17:22:51 +0700 Subject: pkglint: forbid /usr/lib/libexec --- common/hooks/pre-pkg/99-pkglint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh index a63e3720792..8c643f7deb9 100644 --- a/common/hooks/pre-pkg/99-pkglint.sh +++ b/common/hooks/pre-pkg/99-pkglint.sh @@ -29,6 +29,15 @@ hook() { fi done + if [ -d ${PKGDESTDIR}/usr/lib/libexec ]; then + # Add exception for kconfig, + # other packages hard-coded path to its files + if [ "${pkgname}" != kconfig ]; then + msg_red "${pkgver}: /usr/lib/libexec directory is not allowed!\n" + error=1 + fi + fi + for f in "$PKGDESTDIR"/*; do f="${f##*/}" case "$f" in -- cgit v1.2.3