diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-10-09 17:57:53 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-10-09 17:57:53 +0000 |
commit | 4bbe41b189777a450986518d8ff94a1dc74707a6 (patch) | |
tree | c090c183267775fbed89be01e5cdb42d14a6a304 /main | |
parent | 8c61abe3f578e0a02b066b0143fab052a8515238 (diff) | |
download | aports-4bbe41b189777a450986518d8ff94a1dc74707a6.tar.bz2 aports-4bbe41b189777a450986518d8ff94a1dc74707a6.tar.xz |
main/libmpdclient: fix musl build
Diffstat (limited to 'main')
-rw-r--r-- | main/libmpdclient/APKBUILD | 18 | ||||
-rw-r--r-- | main/libmpdclient/fix-includes.patch | 20 |
2 files changed, 34 insertions, 4 deletions
diff --git a/main/libmpdclient/APKBUILD b/main/libmpdclient/APKBUILD index 2d417547c..57e385af5 100644 --- a/main/libmpdclient/APKBUILD +++ b/main/libmpdclient/APKBUILD @@ -9,13 +9,20 @@ license="GPL2" depends= makedepends="doxygen" subpackages="$pkgname-dev $pkgname-doc" -source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.bz2" +source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.bz2 + fix-includes.patch + " _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } build() { @@ -33,6 +40,9 @@ package() { make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } -md5sums="79f6c810c291fa4f382a92c8e25123de libmpdclient-2.8.tar.bz2" -sha256sums="108eea3d91e48cd7d847e7c0978202a8386d5a09d49d07390473e96cca9a92e3 libmpdclient-2.8.tar.bz2" -sha512sums="c6584cc09e85e29aec837603c678a34bac8464ce35ef3a69b4e0bc78bf65fb1e738f8c88f7645269415f9f86a961c5f1d121c0696e2b12c3bc48d631e75cd034 libmpdclient-2.8.tar.bz2" +md5sums="79f6c810c291fa4f382a92c8e25123de libmpdclient-2.8.tar.bz2 +c43417acc0532a9dde5cca2169d7d6c6 fix-includes.patch" +sha256sums="108eea3d91e48cd7d847e7c0978202a8386d5a09d49d07390473e96cca9a92e3 libmpdclient-2.8.tar.bz2 +7686e0acf5c281abbac32ed2455f42e1b22b0aab52049dbfe8b70256caf6a21d fix-includes.patch" +sha512sums="c6584cc09e85e29aec837603c678a34bac8464ce35ef3a69b4e0bc78bf65fb1e738f8c88f7645269415f9f86a961c5f1d121c0696e2b12c3bc48d631e75cd034 libmpdclient-2.8.tar.bz2 +15e0fb66ee652a4b249ae6f1342bf022479fdd33b98fb4f299aa9fa07d07e8c122a9f568193a00916a00b24cdb4835a46ac7e8afbde5cd4eb8057523a0630783 fix-includes.patch" diff --git a/main/libmpdclient/fix-includes.patch b/main/libmpdclient/fix-includes.patch new file mode 100644 index 000000000..7551e2c49 --- /dev/null +++ b/main/libmpdclient/fix-includes.patch @@ -0,0 +1,20 @@ +--- libmpdclient-2.8.orig/src/socket.c ++++ libmpdclient-2.8/src/socket.c +@@ -43,6 +43,7 @@ + #else + # include <netinet/in.h> + # include <arpa/inet.h> ++# include <sys/types.h> + # include <sys/socket.h> + # include <netdb.h> + # include <sys/un.h> +--- libmpdclient-2.8.orig/src/sync.c ++++ libmpdclient-2.8/src/sync.c +@@ -35,6 +35,7 @@ + #include <stdio.h> + #include <fcntl.h> + #include <unistd.h> ++#include <sys/types.h> + + static bool + ignore_errno(int e) |