Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 530080 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-libs/libtirpc/ChangeLog (+187 lines)
Line 0 Link Here
1
# ChangeLog for net-libs/libtirpc
2
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/ChangeLog,v 1.44 2014/12/30 18:09:41 maekke Exp $
4
5
  30 Dec 2014; Markus Meier <maekke@gentoo.org> libtirpc-0.2.5.ebuild:
6
  arm stable, bug #525268
7
8
  09 Dec 2014; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.5.ebuild:
9
  Stable for HPPA (bug #525268).
10
11
  12 Aug 2014; Mike Frysinger <vapier@gentoo.org>
12
  +files/libtirpc-0.2.5-stdarg.patch, libtirpc-0.2.5.ebuild:
13
  Add missing include of stdarg.h.
14
15
  11 Aug 2014; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.4-r1.ebuild:
16
  Mark arm64/ppc/ppc64/s390/sh stable #514912.
17
18
*libtirpc-0.2.5 (09 Aug 2014)
19
20
  09 Aug 2014; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.5.ebuild:
21
  Version bump.
22
23
  01 Aug 2014; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.4-r1.ebuild:
24
  ia64/sparc stable wrt #514912
25
26
  18 Jul 2014; Tobias Klausmann <klausman@gentoo.org> libtirpc-0.2.4-r1.ebuild:
27
  Stable on alpha, bug #514912
28
29
  28 Jun 2014; Sergey Popov <pinkbyte@gentoo.org> libtirpc-0.2.4-r1.ebuild:
30
  amd64/arm/x86 stable, wrt bug #514912
31
32
  25 Jun 2014; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.4-r1.ebuild:
33
  Stable for HPPA (bug #514912).
34
35
  18 Jun 2014; Michał Górny <mgorny@gentoo.org> libtirpc-0.2.4-r2.ebuild:
36
  Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug
37
  #513718.
38
39
*libtirpc-0.2.4-r2 (30 May 2014)
40
41
  30 May 2014; Michał Górny <mgorny@gentoo.org> +libtirpc-0.2.4-r2.ebuild:
42
  Enable multilib support.
43
44
*libtirpc-0.2.4-r1 (02 Feb 2014)
45
46
  02 Feb 2014; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.4-r1.ebuild:
47
  Depend on virtual/krb5 for USE=kerberos rather than gssglue #493912 by Torsten
48
  Kaiser.
49
50
  18 Jan 2014; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.2-r1.ebuild,
51
  libtirpc-0.2.3.ebuild, libtirpc-0.2.4.ebuild:
52
  Add arm64 love.
53
54
*libtirpc-0.2.4 (10 Dec 2013)
55
56
  10 Dec 2013; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.4.ebuild:
57
  Version bump.
58
59
*libtirpc-0.2.3 (18 Feb 2013)
60
61
  18 Feb 2013; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.3.ebuild:
62
  Version bump.
63
64
  09 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -libtirpc-0.2.2.ebuild:
65
  Remove masked version.
66
67
  05 May 2012; Jeff Horelick <jdhore@gentoo.org> libtirpc-0.2.1-r1.ebuild,
68
  libtirpc-0.2.2.ebuild, libtirpc-0.2.2-r1.ebuild:
69
  dev-util/pkgconfig -> virtual/pkgconfig
70
71
  02 Mar 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
72
  Marking libtirpc-0.2.2-r1 ppc64 for bug 394979
73
74
  15 Feb 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
75
  Marking libtirpc-0.2.2-r1 ppc for bug 394979
76
77
  15 Jan 2012; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.2-r1.ebuild:
78
  alpha/ia64/s390/sh/sparc stable wrt #394979
79
80
  04 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org>
81
  libtirpc-0.2.2-r1.ebuild:
82
  x86 stable wrt bug #394979
83
84
  22 Dec 2011; Markus Meier <maekke@gentoo.org> libtirpc-0.2.2-r1.ebuild:
85
  arm stable, bug #394979
86
87
  20 Dec 2011; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.2-r1.ebuild:
88
  Stable for HPPA (bug #394979).
89
90
  16 Dec 2011; Agostino Sarubbo <ago@gentoo.org> libtirpc-0.2.2-r1.ebuild:
91
  Stable for AMD64, wrt bug #394979
92
93
*libtirpc-0.2.2-r1 (11 Jun 2011)
94
95
  11 Jun 2011; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.2-r1.ebuild,
96
  +files/libtirpc-0.2.2-rpc-des-prot.patch:
97
  Stub out des_crypt for now #370713 by Nicolas Schlumberger, fix building with
98
  glibc-2.14 #370663 by Diego Elio Pettenò, restore static lib support, and
99
  start installing into / for glibc replacement.
100
101
*libtirpc-0.2.2 (07 Jun 2011)
102
103
  07 Jun 2011; Diego E. Pettenò <flameeyes@gentoo.org> +libtirpc-0.2.2.ebuild:
104
  Version bump, which should hopefully build with glibc-2.14.
105
106
  20 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org>
107
  libtirpc-0.2.1-r1.ebuild:
108
  ppc64 stable wrt #340189
109
110
  13 Nov 2010; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.1-r1.ebuild:
111
  alpha/ia64/s390/sh/sparc stable wrt #340189
112
113
  26 Oct 2010; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.1-r1.ebuild:
114
  Stable for HPPA (bug #340189).
115
116
  16 Oct 2010; Markus Meier <maekke@gentoo.org> libtirpc-0.2.1-r1.ebuild:
117
  arm stable, bug #340189
118
119
  15 Oct 2010; Brent Baude <ranger@gentoo.org> libtirpc-0.2.1-r1.ebuild:
120
  stable ppc, bug 340189
121
122
  10 Oct 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
123
  libtirpc-0.2.1-r1.ebuild:
124
  x86 stable wrt bug #340189
125
126
  10 Oct 2010; Markos Chandras <hwoarang@gentoo.org>
127
  libtirpc-0.2.1-r1.ebuild:
128
  Stable on amd64 wrt bug #340189
129
130
  12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
131
  files/libtirpc-0.2.1-fortify.patch:
132
  Use an even better patch to avoid overflow on the other senses if
133
  hp_length is less than four.
134
135
*libtirpc-0.2.1-r1 (12 Sep 2010)
136
137
  12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
138
  -libtirpc-0.2.0.ebuild, -files/libtirpc-0.2.0-hppa-float.patch,
139
  -files/libtirpc-0.2.0-no-gss.patch, -libtirpc-0.2.1.ebuild,
140
  +libtirpc-0.2.1-r1.ebuild, +files/libtirpc-0.2.1-fortify.patch:
141
  Add patch to fix a possible overflow (reported by _FORTIFY_SOURCE=2);
142
  thanks to Joshua Kinard (Kumba) for reporting. Cleanup old versions and
143
  patches.
144
145
*libtirpc-0.2.1 (23 Jul 2010)
146
147
  23 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
148
  +libtirpc-0.2.1.ebuild:
149
  Version bump, disable static libraries (it needs gssapi that uses libdl
150
  anyway), remove .la file (helps fixing bug #293593), move to EAPI=2 while
151
  at it.
152
153
  30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild,
154
  +files/libtirpc-0.2.0-hppa-float.patch:
155
  Fix build failure on hppa and add keywords for all.
156
157
  30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild:
158
  Restore /etc/netconfig file.
159
160
  30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild,
161
  +files/libtirpc-0.2.0-no-gss.patch:
162
  Fix link error when USE=-gss.
163
164
*libtirpc-0.2.0 (30 May 2009)
165
166
  30 May 2009; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.0.ebuild:
167
  Version bump.
168
169
  01 Feb 2009; Markus Meier <maekke@gentoo.org> libtirpc-0.1.10.ebuild:
170
  amd64/x86 stable, bug #256691
171
172
*libtirpc-0.1.10 (28 Nov 2008)
173
174
  28 Nov 2008; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.1.10.ebuild:
175
  Version bump #249151 by Chi-Thanh Christopher Nguyen.
176
177
*libtirpc-0.1.7-r1 (11 May 2008)
178
179
  11 May 2008; Mike Frysinger <vapier@gentoo.org>
180
  +files/libtirpc-0.1.7-CVE-2007-3999.patch, +libtirpc-0.1.7-r1.ebuild:
181
  Add fix for CVE-2007-3999 #214208 by Robert Buchholz.
182
183
*libtirpc-0.1.7 (29 Dec 2007)
184
185
  29 Dec 2007; Mike Frysinger <vapier@gentoo.org> +metadata.xml,
186
  +libtirpc-0.1.7.ebuild:
187
  Initial ebuild by me.
(-)a/net-libs/libtirpc/Manifest (+15 lines)
Line 0 Link Here
1
AUX 0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch 2012 SHA256 9ff042aa7ba870d2d581f2815eee9cae7620df6b3a725da4c4d555325a08a05d SHA512 e60fc98c9efaa4675d08e85b669d8dea07b2c7e7b268344e06e172f5751baf6fae7f354149d738f4bbe139ff5b964f1d80d0bfa91a1c9ca94f9ab9489618166d WHIRLPOOL b0977e6af76929f9279b253ecb30c7b265da130bb76ea87ab5709372bb74f02b3a7c508394b72be785c7396cc171ec2da98857b1b49dcca3a3f6324d8f2c7b28
2
AUX 0002-Misc-header-fixes.patch 1074 SHA256 519dd9015db2505404118e0067c7cbfec22b0df1371691c52568290f4a6641eb SHA512 aa5c158fb2c8f28b046831d383edc78421f71f4f632d1880e4beb30c9dfb1ea8814889c1256a82fccde06d1cfe7840ed23e857900a38bc738bf31d79c7a1ef75 WHIRLPOOL 334e566fd89f40134f46f2c852f15cf6d2062f6bec9d5fb6773b81a4abc45096acbc4577543f9a73b68578678fda6be2a5b512f90e031524126cde75040a6b7d
3
AUX 0003-fix_cdefs_h_include.patch 15313 SHA256 c5bae800d887a08eba89d817b6cc19c4337b14e53f2ce8e9fb7e9984dbfe4168 SHA512 cf686acda95f8ccca486b518ee2ada42a443b3cc524bf4374b770612f501e0f2a75c61c8586a9d490ce3ee1e373559cf72c380d9fa99a75d0037b74e35fa3647 WHIRLPOOL 12915a1d45649695198c20bd609681f640bdbf3a1b40554d051e6a07534b7889a4676990edab90605571f0bc2caaebae074f3c6ec9ef88304c597acd0580b7a8
4
AUX 0004-fix_DECLS.patch 29124 SHA256 bdc844c56cfe2d5b060d59fee009576895504e2df492423ddaedd9915c785650 SHA512 8d0efe87a0e8444dd10d4b63430dfd038a7591a0a1e54bc539a4023c7421a89caae1c811d6a2ed4e33fd4d0beebd48c11fc28b5de41dbedf0c1e0fbeb8885cf3 WHIRLPOOL 5ec477f9dfb79a53b2689dea6e158c42437f0c15e18f0eebd3aede63e59b1191974fd913b26db352feb84d468dd7770e102510022ae2b017aa634f0e9e335a27
5
AUX 0005-fix_remaining_issues.patch 373 SHA256 db061da4e22c4ed9192587a622454e69c6999b5ccfdafa5588957440051277e2 SHA512 db70a64424904a669534e25c70b13dffb0ddd3437e81f6fee69ac2399e00bdd4e83ee9c65bc0bb789e28c1ac8e030a22461642e699fd371a4f147782a5845912 WHIRLPOOL 06e9f643c66867ddf965427e5c874eaa3c4275b961634d3fc669120275e3db8613a9bd997d612976c078584e016234f34e5a4abfeef20eb655997c7825e8cb56
6
AUX 0006-fix_queue_h_include.patch 1788 SHA256 3b8f296eb375052210874ebc3caeadd0cdf689a27e279761e16d76b411e89f8f SHA512 f5a419d883dc6fc0bc6ebb02c3b1f7ce95aeb2b261eb5a49498b600844a27041b32f146fd8bba3d1769c32a67a15b9e40d9ffe3598d9448ebfc4fde6446e69aa WHIRLPOOL 1e7b71255a11abd45dc88b74d8d8146f60c0a621ebe42f437e45e01f791a0ca020c27f841091f556d33fd284336b2e8cc8fa91fa9ca9ed5dd5904c1a5fe82212
7
AUX 0007-no-des.patch 960 SHA256 12823f030b803045108df782018d04ca253d4439b0e92015ddb140dcd33c1be3 SHA512 95ad086657d008a01a4072ba7141391cbbe8ac35372b2f063a3f9774eb5dfa12b97bcff0c1b6da2d887001beaa60a8524823df93a8de2fdb73ad2a30340770ba WHIRLPOOL bd075834fddeff5ae86b90273f5c7b820f88649045e65b63d09dc26c35ada0fd1162dcf8aeb1cd82ad59b9092eceb92e154fa58c9beca540dc31ead7cc96b72e
8
AUX libtirpc-0.2.1-fortify.patch 704 SHA256 e3436a6de8182e51c577000917feffc6428b6907d8bf1b56318acd999d34b056 SHA512 a0d01771c0ca0292bbbb95d77d9369dbf0ebb27693a709e110d3c0924e40b5a1ebdeba39035772269b8f42ddb964eb985778c17b725a7031a5b1c0beb7d582f5 WHIRLPOOL 051b13d4cbc1a4aa454d9782756c5e533add93118f9b5d01de1a77ace2d3eeb7ccc3fb029e1e319cf7887a5182713193ca559d5e8e70508163e77604e1599b06
9
AUX libtirpc-0.2.2-rpc-des-prot.patch 979 SHA256 f09e866816973c6aac5c6e19d3007440b85ff42fe3c36ad0c3ee02dd657eb90c SHA512 18d2941c682c98f0fe940d08f65493b588274d64691cc2c1b939e1054d2b58a576f04c55f97f0d92d16993854dbde17c031f0429f90ae1ead0f01645f17b6513 WHIRLPOOL 9d009725fc2a95005467b7eb921e5c53f9f256ee85e09f36ed8960347da24041c8ddf4762d6d3175b9816cb210c2a89a8afb15f70162417b85ef222df2db8737
10
AUX libtirpc-0.2.5-stdarg.patch 667 SHA256 2b31b1148af9d96c9a9e6f609c0b5b03424954d6251c18d64b6119afd8afa6f7 SHA512 2197f8c2ed3b4dbfc54ee37e973a6e275d19c6dde5d066b9ce45beecdbb17c9e620d7c6f0997b7ebfeb2bd1741327028a793b34edd94d59a89c8b36ac102b025 WHIRLPOOL 90d4e88c18f0d93ab8dfef4981377c2a6df42ff90b70049d07e203e7b66a5087910fe501cf9e1b93782eb25a8b3a8680c03287ccc563b838f517e5d1524b12c5
11
DIST libtirpc-0.2.5.tar.bz2 459094 SHA256 62f9de7c2c8686c568757730e1fef66502a0e00d6cacf33546d0267984e002db SHA512 9f8afa1acb04a2c2c558018f2528f8caaa79994a2af2abeed947f914145872ef72988b241e11925c799db0de9ec51fd9baecd2b08150240b22f91e2e55a45194 WHIRLPOOL a2b4f1c4825f2b774c2290cccd9d552bb7566ec9eb5988d3ab619d7870a907600f67e7af39fbc3e245606db8534f114c990145789c383206d3a9cf96cf043d8c
12
DIST libtirpc-glibc-nfs.tar.xz 8948 SHA256 2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba WHIRLPOOL 06bcf3fd4e424a86071e5c4ddeb89aa571c862e765aae9382d9f9a55ab72cd1c623490555c1a9bd3380a2d04ecb10fb47a75a7dddf449d4368a1a01617226858
13
EBUILD libtirpc-0.2.5-r99.ebuild 2022 SHA256 c952c25e75474875c3c47920326bd3d2a20f6591df3f08f11cc593f38e37fcff SHA512 01b5736251ba5b56aa50b1882d16026709d58063d9070510cee269b315a8581051b66d853bba06562cce15d2d3d6eafe7782375eb4d6f81f1ef45cfee673018b WHIRLPOOL 23cc692e38df31db8e72b74bb1595eda7dddbb419f668350bfcef7e1a8f1e72ecd8e1657b9da660fe9653ee73dd74e5be3c59fc06574ce69af3d95091102d734
14
MISC ChangeLog 6596 SHA256 d9586ff7ce934567739513273ff6b2a4f7f48d00e9b2900d82a99f082f28441b SHA512 5bd95b49ba599c3cff6e383bc45a2240663976c7c709ce688f749f7f3733c532ca508a21055f8f6b826957da92f256e633c22bddc7cc92c378a4725b09638430 WHIRLPOOL 772e38ee6c50727c15d1968d498317965c4325ecf7f1bb4b49e23235754ba912271448c8e524397700d0a63e771dfe3284df767e836cb7e386020952ee9b7f6d
15
MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289
(-)a/net-libs/libtirpc/files/0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch (+85 lines)
Line 0 Link Here
1
From d3b5ffed6d7d49cc93b2343afcf0e4502a3e54ce Mon Sep 17 00:00:00 2001
2
From: Natanael Copa <ncopa@alpinelinux.org>
3
Date: Thu, 24 Apr 2014 09:19:45 +0200
4
Subject: [PATCH 1/2] Provide getrpcbynumber and getrpcbyname if those are
5
 missing
6
7
We enable the config.h again and check fi getrpcbynumber and
8
getrpcbyname exists on the building patform. If it does not exist, then
9
provide those functions.
10
11
This is needed for musl libc.
12
---
13
 configure.ac    |  6 ++++--
14
 src/getrpcent.c | 10 ++++++++--
15
 2 files changed, 12 insertions(+), 4 deletions(-)
16
17
diff --git a/configure.ac b/configure.ac
18
index 10d17ea..0180801 100644
19
--- a/configure.ac
20
+++ b/configure.ac
21
@@ -24,14 +24,16 @@ if test "x$enable_ipv6" != xno; then
22
 fi
23
 
24
 AC_PROG_CC
25
-m4_pattern_allow(AM_CONFIG_HEADERS(config.h))
26
+AC_CONFIG_HEADERS([config.h])
27
 AC_PROG_LIBTOOL
28
 AC_HEADER_DIRENT
29
 AC_PREFIX_DEFAULT(/usr)
30
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h])
31
 AC_CHECK_LIB([pthread], [pthread_create])
32
 AC_CHECK_LIB([nsl], [yp_get_default_domain])
33
-
34
+AC_CHECK_FUNCS([getrpcbyname getrpcbynumber])
35
 
36
 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
37
 AC_OUTPUT(libtirpc.pc)
38
+
39
+
40
diff --git a/src/getrpcent.c b/src/getrpcent.c
41
index 1b54b6d..6da006a 100644
42
--- a/src/getrpcent.c
43
+++ b/src/getrpcent.c
44
@@ -50,6 +50,10 @@
45
 #include <libc_private.h>
46
 #endif
47
 
48
+#if HAVE_CONFIG_H
49
+#include "config.h"
50
+#endif
51
+
52
 /*
53
  * Internet version.
54
  */
55
@@ -89,7 +93,7 @@ _rpcdata()
56
 	return (d);
57
 }
58
 
59
-#ifdef GQ
60
+#if !HAVE_GETRPCBYNYMBER
61
 struct rpcent *
62
 getrpcbynumber(number)
63
 	int number;
64
@@ -135,7 +139,9 @@ no_yp:
65
 	endrpcent();
66
 	return (p);
67
 }
68
+#endif /* !HAVE_GETRPCBYNUMBER */
69
 
70
+#if !HAVE_GETRPCBYNAME
71
 struct rpcent *
72
 getrpcbyname(name)
73
 	const char *name;
74
@@ -158,7 +164,7 @@ done:
75
 	endrpcent();
76
 	return (rpc);
77
 }
