net-analyzer/gvm-libs: add patch for gnutls linking in 11.0.0
authorJonas Licht <jonas.licht@fem.tu-ilmenau.de>
Wed, 25 Mar 2020 21:07:24 +0000 (22:07 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 26 Mar 2020 14:00:46 +0000 (16:00 +0200)
Closes: https://bugs.gentoo.org/714740
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Closes: https://github.com/gentoo/gentoo/pull/15117
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-analyzer/gvm-libs/files/gvm-libs-11.0.0-gnutls.patch [new file with mode: 0644]
net-analyzer/gvm-libs/gvm-libs-11.0.0-r1.ebuild [moved from net-analyzer/gvm-libs/gvm-libs-11.0.0.ebuild with 93% similarity]

diff --git a/net-analyzer/gvm-libs/files/gvm-libs-11.0.0-gnutls.patch b/net-analyzer/gvm-libs/files/gvm-libs-11.0.0-gnutls.patch
new file mode 100644 (file)
index 0000000..427647d
--- /dev/null
@@ -0,0 +1,22 @@
+From 61205ecc6e28f6a1af799ec40074a61037d9bf31 Mon Sep 17 00:00:00 2001
+From: Juan Jose Nicola <juan.nicola@greenbone.net>
+Date: Mon, 28 Oct 2019 14:04:52 +0100
+Subject: [PATCH] Fix missing linking to libgnutls in util/CMakeLists.txt
+
+---
+ util/CMakeLists.txt | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletion(-)
+
+diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt
+index 2b7f441d..af5e363e 100644
+--- a/util/CMakeLists.txt
++++ b/util/CMakeLists.txt
+@@ -158,7 +158,7 @@ if (BUILD_SHARED)
+   target_link_libraries (gvm_util_shared LINK_PRIVATE ${GLIB_LDFLAGS}
+                          ${GIO_LDFLAGS} ${GPGME_LDFLAGS} ${ZLIB_LDFLAGS}
+-                         ${RADIUS_LDFLAGS} ${LIBSSH_LDFLAGS}
++                         ${RADIUS_LDFLAGS} ${LIBSSH_LDFLAGS} ${GNUTLS_LDFLAGS}
+                          ${GCRYPT_LDFLAGS} ${LDAP_LDFLAGS} ${REDIS_LDFLAGS}
+                          ${UUID_LDFLAGS} ${LINKER_HARDENING_FLAGS})
+ endif (BUILD_SHARED)
similarity index 93%
rename from net-analyzer/gvm-libs/gvm-libs-11.0.0.ebuild
rename to net-analyzer/gvm-libs/gvm-libs-11.0.0-r1.ebuild
index 9aa857c40e7c9d584916fc4cf37b3d539669e62b..00bd14e824abbf915884c88623b937b838802466 100644 (file)
@@ -44,6 +44,11 @@ BDEPEND="
                dev-perl/SQL-Translator
        )"
 
+PATCHES=(
+       # patch for missing gnutls linking https://github.com/greenbone/gvm-libs/issues/277
+       "${FILESDIR}/${P}-gnutls.patch"
+)
+
 src_prepare() {
        cmake_src_prepare
        # QA-Fix | Remove doxygen warnings for !CLANG