From d7c48c0ba426e66217e98f536c88117adb6ea49b478dbfb717658c47f4c1dff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 2 May 2016 12:34:43 +0000 Subject: [PATCH] Accepting request 392950 from GNOME:Next 1 OBS-URL: https://build.opensuse.org/request/show/392950 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pixman?expand=0&rev=91 --- pixman-private-correct-include.patch | 44 ++++++++++++++++++++++++++++ pixman.changes | 6 ++++ pixman.spec | 3 ++ 3 files changed, 53 insertions(+) create mode 100644 pixman-private-correct-include.patch diff --git a/pixman-private-correct-include.patch b/pixman-private-correct-include.patch new file mode 100644 index 0000000..091c3b2 --- /dev/null +++ b/pixman-private-correct-include.patch @@ -0,0 +1,44 @@ +From 7c6066b700c7cdd4aeb8be426b14b3a5f0de4b6c Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Sun, 17 Jan 2016 15:22:50 +0100 +Subject: pixman-private: include only in C code + + is included unconditionally by pixman-private.h, which in +turn gets included by assembler files. Unfortunately, with certain C +libraries (like the musl C library), cannot be included in +assembler files: + + CCLD libpixman-arm-simd.la +/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages: +/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)' +/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages: +/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)' + +It turns out however that is not needed by assembly files, +so we move its inclusion within the #ifndef __ASSEMBLER__ condition, +which solves the problem. + +Signed-off-by: Thomas Petazzoni +Reviewed-by: Siarhei Siamashka + +diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h +index 73108a0..73a5414 100644 +--- a/pixman/pixman-private.h ++++ b/pixman/pixman-private.h +@@ -1,5 +1,3 @@ +-#include +- + #ifndef PIXMAN_PRIVATE_H + #define PIXMAN_PRIVATE_H + +@@ -30,6 +28,7 @@ + #include + #include + #include ++#include + + #include "pixman-compiler.h" + +-- +cgit v0.10.2 + diff --git a/pixman.changes b/pixman.changes index a415cc9..c14ac6d 100644 --- a/pixman.changes +++ b/pixman.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 4 16:11:45 UTC 2016 - zaitor@opensuse.org + +- Add pixman-private-correct-include.patch: pixman-private: include + only in C code, patch from upstream git. + ------------------------------------------------------------------- Mon Feb 1 21:14:02 UTC 2016 - zaitor@opensuse.org diff --git a/pixman.spec b/pixman.spec index 7b1e810..6b30afb 100644 --- a/pixman.spec +++ b/pixman.spec @@ -25,6 +25,8 @@ Group: System/Libraries Url: http://xorg.freedesktop.org/ Source: http://cairographics.org/releases/%{name}-%{version}.tar.gz Source99: baselibs.conf +# PATCH-FIX-UPSTREAM pixman-private-correct-include.patch zaitor@opensuse.org -- pixman-private: include only in C code +Patch0: pixman-private-correct-include.patch BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -48,6 +50,7 @@ Pixman is a pixel manipulation library for X and cairo. %prep %setup -q +%patch0 -p1 %build #autoreconf -fi