summaryrefslogtreecommitdiff
path: root/user/libtirpc
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-29 21:43:08 -0700
committerDan Theisen <djt@hxx.in>2018-09-30 15:00:51 -0700
commite668f57c242e3b2480944703f0d27ac89438019e (patch)
treeec7749e9768f5560b6360c05b2d5ed85915b78d9 /user/libtirpc
parent31e6c31d362678ce123de247d982d5ac28fef6dd (diff)
downloadpackages-e668f57c242e3b2480944703f0d27ac89438019e.tar.gz
packages-e668f57c242e3b2480944703f0d27ac89438019e.tar.bz2
packages-e668f57c242e3b2480944703f0d27ac89438019e.tar.xz
packages-e668f57c242e3b2480944703f0d27ac89438019e.zip
user/libtirpc: add musl patch from alpine
Diffstat (limited to 'user/libtirpc')
-rw-r--r--user/libtirpc/APKBUILD8
-rw-r--r--user/libtirpc/musl.patch11
2 files changed, 16 insertions, 3 deletions
diff --git a/user/libtirpc/APKBUILD b/user/libtirpc/APKBUILD
index 170e00fae..64124563a 100644
--- a/user/libtirpc/APKBUILD
+++ b/user/libtirpc/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libtirpc
pkgver=1.1.4
-pkgrel=0
+pkgrel=1
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
@@ -11,7 +11,8 @@ depends=""
depends_dev="bsd-compat-headers krb5-dev"
makedepends="$depends_dev autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
-source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
+ musl.patch"
build() {
cd "$builddir"
@@ -29,4 +30,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="392f391f9fc1bd68d81dc44e4058831a64b32790b5c8c37338b0ab416fad2ae4d16389e632596734dba09780347918cc65c6f134e0c1afd09e81ec250785ed23 libtirpc-1.1.4.tar.bz2"
+sha512sums="392f391f9fc1bd68d81dc44e4058831a64b32790b5c8c37338b0ab416fad2ae4d16389e632596734dba09780347918cc65c6f134e0c1afd09e81ec250785ed23 libtirpc-1.1.4.tar.bz2
+8e52246ae478ae9e4689426627e17d9c58d701f4fd21a40ffe3cf17c4ceaa4ab2e8e91d2fa3ba0d0c7adc52ae4b986fcda113ec86e370ede83903bb641de520c musl.patch"
diff --git a/user/libtirpc/musl.patch b/user/libtirpc/musl.patch
new file mode 100644
index 000000000..5a4fb04f5
--- /dev/null
+++ b/user/libtirpc/musl.patch
@@ -0,0 +1,11 @@
+--- ./tirpc/rpc/types.h.orig 2018-03-17 10:23:10.022055255 +0100
++++ ./tirpc/rpc/types.h 2018-03-17 10:23:30.877751656 +0100
+@@ -66,7 +66,7 @@
+ #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