FS#48786 - [qt5-declarative] cmake cannot resolve private header directories

Attached to Project: Arch Linux
Opened by Aki Sukegawa (nsuke) - Saturday, 02 April 2016, 14:58 GMT
Last edited by Antonio Rojas (arojas) - Friday, 02 June 2017, 18:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

cmake uses /usr/lib/cmake/Qt5Qml/Qt5QmlConfig.cmake etc which is installed by this package (4 files) to resolve Qt private header directories.

For some reason, all 4 files set the include directories variable to empty string around line 57, so the header directories cannot be retrieved.

I think it's build configuration issue rather than upstream problem, but couldn't figure out how it's happening.

qt5-qtbase 5.6.0-2 does not have this issue.

Additional info:
* package version(s) 5.6.0-1


Steps to reproduce:

# pacman -S cmake
$ echo "find_package(Qt5Qml)
message(STATUS \${Qt5Qml_PRIVATE_INCLUDE_DIRS})" > CMakeLists.txt && cmake .

The first line of the output should have included
"/usr/include/qt/QtQml/5.6.0/usr/include/qt/QtQml/5.6.0/QtQml/"
but it only contains core and network dirs.

Also the same thing for Qt5Quick, Qt5QuickWidgets and Qt5QuickTest.
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 02 June 2017, 18:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  Qt 5.9
Comment by Antonio Rojas (arojas) - Wednesday, 06 April 2016, 14:34 GMT
This is an old upstream issue, it just didn't affect us until now because we were building Qt from the monolithic tarball before 5.6

https://bugreports.qt.io/browse/QTBUG-37417

Loading...