78
-#endif /* GQ */
79
+#endif /* !HAVE_GETRPCBYNAME */
80
 
81
 void
82
 setrpcent(f)
83
-- 
84
1.9.2
85
(-)a/net-libs/libtirpc/files/0002-Misc-header-fixes.patch (+40 lines)
Line 0 Link Here
1
From ed6dc31ed1092baf42f99278ef9c5c297805c3d0 Mon Sep 17 00:00:00 2001
2
From: Natanael Copa <ncopa@alpinelinux.org>
3
Date: Thu, 24 Apr 2014 08:58:20 +0200
4
Subject: [PATCH 2/2] Misc header fixes
5
6
src/bindresvport.c: IPPORT_RESERVED needs netdb.h
7
8
Misc fixes for building on musl libc
9
---
10
 src/bindresvport.c | 1 +
11
 tirpc/netconfig.h  | 1 +
12
 tirpc/rpc/rpcent.h | 2 +-
13
 tirpc/rpc/types.h  | 1 +
14
 4 files changed, 4 insertions(+), 1 deletion(-)
15
16
diff --git a/src/bindresvport.c b/src/bindresvport.c
17
index d6d9c14..5a7a1a9 100644
18
--- a/src/bindresvport.c
19
+++ b/src/bindresvport.c
20
@@ -37,6 +37,7 @@
21
 #include <sys/types.h>
