Source: netkit-rusers Version: 0.17-10 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-rusers 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-rusers-0.17/debian/control +++ netkit-rusers-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 (>= 11), cmake +Build-Depends: debhelper (>= 11), cmake, pkg-config, libtirpc-dev Package: rusersd Architecture: any --- netkit-rusers-0.17/debian/patches/series +++ netkit-rusers-0.17/debian/patches/series @@ -2,3 +2,4 @@ system-headers-location.patch use-cmake-as-buildsystem.patch use-cmake-as-buildsystem-debian-extras.patch +use-cmake-as-buildsystem-tirpc.patch --- netkit-rusers-0.17/debian/patches/use-cmake-as-buildsystem-tirpc.patch +++ netkit-rusers-0.17/debian/patches/use-cmake-as-buildsystem-tirpc.patch @@ -0,0 +1,50 @@ +Description: Use TI RPC instead of GNU libc RPC +Author: Aurelien Jarno <aure...@debian.org> +Forwarded: no +Last-Update: 2021-08-25 + +--- netkit-rusers-0.17.orig/CMakeLists.txt ++++ netkit-rusers-0.17/CMakeLists.txt +@@ -7,6 +7,9 @@ set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/sha + + set(USE_GLIBC 1) + ++find_package(PkgConfig REQUIRED) ++pkg_check_modules(TIRPC REQUIRED libtirpc) ++ + add_subdirectory(rpc.rusersd) + add_subdirectory(rup) + add_subdirectory(rusers) +--- netkit-rusers-0.17.orig/rpc.rusersd/CMakeLists.txt ++++ netkit-rusers-0.17/rpc.rusersd/CMakeLists.txt +@@ -21,6 +21,8 @@ add_executable( + daemon.c + rusers.h + ) ++target_include_directories(rpc.rusersd PUBLIC ${TIRPC_INCLUDE_DIRS}) ++target_link_libraries(rpc.rusersd ${TIRPC_LIBRARIES}) + install( + TARGETS rpc.rusersd + DESTINATION ${SBIN_DIR} +--- netkit-rusers-0.17.orig/rup/CMakeLists.txt ++++ netkit-rusers-0.17/rup/CMakeLists.txt +@@ -16,6 +16,8 @@ add_executable( + rstat_xdr.c + rstat.h + ) ++target_include_directories(rup PUBLIC ${TIRPC_INCLUDE_DIRS}) ++target_link_libraries(rup ${TIRPC_LIBRARIES}) + install( + TARGETS rup + DESTINATION ${BIN_DIR} +--- netkit-rusers-0.17.orig/rusers/CMakeLists.txt ++++ netkit-rusers-0.17/rusers/CMakeLists.txt +@@ -23,6 +23,8 @@ add_executable( + rusers_xdr.c + rusers.h + ) ++target_include_directories(rusers PUBLIC ${TIRPC_INCLUDE_DIRS}) ++target_link_libraries(rusers ${TIRPC_LIBRARIES}) + install( + TARGETS rusers + DESTINATION ${BIN_DIR}