[Pkg-xen-changes] [xen] 22/37: tools-pygrub-prefix.diff

Ian James Campbell ijc at moszumanska.debian.org
Sat Aug 22 09:13:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

ijc pushed a commit to branch feature/4.5.1_rc2
in repository xen.

commit 0ae6896a46b7af853285da6519cdb8395b05e0d7
Author: Bastian Blank <waldi at debian.org>
Date:   Sat Jul 5 11:47:01 2014 +0200

    tools-pygrub-prefix.diff
    
    Patch-Name: tools-pygrub-prefix.diff
---
 tools/pygrub/Makefile   | 5 -----
 tools/pygrub/setup.py   | 2 ++
 tools/pygrub/src/pygrub | 2 ++
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
index 3dff608..5fe4a80 100644
--- a/tools/pygrub/Makefile
+++ b/tools/pygrub/Makefile
@@ -13,11 +13,6 @@ install: all
 	CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py install \
 		$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
 		--install-scripts=$(LIBEXEC_BIN) --force
-	set -e; if [ $(BINDIR) != $(LIBEXEC_BIN) -a \
-	             "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
-	             "`readlink -f $(LIBEXEC_BIN)`" ]; then \
-	    ln -sf $(LIBEXEC_BIN)/pygrub $(DESTDIR)/$(BINDIR); \
-	fi
 
 .PHONY: clean
 clean:
diff --git a/tools/pygrub/setup.py b/tools/pygrub/setup.py
index 52dcf57..8a1be9a 100644
--- a/tools/pygrub/setup.py
+++ b/tools/pygrub/setup.py
@@ -4,11 +4,13 @@ import os
 import sys
 
 extra_compile_args  = [ "-fno-strict-aliasing", "-Werror" ]
+extra_link_args = [ "-Wl,-rpath,${ORIGIN}/.." ]
 
 XEN_ROOT = "../.."
 
 fsimage = Extension("fsimage",
     extra_compile_args = extra_compile_args,
+    extra_link_args = extra_link_args,
     include_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
     library_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ],
     libraries = ["fsimage"],
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index 3ec52fd..ed5b5d6 100755
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -22,6 +22,8 @@ import xen.lowlevel.xc
 import curses, _curses, curses.wrapper, curses.textpad, curses.ascii
 import getopt
 
+sys.path.insert(1, sys.path[0] + '/../lib/python')
+
 import fsimage
 import grub.GrubConf
 import grub.LiloConf

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git



More information about the Pkg-xen-changes mailing list