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

[SCM] Debian package checker branch, master, updated. 2.4.3-96-g17a1c92



The following commit has been merged in the master branch:
commit 17a1c9289651bbae9b60edc244ecf3304a5e6ffd
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jan 1 21:54:41 2011 +0100

    Test for unused-shlib-entry-in-control-file.

diff --git a/t/COVERAGE b/t/COVERAGE
index e51996d..7c37894 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -371,7 +371,6 @@ shared-libs symbols-declares-dependency-on-other-package
 shared-libs syntax-error-in-symbols-file
 shared-libs udeb-postinst-must-not-call-ldconfig
 shared-libs unknown-meta-field-in-symbols-file
-shared-libs unused-shlib-entry-in-control-file
 shared-libs unused-shlib-entry-in-symbols-control-file
 
 Breakdown of remaining tags in legacy test suite by test case:
@@ -523,7 +522,6 @@ libbaz
   postinst-should-not-set-usr-doc-link
   shlib-with-executable-bit
   shlibs-declares-dependency-on-other-package
-  unused-shlib-entry-in-control-file
 
 maintainer-scripts
   ancient-dpkg-epoch-check
diff --git a/t/tests/shared-libs-control-file/debian/Makefile b/t/tests/shared-libs-control-file/debian/Makefile
index 1b018f1..013de67 100644
--- a/t/tests/shared-libs-control-file/debian/Makefile
+++ b/t/tests/shared-libs-control-file/debian/Makefile
@@ -1,7 +1,7 @@
 CC=gcc
 CFLAGS=-Wall -Winline -O2 -fPIC
 
-SONAMES:= libnoshf.so.1 libeshf.so.1
+SONAMES:= libnoshf.so.1 libeshf.so.1 libunshf.so.1
 LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
 
 all: $(LIBFILES)
diff --git a/t/tests/shared-libs-control-file/debian/debian/control.in b/t/tests/shared-libs-control-file/debian/debian/control.in
index 7ccd60b..4b08547 100644
--- a/t/tests/shared-libs-control-file/debian/debian/control.in
+++ b/t/tests/shared-libs-control-file/debian/debian/control.in
@@ -24,3 +24,13 @@ Description: {$description} (empty shlibs file)
  things.  It should not be installed like a regular package.
  .
  Checks for empty shlibs file.
+
+Package: libunshf1
+Architecture: any
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (unused entry)
+ 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.
+ .
+ Checks for unused entry in shlibs file.
diff --git a/t/tests/shared-libs-control-file/debian/debian/libunshf1.install b/t/tests/shared-libs-control-file/debian/debian/libunshf1.install
new file mode 100644
index 0000000..dcdae56
--- /dev/null
+++ b/t/tests/shared-libs-control-file/debian/debian/libunshf1.install
@@ -0,0 +1 @@
+usr/lib/libunshf*
diff --git a/t/tests/shared-libs-control-file/debian/debian/libunshf1.symbols b/t/tests/shared-libs-control-file/debian/debian/libunshf1.symbols
new file mode 100644
index 0000000..737842d
--- /dev/null
+++ b/t/tests/shared-libs-control-file/debian/debian/libunshf1.symbols
@@ -0,0 +1,3 @@
+libunshf.so.1 libunshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/tests/shared-libs-control-file/debian/debian/rules b/t/tests/shared-libs-control-file/debian/debian/rules
index 2a35315..4b511b9 100644
--- a/t/tests/shared-libs-control-file/debian/debian/rules
+++ b/t/tests/shared-libs-control-file/debian/debian/rules
@@ -8,4 +8,5 @@ override_dh_builddeb:
 	# before installing them.
 	rm -f debian/libnoshf1/DEBIAN/shlibs
 	echo "# aloha" > debian/libeshf1/DEBIAN/shlibs
+	echo "libfoo 1 libunshf1" >> debian/libunshf1/DEBIAN/shlibs
 	dh_builddeb
diff --git a/t/tests/shared-libs-control-file/desc b/t/tests/shared-libs-control-file/desc
index 6da9dc9..dcb461c 100644
--- a/t/tests/shared-libs-control-file/desc
+++ b/t/tests/shared-libs-control-file/desc
@@ -5,3 +5,4 @@ Description: Test checks related to shlibs files
 Test-For: 
  no-shlibs-control-file
  shlib-missing-in-control-file
+ unused-shlib-entry-in-control-file
diff --git a/t/tests/shared-libs-control-file/tags b/t/tests/shared-libs-control-file/tags
index 4c2650d..61a2d03 100644
--- a/t/tests/shared-libs-control-file/tags
+++ b/t/tests/shared-libs-control-file/tags
@@ -1,2 +1,3 @@
 E: libeshf1: shlib-missing-in-control-file libeshf 1 for usr/lib/libeshf.so.1.0.1
 E: libnoshf1: no-shlibs-control-file usr/lib/libnoshf.so.1.0.1
+W: libunshf1: unused-shlib-entry-in-control-file libfoo 1

-- 
Debian package checker


Reply to: