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

[SCM] Debian package checker branch, master, updated. 2.4.3-219-gb921611



The following commit has been merged in the master branch:
commit f58429668b8983eb7a857e12785a4ac552d456cb
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Feb 7 20:32:00 2011 +0100

    Added test for python-debug-in-wrong-location and updated COVERAGE

diff --git a/t/COVERAGE b/t/COVERAGE
index 7325998..e82a2ef 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,4 +1,4 @@
-Last generated 2011-01-16
+Last generated 2011-02-07
 
 The following tags are not tested by the test suite:
 
@@ -94,7 +94,6 @@ files package-installs-font-to-usr-x11r6
 files package-installs-into-etc-rc.boot
 files package-installs-into-etc-rc.d
 files package-installs-perllocal-pod
-files package-installs-python-pyc
 files package-uses-obsolete-file
 files perl-module-in-core-directory
 files setgid-binary
diff --git a/t/tests/files-python-general/debian/Makefile b/t/tests/files-python-general/debian/Makefile
index bee40ad..e0b4b27 100644
--- a/t/tests/files-python-general/debian/Makefile
+++ b/t/tests/files-python-general/debian/Makefile
@@ -1,6 +1,7 @@
-all:
+all: lib.c
 	echo 'Hallo World' > code.pyc
 	echo 'Hallo World' > code.pyo
+	gcc -g -O2 -shared -o python-module.so lib.c
 
 distclean:
-	rm -f code.pyc code.pyo
+	rm -f code.pyc code.pyo python-module.so
diff --git a/t/tests/files-python-general/debian/debian/control.in b/t/tests/files-python-general/debian/debian/control.in
index 79a6d1c..8513ca9 100644
--- a/t/tests/files-python-general/debian/debian/control.in
+++ b/t/tests/files-python-general/debian/debian/control.in
@@ -6,11 +6,25 @@ Standards-Version: {$standards_version}
 Build-Depends: debhelper (>= 7.0.50~)
 
 Package: python-kinterbasdb
-Architecture: all
-Depends: $\{misc:Depends\},
+Architecture: any
+Depends: $\{misc:Depends\}, $\{shlibs:Depends\}
 Description: {$description}
  This is a test package designed to exercise some feature or tag of
  Lintian.  It is part of the Lintian test suite and may do very odd
  things.  It should not be installed like a regular package.  It may
  be an empty package.
 
+Package: python-kinterbasdb-dbg
+Architecture: any
+Section: debug
+Depends: $\{misc:Depends\}, python-kinterbasdb (= $\{binary:Version\}),
+ $\{shlibs:Depends\}
+Description: {$description} - debug
+ This is a test package designed to exercise some feature or tag of
+ Lintian.  It is part of the Lintian test suite and may do very odd
+ things.  It should not be installed like a regular package.  It may
+ be an empty package.
+ .
+ This is a fake debug package.
+
+
diff --git a/t/tests/files-python-general/debian/debian/install b/t/tests/files-python-general/debian/debian/python-kinterbasdb.install
similarity index 86%
rename from t/tests/files-python-general/debian/debian/install
rename to t/tests/files-python-general/debian/debian/python-kinterbasdb.install
index 332e6f1..ad14f96 100644
--- a/t/tests/files-python-general/debian/debian/install
+++ b/t/tests/files-python-general/debian/debian/python-kinterbasdb.install
@@ -4,3 +4,4 @@ code.pyc usr/share/python-kinterbasdb/__pycache__/
 code.pyo usr/share/python-kinterbasdb/__pycache__/
 objects.inv usr/share/doc/python-kinterbasdb/docs/
 python.egg usr/share/python-kinterbasdb/
+python-module.so usr/lib/pyshared/python2.7
diff --git a/t/tests/files-python-general/debian/debian/rules b/t/tests/files-python-general/debian/debian/rules
index 6efd88b..4832b31 100644
--- a/t/tests/files-python-general/debian/debian/rules
+++ b/t/tests/files-python-general/debian/debian/rules
@@ -4,6 +4,10 @@ DOCS:=debian/python-kinterbasdb/usr/share/doc/python-kinterbasdb/docs
 %:
 	dh $@
 
+override_dh_strip:
+	dh_strip -ppython-kinterbasdb --dbg-package=python-kinterbasdb-dbg
+	dh_strip --remaining-packages
+
 override_dh_compress:
 	dh_compress
 	# Manually compress it, since debhelper will fix #608907
diff --git a/t/tests/files-python-general/debian/lib.c b/t/tests/files-python-general/debian/lib.c
new file mode 100644
index 0000000..fd91682
--- /dev/null
+++ b/t/tests/files-python-general/debian/lib.c
@@ -0,0 +1,3 @@
+int do_something(int a){
+  return a * a;
+}
diff --git a/t/tests/files-python-general/desc b/t/tests/files-python-general/desc
index 0ddcaf8..339c360 100644
--- a/t/tests/files-python-general/desc
+++ b/t/tests/files-python-general/desc
@@ -8,3 +8,4 @@ Test-For:
  package-installs-python-bytecode
  package-installs-python-egg
  package-installs-python-pycache-dir
+ python-debug-in-wrong-location
diff --git a/t/tests/files-python-general/tags b/t/tests/files-python-general/tags
index 6383a44..a9f9421 100644
--- a/t/tests/files-python-general/tags
+++ b/t/tests/files-python-general/tags
@@ -2,4 +2,5 @@ E: python-kinterbasdb: package-installs-python-bytecode usr/share/python-kinterb
 E: python-kinterbasdb: package-installs-python-bytecode usr/share/python-kinterbasdb/code.pyo
 E: python-kinterbasdb: package-installs-python-egg usr/share/python-kinterbasdb/python.egg
 E: python-kinterbasdb: package-installs-python-pycache-dir usr/share/python-kinterbasdb/__pycache__/
+W: python-kinterbasdb-dbg: python-debug-in-wrong-location usr/lib/debug/usr/lib/pyshared/python2.7/python-module.so /usr/lib/debug/usr/lib/pymodules/python2.7/python-module.so
 W: python-kinterbasdb: compressed-objects.inv usr/share/doc/python-kinterbasdb/docs/objects.inv.gz

-- 
Debian package checker


Reply to: