Bug#876093: openvas-libraries FTBFS on amd64: override_dh_auto_configure failed

SZ Lin (=?UTF-8?Q?=E6=9E=97=E4=B8=8A=E6=99=BA?=) szlin at debian.org
Mon Sep 18 12:14:08 UTC 2017


I have took some time to investigate this issue

--
CMake Error at misc/CMakeLists.txt:125 (add_library):
Target "openvas_misc_shared" links to item " -lpcap" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.


CMake Error at nasl/CMakeLists.txt:147 (add_library):
Target "openvas_nasl_shared" links to item " -lpcap" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.


CMake Error at nasl/CMakeLists.txt:147 (add_library):
Target "openvas_nasl_shared" links to item " -lpcap" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.


CMake Error at nasl/CMakeLists.txt:147 (add_library):
Target "openvas_nasl_shared" links to item " -lpcap" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.

--

This issue is caused by libpcap-dev [1], and the following patch could
solve this issue.


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 033d122..71deefc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -212,6 +212,7 @@ if (NOT OPENVAS_OMP_ONLY)
     execute_process (COMMAND pcap-config --cflags
       OUTPUT_VARIABLE PCAP_CFLAGS
       OUTPUT_STRIP_TRAILING_WHITESPACE)
+    string(STRIP "${PCAP_LDFLAGS}" PCAP_LDFLAGS)
   else (PCAP_CONFIG)
     message (STATUS "pcap-config not found, using defaults...")
     set (PCAP_LDFLAGS "-L/usr/lib -lpcap")

Any feedback on it?

ref:
[1]:
https://anonscm.debian.org/cgit/users/rfrancoise/libpcap.git/commit/?id=95f3623920effd288b7add3e8d2f0092c5bb46a6

--

SZ Lin (林上智) <szlin at debian.org>, *http://people.debian.org/~szlin
<http://people.debian.org/~szlin>*

*Debian Developer*, debian.org.tw Administrator

4096R/ 178F 8338 B314 01E3 04FC 44BA A959 B38A 9561 F3F9


2017-09-18 19:42 GMT+08:00 SZ Lin <szlin at debian.org>:

> Source: openvas-libraries
> Version: 9.0.1-3
> Severity: serious
>
> https://tests.reproducible-builds.org/debian/rbuild/
> unstable/amd64/openvas-libraries_9.0.1-3.rbuild.log
>
> ...
> dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr
> -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None
> -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var
> -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
> -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var -DLIBDIR=/usr/lib/x86_64-linux-gnu
> -DBUILD_WITH_LDAP=ON -DCMAKE_BUILD_TYPE=release -DBUILD_WITH_RADIUS=no
> returned exit code 1
>
> debian/rules:10: recipe for target 'override_dh_auto_configure' failed
> make[1]: *** [override_dh_auto_configure] Error 2
> make[1]: Leaving directory '/build/1st/openvas-libraries-9.0.1'
> debian/rules:7: recipe for target 'build' failed
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
>
>
>
> --
>
> SZ Lin (林上智) <szlin at debian.org>, *http://people.debian.org/~szlin <http://people.debian.org/~szlin>*
>
> *Debian Developer*, debian.org.tw Administrator
>
> 4096R/ 178F 8338 B314 01E3 04FC 44BA A959 B38A 9561 F3F9
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-security-team/attachments/20170918/ac62c2a5/attachment.html>


More information about the Pkg-security-team mailing list