diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/libraries/static/name | |
parent | Initial commit. (diff) | |
download | lintian-upstream.tar.xz lintian-upstream.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/libraries/static/name')
7 files changed, 53 insertions, 0 deletions
diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/fill-values b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/fill-values new file mode 100644 index 0000000..0284acb --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: underscore-s-suffix +Package-Architecture: any +Skeleton: upload-non-native +Description: Static library installed with _s.a suffix diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/Makefile b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/Makefile new file mode 100644 index 0000000..6545dde --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/Makefile @@ -0,0 +1,17 @@ +CC=gcc +CFLAGS+= -g +LIBFILES:= librealname_s.a + +all: $(LIBFILES) + +librealname_s.a: code.o + ar rcs -o $@ $^ + +clean: + rm -f *.a *.o + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.a $(DESTDIR)/usr/lib + +.PHONY: install clean diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.c b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.c new file mode 100644 index 0000000..7bba112 --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.c @@ -0,0 +1,13 @@ +#include <stdlib.h> +#include <math.h> +#include "code.h" + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + + diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.h b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.h new file mode 100644 index 0000000..570beae --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/code.h @@ -0,0 +1,8 @@ +#ifndef CODE_H_ +#define CODE_H_ + +double e(void (*f)(char *)); + +double energy(double mass); + +#endif diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/other.c b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/other.c new file mode 100644 index 0000000..153aace --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/build-spec/orig/other.c @@ -0,0 +1,6 @@ +#include "code.h" +#include <math.h> + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/desc b/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/desc new file mode 100644 index 0000000..8bb948f --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/desc @@ -0,0 +1,4 @@ +Testname: underscore-s-suffix +Check: libraries/static/name +See-Also: + Debian Bug#698398 diff --git a/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/hints b/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/hints new file mode 100644 index 0000000..61ad390 --- /dev/null +++ b/t/recipes/checks/libraries/static/name/underscore-s-suffix/eval/hints @@ -0,0 +1 @@ +underscore-s-suffix (binary): odd-static-library-name [usr/lib/librealname_s.a] |