Skip to contentSkip to conversation

tools/python: Correct the install path of the python scripts

PATCH In review Andrew Cooper 2 participants 2 messages Jul 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/python: Correct the install path of the python scripts

c/s 74a7c7a was actually written long before c/s 2c96ecb "Use configure --libexecdir=BASEDIR to set LIBEXEC", and I didn't notice during development because of the method I was using to run a legacy and migration v2 libxl toolstack side-by-side.

The result is that the conversion script gets installed in the root of the output tree, rather than in the location libxl is expecting to find it.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/python/Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/python/Makefile +2 -2
index df942a7..8d2c7dd 100644
@@ -17,12 +17,12 @@ build: genwrap.py $(XEN_ROOT)/tools/libxl/libxl_types.idl \
 
 .PHONY: install
 install:
-	$(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
+	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 
 	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py install \
 		$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
 
-	$(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(PRIVATE_BINDIR)
+	$(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(LIBEXEC_BIN)
 
 .PHONY: test
 test:
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Andrew Cooper

c/s 74a7c7a was actually written long before c/s 2c96ecb "Use configure --libexecdir=BASEDIR to set LIBEXEC", and I didn't notice during development because of the method I was using to run a legacy and migration v2 libxl toolstack side-by-side.

The result is that the conversion script gets installed in the root of the output tree, rather than in the location libxl is expecting to find it.

and applied.

Quoted 25 lines
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/python/Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/python/Makefile +2 -2
index df942a7..8d2c7dd 100644
@@ -17,12 +17,12 @@ build: genwrap.py $(XEN_ROOT)/tools/libxl/libxl_types.idl \
 
 .PHONY: install
 install:
-	$(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
+	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 
 	CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py install \
 		$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
 
-	$(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(PRIVATE_BINDIR)
+	$(INSTALL_PROG) scripts/convert-legacy-stream $(DESTDIR)$(LIBEXEC_BIN)
 
 .PHONY: test
 test: