From: Andrew Yourtchenko Date: Thu, 24 Mar 2022 11:45:10 +0000 (+0000) Subject: build: set OS_ID_LIKE on to be OS_ID on Debian proper X-Git-Tag: v22.10-rc0~212 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=534dfc1f18db74f4a2c78d62fe6893daba56dc86;p=vpp.git build: set OS_ID_LIKE on to be OS_ID on Debian proper OS_ID_LIKE from /etc/os-release is used to determine the type of packaging. On Debian it ends up being empty, so the "ninja package" does not work for out of tree plugin builds. Solution: if OS_ID_LIKE is not set, set it to OS_ID Type: fix Signed-off-by: Andrew Yourtchenko Change-Id: I077d4fdb509ea94b187d11391b1f49edb94c4e30 Signed-off-by: Andrew Yourtchenko --- diff --git a/src/cmake/pack.cmake b/src/cmake/pack.cmake index a89a90c452c..f4edecb956a 100644 --- a/src/cmake/pack.cmake +++ b/src/cmake/pack.cmake @@ -64,6 +64,11 @@ macro(add_vpp_packaging) set(CPACK_${type}_PACKAGE_DESCRIPTION "${ARG_DESCRIPTION}") set(CPACK_${type}_PACKAGE_RELEASE 1) + # Pure Debian does not set the "OS_ID_LIKE", it only sets "OS_ID" + if (OS_ID_LIKE MATCHES "") + set(OS_ID_LIKE "${OS_ID}") + endif() + if(OS_ID_LIKE MATCHES "debian") set(CPACK_GENERATOR "DEB") set(type "DEBIAN")