From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../build-spec/debian/control.in | 16 ++++++++++++++++ .../without-fat-lto-objects/build-spec/debian/rules | 7 +++++++ .../without-fat-lto-objects/build-spec/fill-values | 4 ++++ .../without-fat-lto-objects/build-spec/orig/Makefile | 17 +++++++++++++++++ .../without-fat-lto-objects/build-spec/orig/code.c | 13 +++++++++++++ .../without-fat-lto-objects/build-spec/orig/code.h | 8 ++++++++ .../static/no-code/without-fat-lto-objects/eval/desc | 4 ++++ .../static/no-code/without-fat-lto-objects/eval/hints | 1 + 8 files changed, 70 insertions(+) create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/control.in create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/rules create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/fill-values create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/Makefile create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/code.c create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/code.h create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/desc create mode 100644 t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/hints (limited to 't/recipes/checks/libraries/static/no-code/without-fat-lto-objects') diff --git a/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/control.in b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/control.in new file mode 100644 index 0000000..b4e0958 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: libs +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: libfoo-dev +Architecture: [% $package_architecture %] +Section: libdevel +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/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/rules b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/rules new file mode 100644 index 0000000..3a30bc0 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_strip: + # Don't strip :) diff --git a/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/fill-values b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/fill-values new file mode 100644 index 0000000..ff04e62 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: without-fat-lto-objects +Package-Architecture: any +Skeleton: upload-non-native +Description: Static library built with -flto=auto, but without -ffat-lto-objects diff --git a/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/Makefile b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/Makefile new file mode 100644 index 0000000..6b1fa78 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/Makefile @@ -0,0 +1,17 @@ +CC=gcc +CFLAGS+= -g -flto=auto +LIBFILES:= libcodeless.a + +all: $(LIBFILES) + +libcodeless.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/no-code/without-fat-lto-objects/build-spec/orig/code.c b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/code.c new file mode 100644 index 0000000..7bba112 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/code.c @@ -0,0 +1,13 @@ +#include +#include +#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/no-code/without-fat-lto-objects/build-spec/orig/code.h b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/build-spec/orig/code.h new file mode 100644 index 0000000..570beae --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/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/no-code/without-fat-lto-objects/eval/desc b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/desc new file mode 100644 index 0000000..3bc8ecb --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/desc @@ -0,0 +1,4 @@ +Testname: without-fat-lto-objects +Check: libraries/static/no-code +See-Also: + Bug#977596 diff --git a/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/hints b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/hints new file mode 100644 index 0000000..19a13e1 --- /dev/null +++ b/t/recipes/checks/libraries/static/no-code/without-fat-lto-objects/eval/hints @@ -0,0 +1 @@ +libfoo-dev (binary): no-code-sections [usr/lib/libcodeless.a] -- cgit v1.2.3