diff options
Diffstat (limited to 't/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec')
6 files changed, 61 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in new file mode 100644 index 0000000..c20a449 --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in @@ -0,0 +1,15 @@ +Source: [% $source %] +Priority: optional +Section: libs +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc: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. diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols new file mode 100644 index 0000000..a1f052b --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values new file mode 100644 index 0000000..cec22d9 --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: shared-libs-non-dev-symlink +Package-Architecture: any +Skeleton: upload-non-native +Default-Build-Depends: debhelper (>= 9.20151004~) +Dh-Compat-Level: 9 +Description: Test checks related to dev symlink diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile new file mode 100644 index 0000000..b62fa17 --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile @@ -0,0 +1,21 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so.1 + ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so + +.PHONY: install clean diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c new file mode 100644 index 0000000..0ed08e0 --- /dev/null +++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c @@ -0,0 +1,15 @@ +#include <stdlib.h> +#include <math.h> + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + |