[SCM] Debian package checker branch, master, updated. 2.4.3-127-g0363f84
The following commit has been merged in the master branch:
commit 0363f84d814a89d076c6bf5ea8981e9e782fa1e1
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jan 16 16:40:34 2011 +0100
Added check for misplaced python debug files
* Summary of tag changes:
+ Added:
- python-debug-in-wrong-location
* checks/files{,.desc}:
+ [NT] Added check for misplaced python debug files. Thanks to
Jakub Wilk for the report. (Closes: #576014)
diff --git a/checks/files b/checks/files
index 9a16d53..e2bde0d 100644
--- a/checks/files
+++ b/checks/files
@@ -450,6 +450,12 @@ foreach my $file (@{$info->sorted_index}) {
unless ($pkg =~ /-dbg$/);
$warned_debug_name = 1;
}
+
+ if ($index_info->{type} =~ m/^[-h]/o &&
+ $file =~ m,^usr/lib/debug/usr/lib/pyshared/(python\d?(?:\.\d+))/(.++)$,o){
+ my $correct = "/usr/lib/debug/usr/lib/pymodules/$1/$2";
+ tag "python-debug-in-wrong-location", "$file", "$correct";
+ }
}
# ---------------- /usr/lib/sgml
diff --git a/checks/files.desc b/checks/files.desc
index 5f5e97c..8897d2b 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -741,6 +741,16 @@ Info: The directory /usr/lib/site-python has been deprecated as a
private module and should be packaged in a directory outside of Python's
default search path.
+Tag: python-debug-in-wrong-location
+Severity: normal
+Certainty: possible
+Ref: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576014
+Info: The package appears to be installing debug modules in
+ /usr/lib/debug/usr/lib/pyshared/pythonX.Y/. However, gdb(1)
+ will not look for it there, making it less useful. The file
+ should be installed in /usr/lib/debug/usr/lib/pymodules/pythonX.Y/
+ instead.
+
Tag: package-installs-python-pyc
Severity: serious
Certainty: certain
diff --git a/debian/changelog b/debian/changelog
index a4c834a..1cb7efc 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ lintian (2.4.4) UNRELEASED; urgency=low
- temporary-debhelper-file
- compressed-objects.inv
- unused-build-dependency-on-cdbs
+ - python-debug-in-wrong-location
* checks/*:
+ [NT] Use the new pre-sorted file {index,info} when iterating over files.
@@ -61,6 +62,8 @@ lintian (2.4.4) UNRELEASED; urgency=low
objects.inv files in python documentation. Thanks to
Fladischer Michael for the report and a partial patch.
(Closes: #608810)
+ + [NT] Added check for misplaced python debug files. Thanks to
+ Jakub Wilk for the report. (Closes: #576014)
* checks/menu-format.desc:
+ [CW] Fix several typos.
* checks/menus.desc:
--
Debian package checker
Reply to: