crit: fix 'make install'

Submitted by Kir Kolyshkin on April 25, 2017, 10:59 p.m.


Message ID
State New
Series "crit: fix 'make install'"
Headers show

Commit Message

Kir Kolyshkin April 25, 2017, 10:59 p.m.
Apparently, from distutils interprets --root= option without
an argument as "--root=." and we end up with what is described

Fix is to prepend DESTDIR value (if any) to --prefix argument.

Reported-by: Juraj Oršulić <>
Signed-off-by: Kir Kolyshkin <>
 lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lib/Makefile b/lib/Makefile
index a8647ce..d74a519 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -56,7 +56,7 @@  install: lib-c lib-py crit/crit lib/c/
 	$(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)/criu/),' lib/c/ > lib/c/criu.pc
 	$(Q) install -m 644 lib/c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig
 	$(E) "  INSTALL " crit
-	$(Q) $(PYTHON_BIN) scripts/ install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES)
+	$(Q) $(PYTHON_BIN) scripts/ install --prefix=$(DESTDIR)$(PREFIX) --record $(CRIT_SETUP_FILES)
 .PHONY: install