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