mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
Newer versions of pip use an isolated virtual environment when building Python projects. However, when the source code of CRIT is copied into the isolated environment, the symlink for `../lib/py` (pycriu) becomes invalid. As a workaround, we used the `--no-build-isolation` option for `pip install`. However, this functionality has issues in some versions of PIP [1, 2]. To fix this problem, this patch adds separate packages for pycriu and crit, and each package is installed independently. [1] https://github.com/pypa/pip/pull/8221 [2] https://github.com/pypa/pip/issues/8165#issuecomment-625401463 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
68 lines
1.7 KiB
Text
68 lines
1.7 KiB
Text
#
|
|
# Installation paths.
|
|
PREFIX ?= /usr/local
|
|
BINDIR ?= $(PREFIX)/bin
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
LIBEXECDIR ?= $(PREFIX)/libexec
|
|
RUNDIR ?= /run
|
|
PLUGINDIR ?= $(PREFIX)/lib/criu
|
|
|
|
#
|
|
# For recent Debian/Ubuntu with multiarch support.
|
|
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)
|
|
ifneq "$(DEB_HOST_MULTIARCH)" ""
|
|
LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
|
|
else
|
|
#
|
|
# For most other systems
|
|
ifeq "$(shell uname -m)" "x86_64"
|
|
LIBDIR ?= $(PREFIX)/lib64
|
|
endif
|
|
endif
|
|
|
|
#
|
|
# LIBDIR falls back to the standard path.
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
|
|
export PREFIX BINDIR SBINDIR MANDIR RUNDIR
|
|
export LIBDIR INCLUDEDIR LIBEXECDIR PLUGINDIR
|
|
|
|
install-man:
|
|
$(Q) $(MAKE) -C Documentation install
|
|
.PHONY: install-man
|
|
|
|
install-lib: lib
|
|
$(Q) $(MAKE) $(build)=lib install
|
|
.PHONY: install-lib
|
|
|
|
install-crit: lib
|
|
$(Q) $(MAKE) $(build)=crit install
|
|
.PHONY: install-crit
|
|
|
|
install-criu: criu
|
|
$(Q) $(MAKE) $(build)=criu install
|
|
.PHONY: install-criu
|
|
|
|
install-amdgpu_plugin: amdgpu_plugin
|
|
$(Q) $(MAKE) -C plugins/amdgpu install
|
|
.PHONY: install-amdgpu_plugin
|
|
|
|
install-compel: $(compel-install-targets)
|
|
$(Q) $(MAKE) $(build)=compel install
|
|
$(Q) $(MAKE) $(build)=compel/plugins install
|
|
.PHONY: install-compel
|
|
|
|
install: install-man install-lib install-crit install-criu install-compel install-amdgpu_plugin ;
|
|
.PHONY: install
|
|
|
|
uninstall:
|
|
$(Q) $(MAKE) -C Documentation $@
|
|
$(Q) $(MAKE) $(build)=lib $@
|
|
$(Q) $(MAKE) $(build)=crit $@
|
|
$(Q) $(MAKE) $(build)=criu $@
|
|
$(Q) $(MAKE) $(build)=compel $@
|
|
$(Q) $(MAKE) $(build)=compel/plugins $@
|
|
$(Q) $(MAKE) -C plugins/amdgpu $@
|
|
.PHONY: uninstall
|