app-emulation/qemu: Drop a -Werror when it could cause a false positive
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Aug 2016 14:01:31 +0000 (16:01 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Aug 2016 14:01:31 +0000 (16:01 +0200)
The check code could trigger recent compiler warnings.

Package-Manager: portage-2.2.26

app-emulation/qemu/files/qemu-2.6.0-glib-size_t.patch [new file with mode: 0644]
app-emulation/qemu/qemu-2.6.0.ebuild

diff --git a/app-emulation/qemu/files/qemu-2.6.0-glib-size_t.patch b/app-emulation/qemu/files/qemu-2.6.0-glib-size_t.patch
new file mode 100644 (file)
index 0000000..5fd678c
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure        2016-08-07 15:50:20.386687733 +0200
++++ b/configure        2016-08-07 15:53:55.489691690 +0200
+@@ -2967,7 +2967,7 @@
+ }
+ EOF
+
+-if ! compile_prog "-Werror $CFLAGS" "$LIBS" ; then
++if ! compile_prog "$CFLAGS" "$LIBS" ; then
+     error_exit "sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T."\
+                "You probably need to set PKG_CONFIG_LIBDIR"\
+              "to point to the right pkg-config files for your"\
index 8f9ff83c3e569f35bfc1ef5e5c8be4623da941fa..e45a5d19f2c30bfc29328538b9ded3542f72bc27 100644 (file)
@@ -334,7 +334,7 @@ src_prepare() {
        epatch "${FILESDIR}"/${PN}-2.5.0-cflags.patch
        epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
        epatch "${FILESDIR}"/${PN}-2.6.0-crypto-static.patch
-
+       epatch "${FILESDIR}"/${PN}-2.6.0-glib-size_t.patch
        # Fix ld and objcopy being called directly
        tc-export AR LD OBJCOPY