[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#738196: make[4]: /usr/lib/lib/i386-linux-gnu/qt5/bin/lrelease: Command not found



Package: qttools5-dev
Version: 5.2.0-2
Severity: important

Hello,

upgrading qttools5-dev from 5.1.x to 5.2.0 breaks building of
luminance-hdr 2.4.0:
-------------------
make[4]: Entering directory `/tmp/QTPFSGUI/luminance-hdr-2.4.0/obj-i486-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /tmp/QTPFSGUI/luminance-hdr-2.4.0/obj-i486-linux-gnu/CMakeFiles
[ 86%] Generating lang_de.qm
/usr/lib/lib/i386-linux-gnu/qt5/bin/lrelease /tmp/QTPFSGUI/luminance-hdr-2.4.0/i18n/lang_de.ts -qm /tmp/QTPFSGUI/luminance-hdr-2.4.0/obj-i486-linux-gnu/lang_de.qm
make[4]: /usr/lib/lib/i386-linux-gnu/qt5/bin/lrelease: Command not found
make[4]: *** [lang_de.qm] Error 127
-------------------

Note the "/lib/lib/" in the path. Reverting the change to
/usr/lib/i386-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake
fixes the breakage.

luminance-hdr 2.4.0 is not yet available in Debian, however packaging
is already pushed to GIT/experimental.

git clone -b experimental git://git.debian.org/git/pkg-phototools/luminance-hdr.git

tia, cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- qttools5-dev_5.1.1-2/usr/lib/i386-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake	2013-10-01 17:49:27.000000000 +0200
+++ qttools5-dev_5.2.0-2/usr/lib/i386-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake	2013-12-14 01:50:56.000000000 +0100
@@ -1,5 +1,21 @@
 
-get_filename_component(_qt5_linguisttools_install_prefix "${CMAKE_CURRENT_LIST_DIR}/../..//../../" ABSOLUTE)
+if (CMAKE_VERSION VERSION_LESS 2.8.3)
+    message(FATAL_ERROR "Qt 5 requires at least CMake version 2.8.3")
+endif()
+
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
+# Use original install prefix when loaded through a
+# cross-prefix symbolic link such as /lib -> /usr/lib.
+get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
+get_filename_component(_realOrig "/usr/lib/i386-linux-gnu/cmake/Qt5LinguistTools" REALPATH)
+if(_realCurr STREQUAL _realOrig)
+    get_filename_component(_qt5_linguisttools_install_prefix "/usr/lib/i386-linux-gnu" PATH)
+else()
+    get_filename_component(_qt5_linguisttools_install_prefix "${CMAKE_CURRENT_LIST_DIR}/../../../../" ABSOLUTE)
+endif()
+unset(_realOrig)
+unset(_realCurr)
+unset(_IMPORT_PREFIX)
 
 if (NOT TARGET Qt5::lrelease)
     add_executable(Qt5::lrelease IMPORTED)

Reply to: