Package: lintian Version: 2.5.19 Severity: normal Tags: patch Dear Maintainer,
Lintian fails to build on Ubuntu, because the binaries-missing-depends-on-libc test fails. Ubuntu uses --as-needed as default. The test file does not use any function from libstdc++ or libc. Attached a patch that adds some code to require a linkage to the C++ library.
>From 9883248a970115d3ddd817df50ce51f8dffc5a5c Mon Sep 17 00:00:00 2001 From: Adam Conrad <adcon...@ubuntu.com> Date: Wed, 2 Oct 2013 00:11:06 +0200 Subject: [PATCH] Make the C++ test lib be a C++ lib. Signed-off-by: Benjamin Drung <bdr...@debian.org> --- t/tests/binaries-missing-depends-on-libc/debian/cpp.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/tests/binaries-missing-depends-on-libc/debian/cpp.cxx b/t/tests/binaries-missing-depends-on-libc/debian/cpp.cxx index f6de999..3b9b270 100644 --- a/t/tests/binaries-missing-depends-on-libc/debian/cpp.cxx +++ b/t/tests/binaries-missing-depends-on-libc/debian/cpp.cxx @@ -1,3 +1,5 @@ +#include <cstdlib> +#include <iostream> #include <vector> using namespace std; @@ -5,6 +7,7 @@ using namespace std; template <class T> T cxx_lib_interface(vector<T> &v) { + cout << ":-) hello world" << endl; return v[0]; } -- 1.8.3.2