22
 #include <sys/socket.h>
23
 
24
+#include <netdb.h>
25
 #include <netinet/in.h>
26
 
27
 #include <errno.h>
28
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
29
index c865e51..a36cf91 100644
30
--- a/tirpc/rpc/rpcent.h
31
+++ b/tirpc/rpc/rpcent.h
32
@@ -47,7 +47,7 @@
33
 __BEGIN_DECLS
34
 
35
 /* These are defined in /usr/include/rpc/netdb.h */
36
-#if 0
37
+#if !defined(__GLIBC__)
38
 struct rpcent {
39
 	char	*r_name;	/* name of server for this rpc program */
40
 	char	**r_aliases;	/* alias list */
(-)a/net-libs/libtirpc/files/0007-no-des.patch (+33 lines)
Line 0 Link Here
1
--- ./tirpc/rpc/xdr.h.orig	2014-11-28 09:09:44.902289976 +0000
Line 0 Link Here
1
--- ./tirpc/rpc/xdr.h.orig	2014-11-28 09:16:53.990289976 +0000
Line 0 Link Here
1
--- ./tirpc/rpc/rpcent.h	2014-11-21 21:33:50.421928818 +0000
Line 0 Link Here
1
--- src/clnt_bcast.c.orig	2014-11-28 09:31:22.462289976 +0000
Line 0 Link Here
1
--- libtirpc-0.2.5.orig/src/Makefile.am
2
+++ libtirpc-0.2.5/src/Makefile.am
3
@@ -51,7 +51,7 @@
4
         rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
5
         rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
6
         svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
7
-        auth_time.c auth_des.c authdes_prot.c debug.c
8
+        auth_time.c debug.c
9
 
10
 ## XDR
11
 libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c
12
--- libtirpc-0.2.5.orig/src/rpc_soc.c
13
+++ libtirpc-0.2.5/src/rpc_soc.c
14
@@ -520,6 +520,7 @@
15
 	    (resultproc_t) rpc_wrap_bcast, "udp");
