summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <alip@exherbo.org> 2018-05-27 16:18:03 +0200
committerAvatar Ali Polatel <alip@exherbo.org> 2018-05-27 16:21:40 +0200
commitb25e95d5ad836dec7bd9dff2565c6a6c0b47653c (patch)
tree285509a13daf4226f19d6b672b8fffbd451a6f53
parentf50b26a64a530dcb55a62dded18d4cf42bb1c189 (diff)
downloadarbor-b25e95d5ad836dec7bd9dff2565c6a6c0b47653c.tar.gz
arbor-b25e95d5ad836dec7bd9dff2565c6a6c0b47653c.tar.xz
libtirpc: add patch for musl
-rw-r--r--packages/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch15
-rw-r--r--packages/net-libs/libtirpc/libtirpc-1.0.3.exheres-02
2 files changed, 17 insertions, 0 deletions
diff --git a/packages/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch b/packages/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch
new file mode 100644
index 0000000..d66124c
--- /dev/null
+++ b/packages/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch
@@ -0,0 +1,15 @@
+Source: https://raw.githubusercontent.com/gentoo/musl/master/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch
+Upstream: TODO
+Reason: libtirpc does not build with musl
+diff -Naur libtirpc-1.0.3.orig/tirpc/rpc/types.h libtirpc-1.0.3/tirpc/rpc/types.h
+--- libtirpc-1.0.3.orig/tirpc/rpc/types.h 2018-03-20 09:30:54.610040509 -0700
++++ libtirpc-1.0.3/tirpc/rpc/types.h 2018-03-20 09:33:43.502037484 -0700
+@@ -66,7 +66,7 @@
+ #define mem_free(ptr, bsize) free(ptr)
+
+
+-#if defined __APPLE_CC__ || defined __FreeBSD__
++#if defined __APPLE_CC__ || defined __FreeBSD__ || (defined(__linux__) && !defined(__GLIBC__))
+ # define __u_char_defined
+ # define __daddr_t_defined
+ #endif
diff --git a/packages/net-libs/libtirpc/libtirpc-1.0.3.exheres-0 b/packages/net-libs/libtirpc/libtirpc-1.0.3.exheres-0
index 48e88e3..3d14978 100644
--- a/packages/net-libs/libtirpc/libtirpc-1.0.3.exheres-0
+++ b/packages/net-libs/libtirpc/libtirpc-1.0.3.exheres-0
@@ -26,6 +26,8 @@ DEPENDENCIES="
)
"
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PNV}-musl_types.patch" )
+
DEFAULT_SRC_CONFIGURE_PARAMS=(
--enable-ipv6
--disable-static