From: Daniel P. Berrange Date: Thu, 8 Dec 2011 13:29:22 +0000 (+0000) Subject: Ensure to prefix %{buildroot} when overriding systemd install location X-Git-Tag: v0.9.9-rc1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=011a3350bef4d4c343f2a0182cafe3c4904c66a8;p=thirdparty%2Flibvirt.git Ensure to prefix %{buildroot} when overriding systemd install location The %makeinstall macro does not set DESTDIR, instead of explicitly prefixes %{buildroot} onto all paths. Thus we need to do the same when setting the systemd unit dir * libvirt.spec.in: Prefix %{buildroot} onto %{unitdir} --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 4fe1c6ab19..80c5c1f37a 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -776,7 +776,7 @@ gzip -9 ChangeLog %install rm -fr %{buildroot} -%makeinstall SYSTEMD_UNIT_DIR=%{_unitdir} +%makeinstall SYSTEMD_UNIT_DIR=%{buildroot}%{_unitdir} for i in domain-events/events-c dominfo domsuspend hellolibvirt openauth python xml/nwfilter systemtap do (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)