16
 }
17
 
18
+#if 0
19
 /*
20
  * Create the client des authentication object. Obsoleted by
21
  * authdes_seccreate().
22
@@ -551,6 +552,7 @@
23
 	dummy = authdes_seccreate(servername, window, NULL, ckey);
24
 	return (dummy);
25
 }
26
+#endif
27
 
28
 /*
29
  * Create a client handle for a unix connection. Obsoleted by clnt_vc_create()
(-)a/net-libs/libtirpc/files/libtirpc-0.2.1-fortify.patch (+18 lines)
Line 0 Link Here
1
Index: libtirpc-0.2.1/src/getrpcport.c
2
===================================================================
3
--- libtirpc-0.2.1.orig/src/getrpcport.c
4
+++ libtirpc-0.2.1/src/getrpcport.c
5
@@ -54,11 +54,11 @@ getrpcport(host, prognum, versnum, proto
6
 
7
 	if ((hp = gethostbyname(host)) == NULL)
8
 		return (0);
9
+	if (hp->h_length != sizeof(addr.sin_addr.s_addr))
10
+		return (0);
11
 	memset(&addr, 0, sizeof(addr));
12
 	addr.sin_family = AF_INET;
13
 	addr.sin_port =  0;
14
-	if (hp->h_length > sizeof(addr))
15
-	  hp->h_length = sizeof(addr);
16
 	memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
17
 	/* Inconsistent interfaces need casts! :-( */
