From e2621a56dfd5a0a59956815ca8a010189166ffb3 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 5 Nov 2022 13:59:57 +0100 Subject: [PATCH] hooks/99-pkglint.sh: error when pkg ships gschemas.compiled gschemas.compiled is generated by glib-compile-schemas and should not be overriden by a package --- common/hooks/pre-pkg/99-pkglint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh index a63e37207929..bdafd7b9b11d 100644 --- a/common/hooks/pre-pkg/99-pkglint.sh +++ b/common/hooks/pre-pkg/99-pkglint.sh @@ -128,6 +128,11 @@ hook() { error=1 fi + if [ -e ${PKGDESTDIR}/usr/share/glib-2.0/schemas/gschemas.compiled ]; then + msg_red "${pkgver}: /usr/share/glib-2.0/schemas/gschemas.compiled is forbidden. Delete it.\n" + error=1 + fi + # Forbid files would be generated by mimedb trigger for f in XMLnamespaces aliases generic-icons globs globs2 icons \ magic mime.cache subclasses treemagic types version ; do