From: Tomas Mozes Date: Mon, 16 Oct 2017 12:24:07 +0000 (+0200) Subject: app-emulation/xen-tools: fix building with gcc 7 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6b9ff912c8bc4db4d4cafe3d72e5803904391725;p=gentoo.git app-emulation/xen-tools: fix building with gcc 7 Gentoo-Bug: 626008 Closes: https://github.com/gentoo/gentoo/pull/5962 Signed-off-by: Yixun Lan --- diff --git a/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild b/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild index 7d6fde136d83..ed261704df2d 100644 --- a/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild +++ b/app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild @@ -256,6 +256,11 @@ src_prepare() { mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die + # Fix building with gcc 7, Bug #634338 + # https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=f49fa658b53580cf2ad354d2bf1796766cc11222 + sed -e 's/name\[60\]/name\[100\]/g' \ + -i tools/misc/xenlockprof.c || die + # Fix texi2html build error with new texi2html, qemu.doc.html sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die