summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2017-05-02 16:27:58 +0800
committerYixun Lan <dlan@gentoo.org>2017-05-02 17:01:37 +0800
commit19210f286efe1cfbc6fd71bbe06782b61f8ffa14 (patch)
treedcca8252f10aa13b54527e0d9351d0a578d4527e /app-emulation/xen-tools
parentapp-emulation/xen-tools: check and emit failure message (diff)
downloadgentoo-19210f286efe1cfbc6fd71bbe06782b61f8ffa14.tar.gz
gentoo-19210f286efe1cfbc6fd71bbe06782b61f8ffa14.tar.bz2
gentoo-19210f286efe1cfbc6fd71bbe06782b61f8ffa14.zip
app-emulation/xen-tools: fix localstatedir path
The systemd /usr/lib64/systemd/system/var-lib-xenstored.mount file contains the line: Where=/var/lib/lib/xenstored This will trigger the systemd error message in the journal: var-lib-xenstored.mount: Where= setting doesn't match unit name. Refusing. Gentoo-Bug: 572304 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'app-emulation/xen-tools')
-rw-r--r--app-emulation/xen-tools/xen-tools-4.8.1.ebuild8
1 files changed, 1 insertions, 7 deletions
diff --git a/app-emulation/xen-tools/xen-tools-4.8.1.ebuild b/app-emulation/xen-tools/xen-tools-4.8.1.ebuild
index 97abadec279e..b0b687340dbb 100644
--- a/app-emulation/xen-tools/xen-tools-4.8.1.ebuild
+++ b/app-emulation/xen-tools/xen-tools-4.8.1.ebuild
@@ -316,13 +316,6 @@ src_prepare() {
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
fi
- # use /var instead of /var/lib, consistat with previous ebuild
- sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
- m4/paths.m4 configure tools/configure || die
- # use /run instead of /var/run
- sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
- m4/paths.m4 configure tools/configure || die
-
# uncomment lines in xl.conf
sed -e 's:^#autoballoon=:autoballoon=:' \
-e 's:^#lockfile=:lockfile=:' \
@@ -339,6 +332,7 @@ src_configure() {
local myconf="--prefix=${PREFIX}/usr \
--libdir=${PREFIX}/usr/$(get_libdir) \
--libexecdir=${PREFIX}/usr/libexec \
+ --localstatedir=${EPREFIX}/var \
--disable-werror \
--disable-xen \
--enable-tools \