18
 	return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum, 
(-)a/net-libs/libtirpc/files/libtirpc-0.2.2-rpc-des-prot.patch (+36 lines)
Line 0 Link Here
1
From f2f43212b33dea42635061c82645287454a70107 Mon Sep 17 00:00:00 2001
2
From: Mike Frysinger <vapier@gentoo.org>
3
Date: Sat, 11 Jun 2011 15:21:55 -0400
4
Subject: [PATCH] add multiple inclusion protection to rpc/des.h
5
6
If you try to include this file multiple times, you get a build failure
7
due to redefinitions of enums and such.
8
9
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10
---
11
 tirpc/rpc/des.h |    5 +++++
12
 1 files changed, 5 insertions(+), 0 deletions(-)
13
14
diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h
15
index e3d6897..d2881ad 100644
16
--- a/tirpc/rpc/des.h
17
+++ b/tirpc/rpc/des.h
18
@@ -33,6 +33,9 @@
19
  * Copyright (c) 1986 by Sun Microsystems, Inc.
20
  */
21
 
22
+#ifndef _RPC_DES_H_
23
+#define _RPC_DES_H_
24
+
25
 #define DES_MAXLEN 	65536	/* maximum # of bytes to encrypt  */
26
 #define DES_QUICKLEN	16	/* maximum # of bytes to encrypt quickly */
