[gentoo-commits] repo/gentoo:master commit in: net-libs/rpcsvc-proto/, net-libs/rpcsvc-proto/files/
commit: 9e5eb81267aa903a742d9e63e5fee668a0b0cbdb Author: Ian Jordan gmail com> AuthorDate: Tue May 9 20:04:10 2023 + Commit: Sam James gentoo org> CommitDate: Tue May 9 20:49:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e5eb812 net-libs/rpcsvc-proto: LFS64 shim fix The autoconf macro AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS=64 where necessary to ensure that off_t and all interfaces using off_t are 64bit, even on 32bit systems. Replace stat64 by equivalent stat struct/func. Closes: https://bugs.gentoo.org/905985 Signed-off-by: Ian Jordan gmail.com> Closes: https://github.com/gentoo/gentoo/pull/30960 Signed-off-by: Sam James gentoo.org> .../files/rpcsvc-proto-1.4.3-lfs64.patch | 70 ++ net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r2.ebuild | 50 2 files changed, 120 insertions(+) diff --git a/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4.3-lfs64.patch b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4.3-lfs64.patch new file mode 100644 index ..8d45fac6151b --- /dev/null +++ b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4.3-lfs64.patch @@ -0,0 +1,70 @@ +From https://github.com/thkukuk/rpcsvc-proto/commit/2527c37f956aa38408e251587556a6c8389af319.patch Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 11 Dec 2022 21:42:59 -0800 +Subject: [PATCH] Use AC_SYS_LARGEFILE macro to control largefile support + +The autoconf macro AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS=64 +where necessary to ensure that off_t and all interfaces using off_t +are 64bit, even on 32bit systems. + +replace stat64 by equivalent stat struct/func + +Signed-off-by: Khem Raj +--- a/configure.ac b/configure.ac +@@ -8,6 +8,7 @@ AC_PREFIX_DEFAULT(/usr) + AC_SUBST(PACKAGE) + AC_SUBST(VERSION) + ++AC_SYS_LARGEFILE + AC_PROG_CC + AC_GNU_SOURCE + AM_PROG_CC_C_O +--- a/rpcgen/rpc_main.c b/rpcgen/rpc_main.c +@@ -62,12 +62,6 @@ + #define EXTEND1 /* alias for TRUE */ + #define DONT_EXTEND 0 /* alias for FALSE */ + +-#ifdef __APPLE__ +-# if __DARWIN_ONLY_64_BIT_INO_T +-# define stat64 stat +-# endif +-#endif +- + struct commandline + { + int cflag;/* xdr C routines */ +@@ -337,9 +331,9 @@ clear_args (void) + static void + find_cpp (void) + { +- struct stat64 buf; ++ struct stat buf; + +- if (stat64 (CPP, ) == 0) ++ if (stat (CPP, ) == 0) + return; + + if (cppDefined) /* user specified cpp but it does not exist */ +@@ -1125,17 +1119,17 @@ putarg (int whereto, const char *cp) + static void + checkfiles (const char *infile, const char *outfile) + { +- struct stat64 buf; ++ struct stat buf; + + if (infile) /* infile ! = NULL */ +-if (stat64 (infile, ) < 0) ++if (stat (infile, ) < 0) + { + perror (infile); + crash (); + } + if (outfile) + { +- if (stat64 (outfile, ) < 0) ++ if (stat (outfile, ) < 0) + return; /* file does not exist */ + else + { diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r2.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r2.ebuild new file mode 100644 index ..5905665d8edf --- /dev/null +++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="rpcsvc protocol definitions from glibc" +HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto; +SRC_URI="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${PV}/${P}.tar.xz; + +LICENSE="LGPL-2.1+ BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND="!/dev/null; then + cpp=${x} + break + fi + done + [[ -n ${cpp} ]] || die "Unable to find cpp" + sed -i -e "s/CPP = \"cpp\";/CPP = \"${cpp}\";/" rpcgen/rpc_main.c || die +} + +src_install() { + default + + # provided by sys-fs/quota[rpc] + rm "${ED}"/usr/include/rpcsvc/rquota.{x,h} || die +}
[gentoo-commits] repo/gentoo:master commit in: net-libs/rpcsvc-proto/, net-libs/rpcsvc-proto/files/
commit: be2c1c92db1be3df23b524663e29bad7e37623dd Author: Matt Turner gentoo org> AuthorDate: Sat Sep 28 18:06:11 2019 + Commit: Matt Turner gentoo org> CommitDate: Sat Sep 28 18:27:12 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be2c1c92 net-libs/rpcsvc-proto: Drop old versions Signed-off-by: Matt Turner gentoo.org> net-libs/rpcsvc-proto/Manifest | 1 - .../rpcsvc-proto-1.3.1-old-preprocessor.patch | 31 -- net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild | 30 - 3 files changed, 62 deletions(-) diff --git a/net-libs/rpcsvc-proto/Manifest b/net-libs/rpcsvc-proto/Manifest index dc231fa6a21..fa54be5fddd 100644 --- a/net-libs/rpcsvc-proto/Manifest +++ b/net-libs/rpcsvc-proto/Manifest @@ -1,2 +1 @@ -DIST rpcsvc-proto-1.3.1.tar.gz 59174 BLAKE2B d50d958cfad79142d686ae6312cdaa6044f1322bc794dbc95c1b78d088396c5adda292c83d150f3502df859c23d4e370894283ae210e5fe9aa1d0e8ed05553d0 SHA512 d687665ed51fd6fd66ab638813c5020f0c8b8491625b91937ac4b5ee4dd2357eae8e2909394e7651494e7aea77a6279ae907ba6354682ba446de7088b55f54ea DIST rpcsvc-proto-1.4.tar.gz 59127 BLAKE2B 484c04d6a0f86d37c0057693771b7fe502166504fc419bce4dd182f76e349cf226307814a2c51b27fa0bc09e270b883cb40ae821f8bd7d7e0c9a120c4962ae34 SHA512 a29d7761ec9cca4d7d7aa6943a243771a6c7f35d303f01af84f390c8395dc5e543fad7ea28fec1be2f6ee8f2853bf22a157ad3b020057040685b6cbce9b09415 diff --git a/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch deleted file mode 100644 index 5d77786a712..000 --- a/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch +++ /dev/null @@ -1,31 +0,0 @@ -From ce0ed4f45918f9230db435ee3b733090fa4f9620 Mon Sep 17 00:00:00 2001 -From: Florian Weimer -Date: Tue, 27 Mar 2018 12:08:30 +0200 -Subject: [PATCH] Remove historic _RPC_THREAD_SAFE_ preprocessor conditional - -When the code was imported from glibc, the -D_RPC_THREAD_SAFE_ -build flag was missed. - rpcgen/rpc_main.c | 9 - - 1 file changed, 9 deletions(-) - -diff --git a/rpcgen/rpc_main.c b/rpcgen/rpc_main.c -index 94bd818..1b26e52 100644 a/rpcgen/rpc_main.c -+++ b/rpcgen/rpc_main.c -@@ -1346,15 +1346,6 @@ parseargs (int argc, const char *argv[], struct commandline *cmd) - cmd->Scflag = flag['C']; - cmd->makefileflag = flag['M']; - --#ifndef _RPC_THREAD_SAFE_ -- if (mtflag || newstyle) --{ -- /* glibc doesn't support these flags. */ -- f_print (stderr, -- _("This implementation doesn't support newstyle or MT-safe code!\n")); -- return (0); --} --#endif - if (tirpcflag) - { - pmflag = inetdflag ? 0 : 1;/* pmflag or inetdflag is always TRUE */ diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild deleted file mode 100644 index 8a8003bcc44..000 --- a/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -DESCRIPTION="rpcsvc protocol definitions from glibc" -HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto; -SRC_URI="https://github.com/thkukuk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="LGPL-2.1+ BSD" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -RDEPEND="!
[gentoo-commits] repo/gentoo:master commit in: net-libs/rpcsvc-proto/, net-libs/rpcsvc-proto/files/
commit: f7b0379fea249e278a88ac8d68081ba25972a8b9 Author: Pacho Ramos gentoo org> AuthorDate: Sun Apr 15 12:45:39 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Sun Apr 15 12:46:03 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7b0379f net-libs/rpcsvc-proto: Drop obsolete preprocessor conditional (#650852) Package-Manager: Portage-2.3.28, Repoman-2.3.9 .../rpcsvc-proto-1.3.1-old-preprocessor.patch | 31 ++ net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild | 30 + 2 files changed, 61 insertions(+) diff --git a/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch new file mode 100644 index 000..5d77786a712 --- /dev/null +++ b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.3.1-old-preprocessor.patch @@ -0,0 +1,31 @@ +From ce0ed4f45918f9230db435ee3b733090fa4f9620 Mon Sep 17 00:00:00 2001 +From: Florian Weimer+Date: Tue, 27 Mar 2018 12:08:30 +0200 +Subject: [PATCH] Remove historic _RPC_THREAD_SAFE_ preprocessor conditional + +When the code was imported from glibc, the -D_RPC_THREAD_SAFE_ +build flag was missed. +--- + rpcgen/rpc_main.c | 9 - + 1 file changed, 9 deletions(-) + +diff --git a/rpcgen/rpc_main.c b/rpcgen/rpc_main.c +index 94bd818..1b26e52 100644 +--- a/rpcgen/rpc_main.c b/rpcgen/rpc_main.c +@@ -1346,15 +1346,6 @@ parseargs (int argc, const char *argv[], struct commandline *cmd) + cmd->Scflag = flag['C']; + cmd->makefileflag = flag['M']; + +-#ifndef _RPC_THREAD_SAFE_ +- if (mtflag || newstyle) +-{ +- /* glibc doesn't support these flags. */ +- f_print (stderr, +- _("This implementation doesn't support newstyle or MT-safe code!\n")); +- return (0); +-} +-#endif + if (tirpcflag) + { + pmflag = inetdflag ? 0 : 1;/* pmflag or inetdflag is always TRUE */ diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild new file mode 100644 index 000..414a3aa7a6a --- /dev/null +++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.3.1-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="rpcsvc protocol definitions from glibc" +HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto; +SRC_URI="https://github.com/thkukuk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="LGPL-2.1+ BSD" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +RDEPEND="!