Control: tags -1 + patch
Control: affects -1 + qpdfview

On Thu, Feb 15, 2024 at 01:55:53AM +0000, Maarten van der Schrieck wrote:
> Cross building with qmake6 fails due to QT_HOST_LIBEXECS having a wrong
> value. For completeness: QT_HOST_LIBEXECS refers to the config file
> variable HostLibraryExecutables, and is internally referred to as
> QMakeLibraryInfo::HostLibraryExecutablesPath and
> QMakeLibraryInfo::LibraryPathQMakeExtras::HostLibraryExecutablesPath in
> the qmake source code.
> 
> The issue is that HostLibraryExecutables defaults to the *default* value
> of LibraryExecutables. LibraryExecutables is set to the right value (a
> concatenation of Prefix + LibraryExecutables with the value
> "/usr/lib/qt6/libexec"), but its default value is Prefix + "libexec".
> 
> As the cross build config /usr/lib/<multiarch>/qt6/qt6.conf specifies
> Prefix as "/usr", the default of LibraryExecutables, and hence the
> default of HostLibraryExecutables, is now "/usr/libexec", which is the
> wrong value.
> 
> The simple fix is to supply the value of HostLibraryExecutables in
> /usr/lib/<multiarch>/qt6/qt6.conf explicitly:
> 
> ...
> HostLibraryExecutables=lib/qt6/libexec
> ...

Thank you so much for locating the fix and taking the time to explain it
in so much detail.

I ran into this problem with qpdfview again and confirm that what you
propose here makes it just work.

Helmut

Reply via email to