git.iko.soy/typeable/nixpkgs
on master help sign in
rpcbind: fix for libtiprc 1.0.1
commitf48d1f088d4e274a378fb86480f86dbccd70660f authorNikolay Amiantov <ab@fmap.me> dateWed 13 Jan 2016, 21:16 (11 years ago) parent9aca5ed
2 files changed+47−1
pkgs/servers/rpcbind/0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch+43 pkgs/servers/rpcbind/default.nix+4−1
pkgs/servers/rpcbind/0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patchnew file+43
@@ -0,0 +1,43 @@
1+From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
2+From: Steve Dickson <steved@redhat.com>
3+Date: Mon, 2 Nov 2015 17:05:18 -0500
4+Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
5+
6+In the latest libtirpc version to access the xp_auth
7+one must use the SVC_XP_AUTH macro. To be backwards
8+compatible a couple ifdefs were added to use the
9+macro when it exists.
10+
11+Upstream-Status: Backport
12+
13+Signed-off-by: Steve Dickson <steved@redhat.com>
14+Signed-off-by: Maxin B. John <maxin.john@intel.com>
15+---
16+ src/rpcb_svc_com.c | 7 +++++++
17+ 1 file changed, 7 insertions(+)
18+
19+diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
20+index 4ae93f1..22d6c84 100644
21+--- a/src/rpcb_svc_com.c
22++++ b/src/rpcb_svc_com.c
23+@@ -1295,10 +1295,17 @@ handle_reply(int fd, SVCXPRT *xprt)
24+ a.rmt_localvers = fi->versnum;
25+
26+ xprt_set_caller(xprt, fi);
27++#if defined(SVC_XP_AUTH)
28++ SVC_XP_AUTH(xprt) = svc_auth_none;
29++#else
30+ xprt->xp_auth = &svc_auth_none;
31++#endif
32+ svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
33++#if !defined(SVC_XP_AUTH)
34+ SVCAUTH_DESTROY(xprt->xp_auth);
35+ xprt->xp_auth = NULL;
36++#endif
37++
38+ done:
39+ if (buffer)
40+ free(buffer);
41+--
42+2.4.0
43+
pkgs/servers/rpcbind/default.nix+4−1
@@ -10,7 +10,10 @@ in stdenv.mkDerivation rec {
1010 sha256 = "0yyjzv4161rqxrgjcijkrawnk55rb96ha0pav48s03l2klx855wq";
1111 };
1212
13− patches = [ ./sunrpc.patch ];
13+ patches = [
14+ ./sunrpc.patch
15+ ./0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
16+ ];
1417
1518 buildInputs = [ libtirpc ]
1619 ++ stdenv.lib.optional useSystemd systemd;