[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Fix pygrub install.



On Wed, May 30, 2012 at 5:56 PM, Anthony PERARD
<anthony.perard@xxxxxxxxxx> wrote:
> The script pygrub is currently installed in the wrong location. Instead of
> /usr/lib/xen/bin, the script is installed in $destdir/usr/lib/xen/bin.
> $(DESTDIR) is apply twice.

$(DESTDIR) isn't the intended final path (i.e., /usr/lib/xen/bin);
it's the subdirectory where you want "make dist" to put the files from
this make -- normally in xen-unstable.hg/dist/install/.  This change
will make it so that simply doing "make tools" (which is expected to
compile things and put the output in xen.hg/dist/install) will change
the *currently installed* version of pygrub.

 -George

>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> ---
>  tools/pygrub/Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
> index f8c5262..af2b8a5 100644
> --- a/tools/pygrub/Makefile
> +++ b/tools/pygrub/Makefile
> @@ -12,7 +12,7 @@ build:
>  install: all
>        CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \
>                $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
> -               --install-scripts=$(DESTDIR)/$(PRIVATE_BINDIR) --force
> +               --install-scripts=$(PRIVATE_BINDIR) --force
>        $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(PRIVATE_BINDIR)/pygrub
>        $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
>        ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR)
> --
> Anthony PERARD
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.