Control: tags -1 + patch

Dear maintainer,

the attached patch fixes the FTBFS with GCC 9.

Kind regards,
  Reiner
diff -Nru netkit-rsh-0.17/debian/patches/gcc9.patch netkit-rsh-0.17/debian/patches/gcc9.patch
--- netkit-rsh-0.17/debian/patches/gcc9.patch	1970-01-01 01:00:00.000000000 +0100
+++ netkit-rsh-0.17/debian/patches/gcc9.patch	2019-10-04 22:44:32.000000000 +0200
@@ -0,0 +1,29 @@
+Author: Reiner Herrmann <[email protected]>
+Description: Fix FTBFS with gcc 9
+ Use target_link_libraries instead of manually setting linker flags,
+ which will correctly invoke the compiler.
+Bug-Debian: https://bugs.debian.org/925786
+
+--- a/rexecd/CMakeLists.txt
++++ b/rexecd/CMakeLists.txt
+@@ -1,9 +1,4 @@
+ 
+-if(USE_PAM)
+-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_PAM")
+-    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpam -lpam_misc")
+-endif()
+-
+ if(USE_SHADOW)
+     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_SHADOW")
+     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LIBSHADOW}")
+@@ -18,6 +13,10 @@
+     in.rexecd
+     rexecd.c
+ )
++if(USE_PAM)
++    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_PAM")
++    target_link_libraries(in.rexecd pam pam_misc)
++endif()
+ install(
+     TARGETS in.rexecd
+     DESTINATION ${SBIN_DIR}
diff -Nru netkit-rsh-0.17/debian/patches/series netkit-rsh-0.17/debian/patches/series
--- netkit-rsh-0.17/debian/patches/series	2019-01-28 16:36:37.000000000 +0100
+++ netkit-rsh-0.17/debian/patches/series	2019-10-04 22:44:32.000000000 +0200
@@ -4,3 +4,4 @@
 use-cmake-as-buildsystem-debian-extras.patch
 rcp-memory-leak.patch
 fix-CVE-2018-20685-and-CVE-2019-6111.patch
+gcc9.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to