[libvirt] [PATCH] Ensure to prefix %{buildroot} when overriding systemd install location
Eric Blake
eblake at redhat.com
Thu Dec 8 14:24:35 UTC 2011
On 12/08/2011 06:49 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The %makeinstall macro does not set DESTDIR, instead of explicitly
> prefixes %{buildroot} onto all paths. Thus we need todo the same
s/todo/to do/
> when setting the systemd unit dir
>
> * libvirt.spec.in: Prefix %{buildroot} onto %{unitdir}
> ---
> libvirt.spec.in | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index 4fe1c6a..80c5c1f 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}
ACK.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111208/de1737ef/attachment-0001.sig>
More information about the libvir-list
mailing list