diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /net-libs/rpcsvc-proto | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'net-libs/rpcsvc-proto')
-rw-r--r-- | net-libs/rpcsvc-proto/Manifest | 2 | ||||
-rw-r--r-- | net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4-external-libintl.patch | 47 | ||||
-rw-r--r-- | net-libs/rpcsvc-proto/rpcsvc-proto-1.4-r1.ebuild | 36 |
3 files changed, 85 insertions, 0 deletions
diff --git a/net-libs/rpcsvc-proto/Manifest b/net-libs/rpcsvc-proto/Manifest index b5bd6c00855c..f4ee581e9279 100644 --- a/net-libs/rpcsvc-proto/Manifest +++ b/net-libs/rpcsvc-proto/Manifest @@ -1,4 +1,6 @@ +AUX rpcsvc-proto-1.4-external-libintl.patch 1718 BLAKE2B 9484dd528679c3cac286ae0aaea7491bbb54f00df14bbc7891809684d48eda81441745bf1d822c96775f02519de0f4e98ffd9f99cac86954874420586fbe35bf SHA512 92c1d8048e28ced24bae24e0bb7001cf65e6c8274b67a3ed4a1015e094201a812aa85d75ed280fca40b94a1b5c61b657dbf0afd538d7c59219abdf51c5af3f29 DIST rpcsvc-proto-1.4.tar.gz 59127 BLAKE2B 484c04d6a0f86d37c0057693771b7fe502166504fc419bce4dd182f76e349cf226307814a2c51b27fa0bc09e270b883cb40ae821f8bd7d7e0c9a120c4962ae34 SHA512 a29d7761ec9cca4d7d7aa6943a243771a6c7f35d303f01af84f390c8395dc5e543fad7ea28fec1be2f6ee8f2853bf22a157ad3b020057040685b6cbce9b09415 EBUILD rpcsvc-proto-0.ebuild 481 BLAKE2B 4e507a8892c32f17d0852603b2828ca6b69621fc2686db96016b81f1112d1fd38ef6b83798800710fea95cc2bed21b95957c72c83dbbc2397a724c9907891d6d SHA512 9ca5e01d4aeb44b676f958b895a5bdb754ba88b2db19f4c8522408e073e1c901297c135391e1fd94368e9b1c87671e84523715458c98567d60ff3b037eca4cc5 +EBUILD rpcsvc-proto-1.4-r1.ebuild 803 BLAKE2B 802dd445f8a13d0030c0d82f31a40e812cef9157efd229c9f64ff3ab6ecd862075b6cd432d390bd04eed25121f908df372df0479185e5d9203f7c37991aa605b SHA512 4e77071aa69aed0d0227cba0bedeae38930c84ede43e67070a3509d99ed2201f82f3aa49cf2843fdb5846f4f04d07d27cc28de8d3eaaae8e1dcacde6b4cd9846 EBUILD rpcsvc-proto-1.4.ebuild 636 BLAKE2B 7ab5930b37236fe1ea6a68e2388e8cb29537be09f27810213b185686ddd0dba9103cb846155d84fa3a26354ea30bfa302dd3aec98d5a8eb0d045f9696af41310 SHA512 9d14f4183f64d416cc68f8051ab76542330efdc076311eb6000f9382181c1ea888c28698914d7823f069b9eaeac21d2ea13441e4fe83ae1d7a51304466959d68 MISC metadata.xml 379 BLAKE2B 9fb870d3a0ed3c94fdc445b5fabd01e52bd29428a9b464729a23a6e23918d2425a1e2ee850b36c0d5205bd76143e49a23f1d1c8366eef186736f1376c2bb5ce3 SHA512 00a77262e76176fbc54ff2d1d8ba070868f185f5f940abd25ad1af80fd52f1560c9e0290c42283a98519a653a334ed6dfd4e0f8540d10946253b3afc205bb753 diff --git a/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4-external-libintl.patch b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4-external-libintl.patch new file mode 100644 index 000000000000..a5088735bbb1 --- /dev/null +++ b/net-libs/rpcsvc-proto/files/rpcsvc-proto-1.4-external-libintl.patch @@ -0,0 +1,47 @@ +From 2527c37f956aa38408e251587556a6c8389af319 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Sun, 29 Dec 2019 23:38:28 +0000 +Subject: [PATCH] configure.ac: autodetect need for external libintl + +uclibc-ng and macos standard libraries don't provide libintl +facilities. As a result build fails as +(x86_64-gentoo-linux-uclibc example): + +``` +... +gcc -g -O2 -o rpcgen rpc_clntout.o rpc_cout.o rpc_hout.o rpc_main.o rpc_parse.o rpc_sample.o rpc_scan.o rpc_svcout.o rpc_tblout.o rpc_util.o +/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: rpc_main.o: in function `usage': +/root/rpcsvc-proto/rpcgen/rpc_main.c:1403: undefined reference to `libintl_gettext' +/usr/lib/gcc/x86_64-gentoo-linux-uclibc/9.2.0/../../../../x86_64-gentoo-linux-uclibc/bin/ld: /root/rpcsvc-proto/rpcgen/rpc_main.c:1404: undefined reference to `libintl_gettext' +... +``` + +The change is simple: add gettext m4 macros to detect need +for libintl and link to an external library if needed. + +Tested on x86_64-glibc and x86_64-uclibc-ng. + +Reported-by: Anton +Bug: https://bugs.gentoo.org/637084 +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> + +--- a/configure.ac ++++ b/configure.ac +@@ -16,4 +16,7 @@ AC_ISC_POSIX + AC_PROG_INSTALL + AC_PROG_MAKE_SET + ++AM_GNU_GETTEXT([external]) ++AM_GNU_GETTEXT_VERSION([0.18.1]) ++ + AC_OUTPUT([Makefile rpcgen/Makefile rpcsvc/Makefile]) +--- a/rpcgen/Makefile.am ++++ b/rpcgen/Makefile.am +@@ -10,3 +10,4 @@ noinst_HEADERS = proto.h rpc_parse.h rpc_scan.h rpc_util.h + rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \ + rpc_parse.c rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c \ + rpc_util.c ++rpcgen_LDADD = $(LIBINTL) +-- +2.24.1 + diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4-r1.ebuild new file mode 100644 index 000000000000..7a8ead0d69d7 --- /dev/null +++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~riscv ~s390 ~sh ~sparc ~x86" +IUSE="" + +# sys-devel/gettext is only for libintl detection macros. +DEPEND="sys-devel/gettext" +RDEPEND=" + !<sys-libs/glibc-2.26 + virtual/libintl +" + +PATCHES=("${FILESDIR}"/${P}-external-libintl.patch) + +src_prepare(){ + default + eautoreconf +} + +src_install(){ + default + + # provided by sys-fs/quota[rpc] + rm "${ED}"/usr/include/rpcsvc/rquota.{x,h} || die +} |