Bug#999482: architecture-independent package contains arch-specific lib path
Package: kodi-addons-dev-common
Version: 2:19.3+dfsg1-1
In this package with Architecture: all, there is a file,
/usr/share/kodi/cmake/KodiConfig.cmake
containing:
...cut...
if(NOT KODI_LIB_DIR)
set(KODI_LIB_DIR /usr/lib/x86_64-linux-gnu/kodi)
endif()
if(NOT KODI_DATA_DIR)
set(KODI_DATA_DIR /usr/share/kodi)
endif()
set(APP_RENDER_SYSTEM gl)
list(APPEND CMAKE_MODULE_PATH /usr/lib/x86_64-linux-gnu/kodi /usr/share/kodi/cmake)
...cut...
The paths containing /usr/lib/x86_64-linux-gnu here later cause problems when
building addons on other architectures, as it overrides the addon install
path - a warning is logged:
CMake Warning at /usr/share/kodi/cmake/AddonHelpers.cmake:332 (message):
CMAKE_INSTALL_LIBDIR lib/arm-linux-gnueabihf differs from Kodi libdir,
changing to /usr/lib/x86_64-linux-gnu/kodi. Please pass -DOVERRIDE_PATHS=1
to skip this check
Call Stack (most recent call first):
CMakeLists.txt:36 (build_addon)
and the addon libraries end up installed in the wrong location. It seems that
this file should be part of an architecture-specific package, with the correct
paths for the architecture in the file.
BR,
Hugh Cole-Baker
Reply to: