Source: grok
Version: 1.20110708.1-4.5
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)


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,
which also brings new features (IPv6, Kerberos support, ...).

For this reason grok now fails to build from source. You will find
attached a patch to switch to the TI RPC implementation, fixing the
FTBFS.

Regards,
Aurelien
--- grok-1.20110708.1/debian/control
+++ grok-1.20110708.1/debian/control
@@ -14,6 +14,7 @@
  libevent-dev,
  libpcre3-dev,
  libtokyocabinet-dev,
+ libtirpc-dev,
 Standards-Version: 3.9.3
 Homepage: http://code.google.com/p/semicomplete/wiki/Grok
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/grok.git
--- grok-1.20110708.1/debian/patches/libtirpc.patch
+++ grok-1.20110708.1/debian/patches/libtirpc.patch
@@ -0,0 +1,19 @@
+Description: use TI RPC implementation instead of removed GNU libc one
+Author: Aurelien Jarno <aure...@debian.org>
+Last-Update: 2021-08-24
+
+--- grok-1.20110708.1.orig/Makefile
++++ grok-1.20110708.1/Makefile
+@@ -31,6 +31,12 @@ ifeq ($(PLATFORM), GNULinux)
+ LDFLAGS+=-ldl
+ endif
+ 
++# Use TI RPC on GNU/Linux
++ifeq ($(PLATFORM), GNULinux)
++CFLAGS+=-I/usr/include/tirpc
++LDFLAGS+=-ltirpc
++endif
++
+ # For GNU/kFreeBSD, we also need libdl
+ ifeq ($(PLATFORM), GNUkFreeBSD)
+ LDFLAGS+=-ldl
--- grok-1.20110708.1/debian/patches/series
+++ grok-1.20110708.1/debian/patches/series
@@ -7,3 +7,4 @@
 gperf-function-declaration.patch
 move_ldflags.patch
 fix_gcc10.patch
+libtirpc.patch

Reply via email to