summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-24 16:21:58 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-01-26 21:43:04 +0100
commitc6514c83e7999d642de320f0162884742877ab00 (patch)
treed71e1c48fbb1855605ab18a0441e105d789a03cb
parenta148e2da7b0eba04cc8777f6dc7e3df782512f5f (diff)
downloadbuildroot-c6514c83e7999d642de320f0162884742877ab00.tar.gz
buildroot-c6514c83e7999d642de320f0162884742877ab00.zip
package/libpciaccess: fix musl build
Also added note about upstream commit to patch 0001. Fixes http://autobuild.buildroot.net/results/e86/e869e08779626ac578017e6b34a82adf156d12f8/ http://autobuild.buildroot.net/results/0bf/0bf803654e7298d5cd0b31fc55b1babdcd2f8765/ http://autobuild.buildroot.net/results/f5a/f5a516cf6c25af89000019b6789d5a003099cdff/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libpciaccess/0001-limits_h.patch4
-rw-r--r--package/libpciaccess/0002-musl-arm.patch20
2 files changed, 22 insertions, 2 deletions
diff --git a/package/libpciaccess/0001-limits_h.patch b/package/libpciaccess/0001-limits_h.patch
index 9afa203cc4..c5c8444a59 100644
--- a/package/libpciaccess/0001-limits_h.patch
+++ b/package/libpciaccess/0001-limits_h.patch
@@ -3,8 +3,8 @@ Fix compilation error with musl-based toolchain
linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
char name[PATH_MAX];
-Patch already sent upstream by Felix Janda
-http://lists.x.org/archives/xorg-devel/2014-December/044723.html
+Patch applied upstream:
+http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=8ea3af620a2d4ad5648917b4a0ef2b23ff566774
Signed-off-by: Felix Janda <felix.janda at posteo.de>
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff --git a/package/libpciaccess/0002-musl-arm.patch b/package/libpciaccess/0002-musl-arm.patch
new file mode 100644
index 0000000000..0077f451bf
--- /dev/null
+++ b/package/libpciaccess/0002-musl-arm.patch
@@ -0,0 +1,20 @@
+Fix musl build
+
+Inspired by http://patchwork.openembedded.org/patch/111661/
+"inb/outb are implemented for ARM on glibc but not on linux in general
+therefore the conditional has to reflect that"
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr libpciaccess-0.13.4.org/src/linux_sysfs.c libpciaccess-0.13.4/src/linux_sysfs.c
+--- libpciaccess-0.13.4.org/src/linux_sysfs.c 2015-05-01 06:44:47.000000000 +0200
++++ libpciaccess-0.13.4/src/linux_sysfs.c 2016-01-24 15:27:57.141562678 +0100
+@@ -49,7 +49,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+
+-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
++#if defined(__i386__) || defined(__x86_64__)
+ #include <sys/io.h>
+ #else
+ #define inb(x) -1
OpenPOWER on IntegriCloud