Commit 3d0fcc07 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: Add verbose message on packages needed for CRIU building

From issue #135
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 029650bf
...@@ -56,7 +56,27 @@ ccflags-y += -I/usr/include/libnl3 ...@@ -56,7 +56,27 @@ ccflags-y += -I/usr/include/libnl3
export ccflags-y export ccflags-y
LIBS := -lrt -lpthread -lprotobuf-c -ldl -lnl-3 LIBS := -lrt -lpthread -lprotobuf-c -ldl -lnl-3
REQ-LIBS-NAMES := libpthread libprotobuf-c libnl-3
REQ-RPM-PKG-NAMES += protobuf
REQ-RPM-PKG-NAMES += protobuf-c
REQ-RPM-PKG-NAMES += protobuf-c-devel
REQ-RPM-PKG-NAMES += protobuf-compiler
REQ-RPM-PKG-NAMES += protobuf-devel
REQ-RPM-PKG-NAMES += protobuf-python
REQ-RPM-PKG-NAMES += libnl3-devel
REQ-DEB-PKG-NAMES += libprotobuf-dev
REQ-DEB-PKG-NAMES += libprotobuf-c0-dev
REQ-DEB-PKG-NAMES += protobuf-c-compiler
REQ-DEB-PKG-NAMES += protobuf-compiler
REQ-DEB-PKG-NAMES += python-protobuf
REQ-DEB-PKG-NAMES += libnl-3-dev
REQ-RPM-PKG-TEST-NAMES += libaio-devel
REQ-RPM-PKG-TEST-NAMES += libcap-devel
REQ-DEB-PKG-TEST-NAMES += libaio-dev
REQ-DEV-PKG-TEST-NAMES += libcap-dev
# #
# Make sure all required libs are installed # Make sure all required libs are installed
...@@ -66,7 +86,14 @@ ifneq ($(MAKECMDGOALS),clean) ...@@ -66,7 +86,14 @@ ifneq ($(MAKECMDGOALS),clean)
echo "int main(int argc, char *argv[]) { return 0; }" | \ echo "int main(int argc, char *argv[]) { return 0; }" | \
"$(CC)" -x c - $(LIBS) -o "$$TMP" > /dev/null 2>&1 && echo y; \ "$(CC)" -x c - $(LIBS) -o "$$TMP" > /dev/null 2>&1 && echo y; \
rm -f "$$TMP"'),y) rm -f "$$TMP"'),y)
$(error "Make sure '$(REQ-LIBS-NAMES)' libraries are installed") $(warning "Couldn't find some of the required libraries")
$(warning "Make sure the following packages are installed")
$(warning "RPM based distros: $(REQ-RPM-PKG-NAMES)")
$(warning "DEB based distros: $(REQ-DEB-PKG-NAMES)")
$(warning "To run tests the following packages are needed")
$(warning "RPM based distros: $(REQ-RPM-PKG-TEST-NAMES)")
$(warning "DEB based distros: $(REQ-DEB-PKG-TEST-NAMES)")
$(error "Compilation aborted")
endif endif
endif endif
ifeq ($(GMON),1) ifeq ($(GMON),1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment