summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2019-11-12 15:02:59 +0100
committerDoug Goldstein <cardoe@gentoo.org>2019-12-02 08:41:42 -0600
commitc9e5ab69cf86dd0dd9be275b6fbc2eb2b531c6cc (patch)
tree4e346f90f39331e510d889f035d88c4e016ceb94 /app-emulation
parentapp-emulation/libvirt: Clean macvtap USE flag description (diff)
downloadgentoo-c9e5ab69cf86dd0dd9be275b6fbc2eb2b531c6cc.tar.gz
gentoo-c9e5ab69cf86dd0dd9be275b6fbc2eb2b531c6cc.tar.bz2
gentoo-c9e5ab69cf86dd0dd9be275b6fbc2eb2b531c6cc.zip
app-emulation/libvirt-9999: Perform out-of-tree build
In preparation to move to meson, we've forbidden in tree builds. Fortunately, there is a gentoo eclass that handles out-of-tree builds and very little is needed to use it. However, due to some automake magic, we have to enable dependency-tracking (which is disabled as of EAPI 4) because if we don't, then generated Makefile doesn't precreate all directories under build dir and the build fails. Closes: https://github.com/gentoo/gentoo/pull/13752 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/libvirt/libvirt-9999.ebuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild
index 1c39aa69ee22..03d2e5585664 100644
--- a/app-emulation/libvirt/libvirt-9999.ebuild
+++ b/app-emulation/libvirt/libvirt-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
-inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
+inherit autotools out-of-source bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
if [[ ${PV} = *9999* ]]; then
inherit git-r3
@@ -239,7 +239,7 @@ src_prepare() {
eautoreconf
}
-src_configure() {
+my_src_configure() {
local myeconfargs=(
$(use_with apparmor)
$(use_with apparmor apparmor-profiles)
@@ -295,6 +295,7 @@ src_configure() {
--disable-werror
--localstatedir=/var
+ --enable-dependency-tracking
)
if use virtualbox && has_version app-emulation/virtualbox-ose; then
@@ -308,13 +309,11 @@ src_configure() {
if [[ ${PV} = *9999* ]]; then
# Restore gnulib's config.sub and config.guess
# bug #377279
- (cd .gnulib && git reset --hard > /dev/null)
+ (cd ${S}/.gnulib && git reset --hard > /dev/null)
fi
}
-src_test() {
- cd "${BUILD_DIR}"
-
+my_src_test() {
# remove problematic tests, bug #591416, bug #591418
sed -i -e 's#commandtest$(EXEEXT) # #' \
-e 's#virfirewalltest$(EXEEXT) # #' \
@@ -326,7 +325,7 @@ src_test() {
HOME="${T}" emake check || die "tests failed"
}
-src_install() {
+my_src_install() {
emake DESTDIR="${D}" \
SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install