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 <ayourtch@gmail.com> Change-Id: I077d4fdb509ea94b187d11391b1f49edb94c4e30 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user