From b4ab931668bf62503502d14d6d254023b9104bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 17 Apr 2025 14:06:22 +0700 Subject: [PATCH] hooks/pkglint: forbid Debianised zsh path https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934926 --- common/hooks/pre-pkg/99-pkglint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh index 2922c1a36f5..86a6cd64be4 100644 --- a/common/hooks/pre-pkg/99-pkglint.sh +++ b/common/hooks/pre-pkg/99-pkglint.sh @@ -104,6 +104,14 @@ hook() { error=1 fi + if [ -d ${PKGDESTDIR}/usr/share/zsh/vendor-functions ]; then + msg_red "${pkgver}: /usr/share/zsh/vendor-functions is forbidden. Use /usr/share/zsh/site-functions.\n" + fi + + if [ -d ${PKGDESTDIR}/usr/share/zsh/vendor-completions ]; then + msg_red "${pkgver}: /usr/share/zsh/vendor-completions is forbidden. Use /usr/share/zsh/site-functions.\n" + fi + # Prevent packages from installing to these paths in etc, they should use # their equivalent in usr/lib for f in udev/{rules.d,hwdb.d} modprobe.d sysctl.d; do