app-emulation/xen: fix compilation failures
authorDoug Goldstein <cardoe@gentoo.org>
Fri, 4 Dec 2015 19:36:22 +0000 (13:36 -0600)
committerDoug Goldstein <cardoe@gentoo.org>
Fri, 4 Dec 2015 19:38:11 +0000 (13:38 -0600)
A patch referenced in src_prepare() was missing so the package could not
build. LDFLAGS were being passed in which caused build failures with
USE=-custom-cflags. Dependency on binutils was incorrect.

app-emulation/xen/xen-4.6.0-r2.ebuild

index 76febbcf48dde281cd523b8ab38bd0608c4820ad..337751158d499cb271ac9c6bcf701b5a431eca8a 100644 (file)
@@ -28,7 +28,8 @@ else
        SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz
                ${UPSTREAM_PATCHSET_URI}
                ${SECURITY_PATCHSET_URI}
-               ${GENTOO_PATCHSET_URI}"
+               ${GENTOO_PATCHSET_URI}
+               https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches.tar.gz"
 fi
 
 inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass}
@@ -41,7 +42,7 @@ IUSE="custom-cflags debug efi flask xsm"
 
 DEPEND="${PYTHON_DEPS}
        efi? ( >=sys-devel/binutils-2.22[multitarget] )
-       !efi? ( >=sys-devel/binutils-2.22[-multitarget] )"
+       !efi? ( >=sys-devel/binutils-2.22 )"
 RDEPEND=""
 PDEPEND="~app-emulation/xen-tools-${PV}"
 
@@ -151,6 +152,8 @@ src_configure() {
                replace-flags -O3 -O2
        else
                unset CFLAGS
+               unset LDFLAGS
+               unset ASFLAGS
        fi
 }