[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Only test for packages shipping gschemas.compiled files in usr/share/glib-*/schemas as it is perfectly valid for packages to generate schemas at build time. Thanks to Jonathan Carter (highvoltage) for the followup. (Closes: #884142)



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 10ba0faa78538b7c8b81fdb282cb8b5818de7960
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Jan 9 17:20:53 2018 +0530

    Only test for packages shipping gschemas.compiled files in usr/share/glib-*/schemas as it is perfectly valid for packages to generate schemas at build time. Thanks to Jonathan Carter (highvoltage) for the followup. (Closes: #884142)
---
 data/files/fnames                         | 2 +-
 debian/changelog                          | 4 ++++
 t/tests/files-general/debian/debian/rules | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/data/files/fnames b/data/files/fnames
index 6628d47..b63b94d 100644
--- a/data/files/fnames
+++ b/data/files/fnames
@@ -1,7 +1,7 @@
 # Simple checks against (entire) filenames
 # Format: tag ~~ $fname regexp
 file-name-contains-wildcard-character   ~~ [*?]
-package-contains-compiled-glib-schema   ~~ (^|/)gschemas\.compiled$
+package-contains-compiled-glib-schema   ~~ ^usr/share/glib-[^\/]+/schemas/gschemas\.compiled$
 package-contains-python-coverage-file   ~~ (^|/)\.coverage$
 package-contains-python-doctree-file    ~~ \.doctree$
 package-contains-python-hypothesis-example    ~~ /\.hypothesis/examples/[^\)]+/.+
diff --git a/debian/changelog b/debian/changelog
index 46c065f..385c6ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -82,6 +82,10 @@ lintian (2.5.68) UNRELEASED; urgency=medium
   * data/files/fnames:
     + [CL] Warn about packages that ship (non-reproducible) Python
       Hypothesis examples.  (Closes: #886101)
+    + [CL] Only test for packages shipping gschemas.compiled files in
+      usr/share/glib-*/schemas as it is valid for packages to generate
+      schemas at build time. Thanks to Jonathan Carter (highvoltage) for
+      the followup.  (Closes: #884142)
   * data/standards-version/ancient-date:
     + [CL] Change the policy of "ancient-standards-version" to "a release
       of Policy from the previous stable release cycle" and update the
diff --git a/t/tests/files-general/debian/debian/rules b/t/tests/files-general/debian/debian/rules
index 1954cc9..8334fe2 100755
--- a/t/tests/files-general/debian/debian/rules
+++ b/t/tests/files-general/debian/debian/rules
@@ -29,6 +29,7 @@ override_dh_install:
 	touch $(tmp)/usr/share/fonts/X11/misc/false-positive
 	touch $(tmp)/usr/share/foo/.nfs-fake-tmpfile
 	touch $(tmp)/usr/share/foo/foo.doctree
+	touch $(tmp)/usr/share/foo/gschemas.compiled
 	touch $(tmp)/usr/share/glib-2.0/schemas/gschemas.compiled
 	# If the following line gets messed up, it can be
 	# restored with something like:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: