[Buildroot] [PATCH 2/2] package/x11r7/xserver_xorg-server: fix musl build

Bernd Kuhls bernd.kuhls at t-online.de
Sun Jan 24 15:21:59 UTC 2016


The autobuilders did not catch the error yet because they failed
earlier with other packages, but I am continuing the build based
on the defconfig from:
http://autobuild.buildroot.net/results/6fb/6fbe96af007803acfe9deacf26399cb19e5f2b47/defconfig

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 .../0002-musl-arm-inb-outb.patch                   | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/x11r7/xserver_xorg-server/0002-musl-arm-inb-outb.patch

diff --git a/package/x11r7/xserver_xorg-server/0002-musl-arm-inb-outb.patch b/package/x11r7/xserver_xorg-server/0002-musl-arm-inb-outb.patch
new file mode 100644
index 0000000..14ddc1c
--- /dev/null
+++ b/package/x11r7/xserver_xorg-server/0002-musl-arm-inb-outb.patch
@@ -0,0 +1,25 @@
+Fix musl build
+
+Downloaded from http://patchwork.openembedded.org/patch/111661/
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
+
+
+inb/outb family for arm is only implemented on glibc
+so assumption across linux is wrong
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+Upstream-Status: Pending
+Index: xorg-server-1.18.0/hw/xfree86/common/compiler.h
+===================================================================
+--- xorg-server-1.18.0.orig/hw/xfree86/common/compiler.h
++++ xorg-server-1.18.0/hw/xfree86/common/compiler.h
+@@ -758,7 +758,7 @@ inl(unsigned short port)
+     return xf86ReadMmio32Le((void *) ioBase, port);
+ }
+ 
+-#elif defined(__arm__) && defined(__linux__)
++#elif defined(__arm__) && defined(__GLIBC__)
+ 
+ /* for Linux on ARM, we use the LIBC inx/outx routines */
+ /* note that the appropriate setup via "ioperm" needs to be done */
-- 
2.7.0.rc3



More information about the buildroot mailing list