27
 
28
@@ -80,3 +83,5 @@ struct desparams {
29
  * Software DES.
30
  */
31
 extern int _des_crypt( char *, int, struct desparams * );
32
+
33
+#endif
34
-- 
35
1.7.5.3
36
(-)a/net-libs/libtirpc/files/libtirpc-0.2.5-stdarg.patch (+29 lines)
Line 0 Link Here
1
From d26607bade0893fe8652e1a0983f9fae59c64649 Mon Sep 17 00:00:00 2001
2
From: Mike Frysinger <vapier@gentoo.org>
3
Date: Tue, 12 Aug 2014 03:11:41 -0400
4
Subject: [PATCH libtirpc] include stdarg.h when used
5
6
The debug.h header uses va_list but doesn't include stdarg.h which
7
can lead to random build failures.
8
9
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10
---
11
 src/debug.h | 2 ++
12
 1 file changed, 2 insertions(+)
13
14
diff --git a/src/debug.h b/src/debug.h
15
index afc8d57..c971ac3 100644
16
--- a/src/debug.h
17
+++ b/src/debug.h
18
@@ -21,6 +21,8 @@
19
 
20
 #ifndef _DEBUG_H
21
 #define _DEBUG_H
22
+
23
+#include <stdarg.h>
24
 #include <syslog.h>
25
 
26
 extern int libtirpc_debug_level;
27
-- 
28
2.0.0
29
(-)a/net-libs/libtirpc/libtirpc-0.2.5-r99.ebuild (+74 lines)
Line 0 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.5.ebuild,v 1.4 2014/12/30 18:09:41 maekke Exp $
4
5
EAPI="4"
6
7
inherit multilib-minimal toolchain-funcs autotools
8
9
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
10
HOMEPAGE="http://libtirpc.sourceforge.net/"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
12
	mirror://gentoo/${PN}-glibc-nfs.tar.xz"
13
14
LICENSE="GPL-2"
15
SLOT="0"
16
KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
17
IUSE="ipv6 kerberos static-libs"
18
19
RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )"
20
DEPEND="${RDEPEND}
21
	app-arch/xz-utils
