Package: libexpat1-dev
Version: 2.4.1-2+b1
Control: block 995905 by -1
X-Debbugs-CC: m...@debian.org

Dear Maintainer,

libexpat1-dev seems to ship CMake settings with incorrect path for
libexpat.so.1.8.1. Observed while building opencolorio from salsa [1]:

[skip]
CMake Error at
/usr/lib/x86_64-linux-gnu/cmake/expat-2.4.1/expat.cmake:74 (message):
  The imported target "expat::expat" references the file

     "/usr/lib/x86_64-linux-gnu/libexpat.so.1.8.1"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/x86_64-linux-gnu/cmake/expat-2.4.1/expat.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/expat-2.4.1/expat-config.cmake:35
(include)
  share/cmake/modules/Findexpat.cmake:33 (find_package)
  share/cmake/modules/FindExtPackages.cmake:29 (find_package)
  CMakeLists.txt:243 (include)
[skip]

libexpat.so.1.8.1 is installed at
/lib/x86_64-linux-gnu/libexpat.so.1.8.1, thus expat-noconfig.cmake
should drop /usr prefix from paths for this shared library. I attempted
to fix this manually in the generated file thus fixing the build for
opencolorio:

$ diff ~/backup/expat-noconfig.cmake
/usr/lib/x86_64-linux-gnu/cmake/expat-2.4.1/expat-noconfig.cmake
11c11
<   IMPORTED_LOCATION_NOCONFIG
"${_IMPORT_PREFIX}/x86_64-linux-gnu/libexpat.so.1.8.1"
---
>   IMPORTED_LOCATION_NOCONFIG "/lib/x86_64-linux-gnu/libexpat.so.1.8.1"
16c16
< list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat
"${_IMPORT_PREFIX}/x86_64-linux-gnu/libexpat.so.1.8.1" )
---
> list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat
"/lib/x86_64-linux-gnu/libexpat.so.1.8.1" )

Best,
Andrius

[1] https://salsa.debian.org/debian-phototools-team/opencolorio, git
branch 'master', commit 51601e62407df12e1231ec603ff68d648f3dc76d

Reply via email to