Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ ExternalProject_Add(criu
CONFIGURE_COMMAND ""
DOWNLOAD_DIR ${SOURCE_DOWNLOADS_DIR}
DOWNLOAD_NAME ${DEP_criu_FILENAME}
BUILD_COMMAND
BUILD_COMMAND
${CMAKE_MAKE_PROGRAM} -C <SOURCE_DIR> ${CRIU_MAKE_VARS} mrproper
COMMAND ${CMAKE_COMMAND} -E rm -f "<SOURCE_DIR>/images/google/protobuf/descriptor.proto"
COMMAND ${CMAKE_COMMAND} -E make_directory "<SOURCE_DIR>/images/google/protobuf"
COMMAND ${CMAKE_COMMAND} -E copy "${DESCRIPTOR_PROTO_FILE}" "<SOURCE_DIR>/images/google/protobuf/descriptor.proto"
COMMAND ${CMAKE_COMMAND} -E env
"CFLAGS=${CRIU_CFLAGS}"
Expand Down
22 changes: 18 additions & 4 deletions patch/criu-build.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/Makefile b/Makefile
index 5d8e89ac1..9006fc193 100644
index 7272cfce1..b26f7581a 100644
--- a/Makefile
+++ b/Makefile
@@ -268,7 +268,6 @@ criu-deps += $(SOCCR_A)
@@ -270,7 +270,6 @@ criu-deps += $(SOCCR_A)
# But note that we're already included
# the nmk so we can reuse it there.
criu/Makefile: ;
Expand All @@ -24,7 +24,7 @@ index 764afadc8..c211f52f4 100644
#
# And compel library.
diff --git a/Makefile.config b/Makefile.config
index 5ab689d41..d7ad71667 100644
index 5cf4b8216..adacedad3 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -5,58 +5,6 @@ include scripts/feature-tests.mak
Expand All @@ -35,7 +35,7 @@ index 5ab689d41..d7ad71667 100644
- LIBS_FEATURES += -lbsd
- FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD
-else
- $(info Note: Building without setproctitle() and strlcpy() support.)
- $(info Note: Building without setproctitle() support.)
- $(info $S Install libbsd-devel (RPM) / libbsd-dev (DEB) to fix.)
-endif
-
Expand Down Expand Up @@ -190,6 +190,20 @@ index ef78bcec7..4a64c975a 100644

#include "image.h"
#include "servicefd.h"
diff --git a/images/Makefile b/images/Makefile
index 2c33152e9..51d28901c 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -93,8 +93,7 @@ makefile-deps := Makefile $(obj)/Makefile
#
# Generate descriptor.pb-c.c and descriptor.pb-c.h to compile opts.proto.
DESCRIPTOR_DIR := images/google/protobuf
-GOOGLE_INCLUDE=$(shell pkg-config protobuf --variable=includedir)/google/protobuf
-$(DESCRIPTOR_DIR)/descriptor.pb-c.c: $(GOOGLE_INCLUDE)/descriptor.proto
+$(DESCRIPTOR_DIR)/descriptor.pb-c.c: images/google/protobuf/descriptor.proto
$(call msg-gen, $@)
$(Q) protoc --proto_path=/usr/include --proto_path=$(obj)/ --c_out=$(obj)/ $<

diff --git a/plugins/cuda/Makefile b/plugins/cuda/Makefile
index cc3d98ac9..6ba0defe8 100644
--- a/plugins/cuda/Makefile
Expand Down
Loading