mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
Memory page compression requires liblz4, but making it mandatory would prevent CRIU from building on systems that do not provide it. Detect liblz4 with pkg-config and enable CONFIG_LZ4 only when it is available. Add NO_LZ4=1 as an explicit opt-out and register the development package in the supported distribution dependency lists. Install liblz4 for the per-commit build, then run a separate NO_LZ4 build and unit test to keep the optional configuration usable. Assisted-by: Codex:GPT-5 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
38 lines
1.1 KiB
Bash
Executable file
38 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
APT_INSTALL="$(cd "$(dirname "$0")/.." >/dev/null 2>&1 && pwd)/apt-install"
|
|
if [ ! -x "$APT_INSTALL" ]; then
|
|
echo "Error: apt-install not found or not executable"
|
|
exit 1
|
|
fi
|
|
|
|
"$APT_INSTALL" \
|
|
crossbuild-essential-"${DEBIAN_ARCH}" \
|
|
iproute2:"${DEBIAN_ARCH}" \
|
|
libaio-dev:"${DEBIAN_ARCH}" \
|
|
libbz2-dev:"${DEBIAN_ARCH}" \
|
|
libc6-"${DEBIAN_ARCH}"-cross \
|
|
libc6-dev-"${DEBIAN_ARCH}"-cross \
|
|
libcap-dev:"${DEBIAN_ARCH}" \
|
|
libdrm-dev:"${DEBIAN_ARCH}" \
|
|
libelf-dev:"${DEBIAN_ARCH}" \
|
|
libexpat1-dev:"${DEBIAN_ARCH}" \
|
|
libgnutls28-dev:"${DEBIAN_ARCH}" \
|
|
liblz4-dev:"${DEBIAN_ARCH}" \
|
|
libnet-dev:"${DEBIAN_ARCH}" \
|
|
libnftables-dev:"${DEBIAN_ARCH}" \
|
|
libnl-3-dev:"${DEBIAN_ARCH}" \
|
|
libnl-route-3-dev:"${DEBIAN_ARCH}" \
|
|
libprotobuf-c-dev:"${DEBIAN_ARCH}" \
|
|
libprotobuf-dev:"${DEBIAN_ARCH}" \
|
|
libssl-dev:"${DEBIAN_ARCH}" \
|
|
libtraceevent-dev:"${DEBIAN_ARCH}" \
|
|
libtracefs-dev:"${DEBIAN_ARCH}" \
|
|
ncurses-dev:"${DEBIAN_ARCH}" \
|
|
uuid-dev:"${DEBIAN_ARCH}" \
|
|
build-essential \
|
|
pkg-config \
|
|
git \
|
|
protobuf-c-compiler \
|
|
protobuf-compiler \
|
|
python3-protobuf
|