Source: netkit-rwall Version: 0.17-8 Severity: serious Tags: patch ftbfs Justification: fails to build from source (but built successfully in the past)
Dear maintainer, The glibc SunRPC implementation has been marked obsolete for some time. It has been removed upstream from glibc 2.32, and it got disabled in the recent glibc uploads. The TI RPC implementation should be used instead. For this reason netkit-rwall now fails to build from source. You will find attached a patch to switch to the TI RPC implementation, fixing the FTBFS. Regards, Aurelien
--- netkit-rwall-0.17/debian/control +++ netkit-rwall-0.17/debian/control @@ -3,7 +3,7 @@ Priority: optional Maintainer: Alberto Gonzalez Iniesta <a...@inittab.org> Standards-Version: 4.2.1 -Build-Depends: debhelper (>= 10~), cmake +Build-Depends: debhelper (>= 10~), cmake, pkg-config, libtirpc-dev Package: rwalld Architecture: any --- netkit-rwall-0.17/debian/patches/series +++ netkit-rwall-0.17/debian/patches/series @@ -1,3 +1,4 @@ define-salen.patch fix-typo.patch use-cmake-as-buildsystem.patch +use-cmake-as-buildsystem-tirpc.patch --- netkit-rwall-0.17/debian/patches/use-cmake-as-buildsystem-tirpc.patch +++ netkit-rwall-0.17/debian/patches/use-cmake-as-buildsystem-tirpc.patch @@ -0,0 +1,38 @@ +Description: Use TI RPC instead of GNU libc RPC +Author: Aurelien Jarno <aure...@debian.org> +Forwarded: no +Last-Update: 2021-08-25 + +--- netkit-rwall-0.17.orig/CMakeLists.txt ++++ netkit-rwall-0.17/CMakeLists.txt +@@ -5,5 +5,8 @@ set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin + set(SBIN_DIR "${CMAKE_INSTALL_PREFIX}/sbin") + set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man") + ++find_package(PkgConfig REQUIRED) ++pkg_check_modules(TIRPC REQUIRED libtirpc) ++ + add_subdirectory(rpc.rwalld) + add_subdirectory(rwall) +--- netkit-rwall-0.17.orig/rpc.rwalld/CMakeLists.txt ++++ netkit-rwall-0.17/rpc.rwalld/CMakeLists.txt +@@ -15,6 +15,8 @@ add_executable( + rwalld.c + rwall.h + ) ++target_include_directories(rpc.rwalld PUBLIC ${TIRPC_INCLUDE_DIRS}) ++target_link_libraries(rpc.rwalld ${TIRPC_LIBRARIES}) + install( + TARGETS rpc.rwalld + DESTINATION ${SBIN_DIR} +--- netkit-rwall-0.17.orig/rwall/CMakeLists.txt ++++ netkit-rwall-0.17/rwall/CMakeLists.txt +@@ -14,6 +14,8 @@ add_executable( + rwall.c + rwall.h + ) ++target_include_directories(rwall PUBLIC ${TIRPC_INCLUDE_DIRS}) ++target_link_libraries(rwall ${TIRPC_LIBRARIES}) + install( + TARGETS rwall + DESTINATION ${BIN_DIR}