Bug#1144017: sol2-dev: architecture-specific contents in binary-all package

Adrian Bunk <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <178630471413.882386.13762222770919594630.reportbug@localhost>
Package: sol2-dev
Version: 3.5.0-3
Severity: serious
Tags: ftbfs
Control: affects -1 src:osrm-backend

On 32-bit:

https://buildd.debian.org/status/fetch.php?pkg=osrm-backend&arch=m68k&ver=26.5.0%2Bdfsg1-3&stamp=1785998790&raw=0

...
CMake Error at CMakeLists.txt:364 (find_package):
  Could not find a configuration file for package "sol2" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    /usr/share/cmake/sol2/sol2-config.cmake, version: 3.5.0 (64bit)
      The version found is not compatible with the version requested.
...


This is due to:

$ cat /usr/share/cmake/sol2/sol2-config-version.cmake
...
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
  math(EXPR installedBits "8 * 8")
  set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
  set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
$


If this cannot be easily fixed in the package,
then making sol2-dev binary-any is an option.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.