--- /usr/portage/app-emulation/xen-tools/xen-tools-4.8.0-r2.ebuild 2017-02-15 08:54:10.000000000 +0100 +++ xen-tools-4.8.0-r2.ebuild 2017-02-15 16:17:44.594920380 +0100 @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -354,14 +354,19 @@ use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin" use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64" use amd64 && myconf+=" $(use_enable qemu-traditional)" + if use debug ; then + elog "attempt to enable debug" + cd xen || die + echo 'CONFIG_DEBUG=y' > .config + make olddefconfig + cd .. + fi econf ${myconf} } src_compile() { export VARTEXFONTS="${T}/fonts" local myopt - use debug && myopt="${myopt} debug=y" - if test-flag-CC -fno-strict-overflow; then append-flags -fno-strict-overflow fi