[Piuparts-commits] [piuparts] 05/05: known_problems: report unowned symlinks in lib directories

Holger Levsen holger at moszumanska.debian.org
Fri Nov 21 11:57:03 UTC 2014


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

holger pushed a commit to branch develop
in repository piuparts.

commit 5e773965e19eb7730261bbe0b9d277911ad2e4fd
Author: Andreas Beckmann <anbe at debian.org>
Date:   Fri Nov 21 12:28:56 2014 +0100

    known_problems: report unowned symlinks in lib directories
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 debian/changelog                              |  2 ++
 known_problems/unowned_lib_symlink_error.conf | 12 ++++++++++++
 known_problems/unowned_lib_symlink_issue.conf | 12 ++++++++++++
 piuparts-report.py                            |  2 ++
 4 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c218707..385e677 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,8 @@ piuparts (0.61) UNRELEASED; urgency=medium
     example, so that logfiles are displayed as UTF-8.
   * pre_install_foreign_architecture: New script to enable foreign
     architectures for testing cross toolchain packages.
+  * pre_remove_40_find_unowned_lib_links, unowned_lib_symlink_*.conf: New
+    script and reports for unowned symlinks in [/usr]/lib[/<triplet>].
   * Rework the file-rc/sysvinit/upstart/systemd specific exceptions.
 
  -- Holger Levsen <holger at debian.org>  Sun, 26 Oct 2014 20:19:35 +0100
diff --git a/known_problems/unowned_lib_symlink_error.conf b/known_problems/unowned_lib_symlink_error.conf
new file mode 100644
index 0000000..470b197
--- /dev/null
+++ b/known_problems/unowned_lib_symlink_error.conf
@@ -0,0 +1,12 @@
+#
+# detect unowned symlinks in library directories
+#
+PATTERN='UNOWNED SYMLINK'
+WHERE='fail bugged affected'
+ISSUE=0
+HEADER='Unowned symlinks is library directories'
+HELPTEXT='
+<p>
+These should rather be shipped in packages.
+</p>
+'
diff --git a/known_problems/unowned_lib_symlink_issue.conf b/known_problems/unowned_lib_symlink_issue.conf
new file mode 100644
index 0000000..bb02c71
--- /dev/null
+++ b/known_problems/unowned_lib_symlink_issue.conf
@@ -0,0 +1,12 @@
+#
+# detect unowned symlinks in library directories
+#
+PATTERN='UNOWNED SYMLINK'
+WHERE='pass'
+ISSUE=1
+HEADER='Unowned symlinks is library directories'
+HELPTEXT='
+<p>
+These should rather be shipped in packages.
+</p>
+'
diff --git a/piuparts-report.py b/piuparts-report.py
index e7662ef..390304b 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -445,6 +445,7 @@ linktarget_by_template = [
     ("module_build_error_issue.tpl", "but logfile contains dkms module build failures"),
     ("obsolete_conffiles_issue.tpl", "but logfile reports obsolete conffiles"),
     ("missing_md5sums_issue.tpl", "but logfile reports missing md5sums"),
+    ("unowned_lib_symlink_issue.tpl", "but logfile reports unowned lib symlinks"),
     ("piuparts-depends-dummy_issue.tpl", "but logfile reports piuparts-depends-dummy.deb could not be installed"),
     ("used_exception_issue.tpl", "but package used a piuparts exception"),
 
@@ -480,6 +481,7 @@ linktarget_by_template = [
     ("broken_symlinks_error.tpl", "...and logfile also contains 'broken symlinks'"),
     ("obsolete_conffiles_error.tpl", "...and logfile reports obsolete conffiles"),
     ("missing_md5sums_error.tpl", "...and logfile reports missing md5sums"),
+    ("unowned_lib_symlink_error.tpl", "...and logfile reports unowned lib symlinks"),
     ("piuparts-depends-dummy_error.tpl", "...and logfile reports piuparts-depends-dummy.deb could not be installed"),
     ("unclassified_failures.tpl", "due to unclassified failures"),
 ]

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



More information about the Piuparts-commits mailing list