diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 12:51:19 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 12:51:19 +0000 |
commit | 02e3b0af91057fe8113a3a4727f08a14fb075b55 (patch) | |
tree | 897402549d8000010acdef82bd015b6ae6bd1018 /main/libpciaccess | |
parent | 847cb13cff14c0d843794b6c2fa88ef80c1e7c7a (diff) | |
download | aports-02e3b0af91057fe8113a3a4727f08a14fb075b55.tar.bz2 aports-02e3b0af91057fe8113a3a4727f08a14fb075b55.tar.xz |
main/libpciaccess: fix musl build
Diffstat (limited to 'main/libpciaccess')
-rw-r--r-- | main/libpciaccess/APKBUILD | 28 | ||||
-rw-r--r-- | main/libpciaccess/fix-includes.patch | 21 |
2 files changed, 43 insertions, 6 deletions
diff --git a/main/libpciaccess/APKBUILD b/main/libpciaccess/APKBUILD index 85e1851079..ca0ab30699 100644 --- a/main/libpciaccess/APKBUILD +++ b/main/libpciaccess/APKBUILD @@ -9,10 +9,23 @@ license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="pkgconfig" -source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2" +source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2 + fix-includes.patch + " + +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -22,11 +35,14 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } -md5sums="b7c0d3afce14eedca57312a3141ec13a libpciaccess-0.13.2.tar.bz2" -sha256sums="abab8c2b050afb89bc29280e9c6b50ec5867174960d88bfb81a01036ec20de19 libpciaccess-0.13.2.tar.bz2" -sha512sums="312d891c1337256c9aeeda2c743907ce8c51444a165a97d2007fd2f8d05cafab37cf16e85288244490e514bcfbd7ba050d985130efe3dc2f6ed316dd46e6ad1d libpciaccess-0.13.2.tar.bz2" +md5sums="b7c0d3afce14eedca57312a3141ec13a libpciaccess-0.13.2.tar.bz2 +c5d611d1ddaf5cc80a5061b5b08779ae fix-includes.patch" +sha256sums="abab8c2b050afb89bc29280e9c6b50ec5867174960d88bfb81a01036ec20de19 libpciaccess-0.13.2.tar.bz2 +c52241f2017e0614e0c4e9ae94ff8f9c82dd2d93bf545a8ac28fe651c4da65eb fix-includes.patch" +sha512sums="312d891c1337256c9aeeda2c743907ce8c51444a165a97d2007fd2f8d05cafab37cf16e85288244490e514bcfbd7ba050d985130efe3dc2f6ed316dd46e6ad1d libpciaccess-0.13.2.tar.bz2 +055666cf4e61169c8e1b9f2dd687a627908369fe02e764afe270193e69af6c946b158d11e5d3ea2013ad46ee76f966fe490fd683a9ea5a61e22e95c1bc2d98c5 fix-includes.patch" diff --git a/main/libpciaccess/fix-includes.patch b/main/libpciaccess/fix-includes.patch new file mode 100644 index 0000000000..6685ee80f4 --- /dev/null +++ b/main/libpciaccess/fix-includes.patch @@ -0,0 +1,21 @@ +--- libpciaccess-0.13.2.orig/src/linux_sysfs.c ++++ libpciaccess-0.13.2/src/linux_sysfs.c +@@ -44,6 +44,7 @@ + #include <sys/mman.h> + #include <dirent.h> + #include <errno.h> ++#include <limits.h> + + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) + #include <sys/io.h> +--- libpciaccess-0.13.2.orig/src/pciaccess_private.h ++++ libpciaccess-0.13.2/src/pciaccess_private.h +@@ -42,7 +42,7 @@ + * know of any OS we support where this isn't available in a sufficiently + * new version, so warn unconditionally. + */ +-#include <sys/fcntl.h> ++#include <fcntl.h> + + #ifndef O_CLOEXEC + #warning O_CLOEXEC not available, please upgrade. |