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

[SCM] Debian package checker branch, master, updated. 2.5.1-110-gb5f0812



The following commit has been merged in the master branch:
commit b5f08128d762af037cd9de693b98787ff5bdcd4c
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jul 16 18:46:05 2011 +0200

    Added test for missing depends on perlapi

diff --git a/t/COVERAGE b/t/COVERAGE
index da9d4f0..ad1fb27 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -141,7 +141,6 @@ The following tags are only tested by the legacy test suite:
 binaries binary-has-unneeded-section
 binaries binary-with-bad-dynamic-table
 binaries debug-file-should-use-detached-symbols
-binaries missing-dependency-on-perlapi
 binaries package-name-doesnt-match-sonames
 binaries shared-lib-without-dependency-information
 binaries statically-linked-binary
@@ -420,7 +419,6 @@ foo++
 
 libbaz
   ldconfig-symlink-missing-for-shlib
-  missing-dependency-on-perlapi
   package-name-doesnt-match-sonames
   postinst-should-not-set-usr-doc-link
 
diff --git a/t/tests/binaries-missing-depends/debian/Makefile b/t/tests/binaries-missing-depends-on-perlapi/debian/Makefile
similarity index 59%
copy from t/tests/binaries-missing-depends/debian/Makefile
copy to t/tests/binaries-missing-depends-on-perlapi/debian/Makefile
index ed44e4a..ead03ce 100644
--- a/t/tests/binaries-missing-depends/debian/Makefile
+++ b/t/tests/binaries-missing-depends-on-perlapi/debian/Makefile
@@ -1,10 +1,10 @@
 all:
-	gcc -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+	gcc -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so basic.c
 
 install:
 	# install it under the correct triplet directory
-	install -d $(DESTDIR)/usr/lib/
-	install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2
+	install -d $(DESTDIR)/usr/lib/perl5
+	install -m 644 -c -s libbasic.so $(DESTDIR)/usr/lib/perl5/libbasic.so
 
 clean distclean:
 	rm -f libbasic.so.2
diff --git a/t/tests/binaries-missing-depends-on-libc/debian/basic.c b/t/tests/binaries-missing-depends-on-perlapi/debian/basic.c
similarity index 100%
copy from t/tests/binaries-missing-depends-on-libc/debian/basic.c
copy to t/tests/binaries-missing-depends-on-perlapi/debian/basic.c
diff --git a/t/tests/binaries-missing-depends-on-perlapi/debian/debian/rules b/t/tests/binaries-missing-depends-on-perlapi/debian/debian/rules
new file mode 100644
index 0000000..edfce23
--- /dev/null
+++ b/t/tests/binaries-missing-depends-on-perlapi/debian/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_perl:
+
+override_dh_builddeb:
+	# Work around debhelper bug (triggers useless call to ldconfig)
+	rm -f debian/*/DEBIAN/postinst debian/*/DEBIAN/postrm
+	dh_builddeb
+
diff --git a/t/tests/binaries-missing-depends-on-perlapi/desc b/t/tests/binaries-missing-depends-on-perlapi/desc
new file mode 100644
index 0000000..c7f0cee
--- /dev/null
+++ b/t/tests/binaries-missing-depends-on-perlapi/desc
@@ -0,0 +1,6 @@
+Testname: binaries-missing-depends-on-perlapi
+Sequence: 6000
+Version: 1.0
+Description: Test for missing perlapi depends
+Architecture: any
+Test-For: missing-dependency-on-perlapi
diff --git a/t/tests/binaries-missing-depends-on-perlapi/tags b/t/tests/binaries-missing-depends-on-perlapi/tags
new file mode 100644
index 0000000..2e143f8
--- /dev/null
+++ b/t/tests/binaries-missing-depends-on-perlapi/tags
@@ -0,0 +1 @@
+E: binaries-missing-depends-on-perlapi: missing-dependency-on-perlapi

-- 
Debian package checker


Reply to: