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

[SCM] Debian package checker branch, master, updated. 2.5.7-11-gd5dea23



The following commit has been merged in the master branch:
commit 12becf63fc8fec4092ee9a8108b83903106c8364
Author: Niels Thykier <niels@thykier.net>
Date:   Tue May 22 12:25:41 2012 +0200

    Add test case against dev-pkg-without-shlib-symlink FP
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/t/tests/shared-libs-dev-symlink/debian/debian/control.in b/t/tests/shared-libs-dev-symlink-fp/debian/debian/control.in
similarity index 92%
copy from t/tests/shared-libs-dev-symlink/debian/debian/control.in
copy to t/tests/shared-libs-dev-symlink-fp/debian/debian/control.in
index 522705b..5d4dd87 100644
--- a/t/tests/shared-libs-dev-symlink/debian/debian/control.in
+++ b/t/tests/shared-libs-dev-symlink-fp/debian/debian/control.in
@@ -5,7 +5,7 @@ Maintainer: {$author}
 Standards-Version: {$standards_version}
 Build-Depends: debhelper (>= 9)
 
-Package: libfoo1
+Package: libfoo-1
 Architecture: any
 Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
 Description: {$description}
@@ -17,7 +17,7 @@ Package: libfoo-dev
 Architecture: any
 Section: libdevel
 Depends: $\{shlibs:Depends\}, $\{misc:Depends\},
-          libfoo1 (= $\{binary:Version\})
+          libfoo-1 (= $\{binary:Version\})
 Description: {$description} - dev
  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
diff --git a/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.install b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.install
new file mode 100644
index 0000000..6aa979e
--- /dev/null
+++ b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.install
@@ -0,0 +1 @@
+usr/lib/libfoo-1.so
diff --git a/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.symbols b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.symbols
new file mode 100644
index 0000000..96f3722
--- /dev/null
+++ b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-1.symbols
@@ -0,0 +1,3 @@
+libfoo-1.so libfoo-1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-dev.install b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-dev.install
new file mode 100644
index 0000000..6391297
--- /dev/null
+++ b/t/tests/shared-libs-dev-symlink-fp/debian/debian/libfoo-dev.install
@@ -0,0 +1,2 @@
+usr/include
+usr/lib/libfoo.so
diff --git a/t/tests/shared-libs-dev-symlink-fp/desc b/t/tests/shared-libs-dev-symlink-fp/desc
new file mode 100644
index 0000000..9f24453
--- /dev/null
+++ b/t/tests/shared-libs-dev-symlink-fp/desc
@@ -0,0 +1,6 @@
+Testname: shared-libs-dev-symlink-fp
+Sequence: 6000
+Version: 1.0-1
+Type: non-native
+Description: Test against dev symlink fp
+Test-Against: dev-pkg-without-shlib-symlink
diff --git a/t/debs/deb-format-record-size/tags b/t/tests/shared-libs-dev-symlink-fp/tags
similarity index 100%
copy from t/debs/deb-format-record-size/tags
copy to t/tests/shared-libs-dev-symlink-fp/tags
diff --git a/t/tests/shared-libs-dev-symlink-fp/upstream/Makefile b/t/tests/shared-libs-dev-symlink-fp/upstream/Makefile
new file mode 100644
index 0000000..65a5f19
--- /dev/null
+++ b/t/tests/shared-libs-dev-symlink-fp/upstream/Makefile
@@ -0,0 +1,24 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAME:= libfoo-1.so
+DEVSYMLINK:=$(shell echo $(SONAME) | perl -pe 's:-[\d\.]*\.so$$:\.so:')
+LIBFILES:=$(SONAME)
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+	$(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$@ $^ -lc
+
+clean:
+	rm -f *.a *.o *.so*
+
+install: all
+	echo $(SONAME) -- $(DEVSYMLINK)
+	install -m 0755 -d $(DESTDIR)/usr/lib
+	install -m 0755 -d $(DESTDIR)/usr/include
+	install -m 0644 $(SONAME) $(DESTDIR)/usr/lib
+	ln -s $(SONAME) $(DESTDIR)/usr/lib/$(DEVSYMLINK)
+	install -m 0644 code.h $(DESTDIR)/usr/include
+
+.PHONY: install clean
diff --git a/t/tests/shared-libs-dev-symlink/upstream/code.c b/t/tests/shared-libs-dev-symlink-fp/upstream/code.c
similarity index 100%
copy from t/tests/shared-libs-dev-symlink/upstream/code.c
copy to t/tests/shared-libs-dev-symlink-fp/upstream/code.c
diff --git a/t/tests/shared-libs-dev-symlink/upstream/code.h b/t/tests/shared-libs-dev-symlink-fp/upstream/code.h
similarity index 100%
copy from t/tests/shared-libs-dev-symlink/upstream/code.h
copy to t/tests/shared-libs-dev-symlink-fp/upstream/code.h

-- 
Debian package checker


Reply to: