From 9bbc625931fc902c3cca98faddd38d5ef83cecce Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 5 Sep 2016 07:41:30 +0200 Subject: [PATCH] qemu: re-add patch to unbreak musl (ifunc not supported). --- srcpkgs/qemu/patches/musl-ifunc.patch | 11 +++++++++++ srcpkgs/qemu/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/qemu/patches/musl-ifunc.patch diff --git a/srcpkgs/qemu/patches/musl-ifunc.patch b/srcpkgs/qemu/patches/musl-ifunc.patch new file mode 100644 index 00000000000..b4aa9e393e9 --- /dev/null +++ b/srcpkgs/qemu/patches/musl-ifunc.patch @@ -0,0 +1,11 @@ +--- util/cutils.c.orig 2016-09-05 07:39:30.602027263 +0200 ++++ util/cutils.c 2016-09-05 07:39:47.473230538 +0200 +@@ -263,7 +263,7 @@ static size_t buffer_find_nonzero_offset + return i * sizeof(VECTYPE); + } + +-#if defined CONFIG_AVX2_OPT ++#if defined(__GLIBC__) && defined CONFIG_AVX2_OPT && QEMU_GNUC_PREREQ(4, 9) + #pragma GCC push_options + #pragma GCC target("avx2") + #include diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template index 6373021ee5c..29e5afe9ac6 100644 --- a/srcpkgs/qemu/template +++ b/srcpkgs/qemu/template @@ -1,7 +1,7 @@ # Template file for 'qemu' pkgname=qemu version=2.7.0 -revision=1 +revision=2 short_desc="Open Source Processor Emulator" maintainer="Juan RP " homepage="http://qemu.org"