Control: tags -1 + patch
Control: severity -1 important
X-Debbugs-CC: [email protected]
Dear Maintainer,
Please find attached a patch to fix libexpat1-dev in unstable. The patch
substitutes ${_IMPORT_PREFIX} (which is evaluated to '/usr/lib' in the
current layout) with hard-coded '/lib'.
I am raising the importance of this bug as it causes FTBFS in packages
using CMake to locate expat via 'find_package(expat ...)'.
Interestingly, the archive does not seem to contain such packages so far
[1].
[1] https://codesearch.debian.net/search?q=find_package%28expat&literal=1
Andrius
Description: libexpat.so.X.Y.Z is installed in /lib/${DEB_HOST_MULTIARCH}
instead of /usr/lib/${DEB_HOST_MULTIARCH}, thus the path of the shared library
is not relative to the location of this cmake file (Closes: #995907)
Author: Andrius Merkys <[email protected]>
Forwarded: not-needed
--- a/expat/cmake/autotools/expat-noconfig__linux.cmake.in
+++ b/expat/cmake/autotools/expat-noconfig__linux.cmake.in
@@ -8,12 +8,12 @@
# Import target "expat::expat" for configuration ""
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(expat::expat PROPERTIES
- IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@"
+ IMPORTED_LOCATION_NOCONFIG "/lib/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@"
IMPORTED_SONAME_NOCONFIG "libexpat.so.@SO_MAJOR@"
)
list(APPEND _IMPORT_CHECK_TARGETS expat::expat )
-list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@" )
+list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat "/lib/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)