22
	>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
23
RDEPEND="${RDEPEND}
24
	abi_x86_32? (
25
		!<=app-emulation/emul-linux-x86-baselibs-20140508-r7
26
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
27
	)"
28
29
src_unpack() {
30
	unpack ${A}
31
	cp -r tirpc "${S}"/ || die
32
}
33
34
src_prepare() {
35
	epatch "${FILESDIR}"/${P}-stdarg.patch
36
	epatch "${FILESDIR}"/0001-Provide-getrpcbynumber-and-getrpcbyname-if-those-are.patch
37
	epatch "${FILESDIR}"/0002-Misc-header-fixes.patch
38
	epatch "${FILESDIR}"/0003-fix_cdefs_h_include.patch
39
	epatch "${FILESDIR}"/0004-fix_DECLS.patch
40
	epatch "${FILESDIR}"/0005-fix_remaining_issues.patch
41
	epatch "${FILESDIR}"/0006-fix_queue_h_include.patch
42
	epatch "${FILESDIR}"/0007-no-des.patch
43
	eautoconf
44
	eautoreconf
45
}
46
47
multilib_src_configure() {
48
	ECONF_SOURCE=${S} \
49
	econf \
50
		$(use_enable ipv6) \
51
		$(use_enable kerberos gssapi) \
52
		$(use_enable static-libs static)
53
}
54
55
multilib_src_install() {
56
	default
57
58
	# libtirpc replaces rpc support in glibc, so we need it in /
59
	multilib_is_native_abi && gen_usr_ldscript -a tirpc
60
}
61
62
multilib_src_install_all() {
63
	einstalldocs
64
65
	insinto /etc
66
	doins doc/netconfig
67
68
	insinto /usr/include/tirpc
69
	doins -r "${WORKDIR}"/tirpc/*
70
71
	# makes sure that the linking order for nfs-utils is proper, as
72
	# libtool would inject a libgssglue dependency in the list.
73
	use static-libs || prune_libtool_files
74
}
(-)a/net-libs/libtirpc/metadata.xml (-1 / +5 lines)
Line 0 Link Here
0
- 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
<herd>net-fs</herd>
5
</pkgmetadata>

Return to bug 530080