aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2019-07-10 00:53:39 -0500
committerJory Pratt <anarchy@gentoo.org>2019-07-10 00:53:39 -0500
commit19d4870f87c1caa7799984cb7cdf4db92cb1e581 (patch)
tree887a97413791619696957adf85434e7e7f6a7b26 /net-libs
parentnet-libs/libtirpc: clean stale patches (diff)
downloadmusl-19d4870f87c1caa7799984cb7cdf4db92cb1e581.tar.gz
musl-19d4870f87c1caa7799984cb7cdf4db92cb1e581.tar.bz2
musl-19d4870f87c1caa7799984cb7cdf4db92cb1e581.zip
net-libs/libtirpc: apply the minimilistic patch required to function
Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libtirpc/files/libtirpc-1.1.4-musl_types.patch29
-rw-r--r--net-libs/libtirpc/libtirpc-1.1.4-r1.ebuild (renamed from net-libs/libtirpc/libtirpc-1.1.4.ebuild)1
2 files changed, 29 insertions, 1 deletions
diff --git a/net-libs/libtirpc/files/libtirpc-1.1.4-musl_types.patch b/net-libs/libtirpc/files/libtirpc-1.1.4-musl_types.patch
new file mode 100644
index 0000000..cca35da
--- /dev/null
+++ b/net-libs/libtirpc/files/libtirpc-1.1.4-musl_types.patch
@@ -0,0 +1,29 @@
+From 45eb8f19128d061936237bf7f827671310161b82 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 10 Jul 2019 00:39:09 -0500
+Subject: [PATCH 2/2] Consider musl provided built-in defines
+
+Helps compile libtirpc with musl
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Jory Pratt <anarchy@gentoo.org>
+---
+ tirpc/rpc/types.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tirpc/rpc/types.h b/tirpc/rpc/types.h
+index f069efa..36299df 100644
+--- a/tirpc/rpc/types.h
++++ b/tirpc/rpc/types.h
+@@ -66,7 +66,7 @@ typedef int32_t rpc_inline_t;
+ #define mem_free(ptr, bsize) free(ptr)
+
+
+-#if defined __APPLE_CC__ || defined __FreeBSD__
++#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined(__GLIBC__)
+ # define __u_char_defined
+ # define __daddr_t_defined
+ #endif
+--
+2.22.0
+
diff --git a/net-libs/libtirpc/libtirpc-1.1.4.ebuild b/net-libs/libtirpc/libtirpc-1.1.4-r1.ebuild
index 19d4be2..dec5d9b 100644
--- a/net-libs/libtirpc/libtirpc-1.1.4.ebuild
+++ b/net-libs/libtirpc/libtirpc-1.1.4-r1.ebuild
@@ -22,7 +22,6 @@ DEPEND="${RDEPEND}
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
PATCHES=(
- "${FILESDIR}/${PN}-1.0.2-bcopy-to-memmove.patch"
"${FILESDIR}/${PN}-1.0.3-musl_types.patch"
)