app-emulation/xen-tools: fix building with gcc 7
authorTomas Mozes <tmozes@sygic.com>
Mon, 16 Oct 2017 12:24:07 +0000 (14:24 +0200)
committerYixun Lan <dlan@gentoo.org>
Tue, 17 Oct 2017 07:24:30 +0000 (15:24 +0800)
Gentoo-Bug: 626008

Closes: https://github.com/gentoo/gentoo/pull/5962
Signed-off-by: Yixun Lan <dlan@gentoo.org>
app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild

index 7d6fde136d8308260891d4b71c08195baf99eccc..ed261704df2d2235853064da846cc9006c8052c3 100644 (file)
@@ -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