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

[SCM] Debian package checker branch, master, updated. 2.4.3-97-gb90e1ce



The following commit has been merged in the master branch:
commit b90e1cebc33760d21a21243f70affc9e782f1083
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jan 1 22:03:01 2011 +0100

    Test for shlibs-declares-dependency-on-other-package.

diff --git a/t/COVERAGE b/t/COVERAGE
index 7c37894..7dd5621 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -365,7 +365,6 @@ shared-libs postinst-must-call-ldconfig
 shared-libs postrm-has-useless-call-to-ldconfig
 shared-libs sharedobject-in-library-directory-missing-soname
 shared-libs shlib-with-executable-bit
-shared-libs shlibs-declares-dependency-on-other-package
 shared-libs symbols-declared-but-not-shlib
 shared-libs symbols-declares-dependency-on-other-package
 shared-libs syntax-error-in-symbols-file
@@ -521,7 +520,6 @@ libbaz
   postinst-must-call-ldconfig
   postinst-should-not-set-usr-doc-link
   shlib-with-executable-bit
-  shlibs-declares-dependency-on-other-package
 
 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 013de67..28999ff 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 libunshf.so.1
+SONAMES:= libnoshf.so.1 libeshf.so.1 libunshf.so.1 libfdshf.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 4b08547..fa03d58 100644
--- a/t/tests/shared-libs-control-file/debian/debian/control.in
+++ b/t/tests/shared-libs-control-file/debian/debian/control.in
@@ -34,3 +34,13 @@ Description: {$description} (unused entry)
  things.  It should not be installed like a regular package.
  .
  Checks for unused entry in shlibs file.
+
+Package: libfdshf1
+Architecture: any
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (foreign dep)
+ 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 foreign dependency entry in shlibs file.
diff --git a/t/tests/shared-libs-control-file/debian/debian/libfdshf1.install b/t/tests/shared-libs-control-file/debian/debian/libfdshf1.install
new file mode 100644
index 0000000..c01a368
--- /dev/null
+++ b/t/tests/shared-libs-control-file/debian/debian/libfdshf1.install
@@ -0,0 +1 @@
+usr/lib/libfdshf*
diff --git a/t/tests/shared-libs-control-file/debian/debian/libfdshf1.symbols b/t/tests/shared-libs-control-file/debian/debian/libfdshf1.symbols
new file mode 100644
index 0000000..4a18831
--- /dev/null
+++ b/t/tests/shared-libs-control-file/debian/debian/libfdshf1.symbols
@@ -0,0 +1,3 @@
+libfdshf.so.1 libfdshf1 #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 4b511b9..debbb28 100644
--- a/t/tests/shared-libs-control-file/debian/debian/rules
+++ b/t/tests/shared-libs-control-file/debian/debian/rules
@@ -9,4 +9,5 @@ override_dh_builddeb:
 	rm -f debian/libnoshf1/DEBIAN/shlibs
 	echo "# aloha" > debian/libeshf1/DEBIAN/shlibs
 	echo "libfoo 1 libunshf1" >> debian/libunshf1/DEBIAN/shlibs
+	sed -i 's/libfdshf1/libforeign1/' debian/libfdshf1/DEBIAN/shlibs
 	dh_builddeb
diff --git a/t/tests/shared-libs-control-file/desc b/t/tests/shared-libs-control-file/desc
index dcb461c..4e26978 100644
--- a/t/tests/shared-libs-control-file/desc
+++ b/t/tests/shared-libs-control-file/desc
@@ -5,4 +5,5 @@ Description: Test checks related to shlibs files
 Test-For: 
  no-shlibs-control-file
  shlib-missing-in-control-file
+ shlibs-declares-dependency-on-other-package
  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 61a2d03..b4a277e 100644
--- a/t/tests/shared-libs-control-file/tags
+++ b/t/tests/shared-libs-control-file/tags
@@ -1,3 +1,4 @@
 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: libfdshf1: shlibs-declares-dependency-on-other-package libforeign1
 W: libunshf1: unused-shlib-entry-in-control-file libfoo 1

-- 
Debian package checker


Reply to: