Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55446 - [cmake] Cmake fails build some packages that use automatic UI file generation for Qt

Attached to Project: Arch Linux
Opened by Ongun Kanat (6ng4n) - Wednesday, 30 August 2017, 22:54 GMT
Last edited by Eli Schwartz (eschwartz) - Saturday, 30 December 2017, 23:49 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To 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:1
Due to some regression in the AUTOUIC module Cmake 3.9.1 fails to build packages that uses AUTOUIC functionality. Such as sayonara-player (https://aur.archlinux.org/packages/sayonara-player/).
It might be worth it to backport a commit from 3.9.2 development branch which fixes this since some other Qt-based packages may be using this feature. Otherwise we have to wait until 3.9.2 comes.

Currently downgrading cmake to version 3.8.2 works.

Additional info:
Cmake 3.9.1 x86_64
[1] The bug tracker info about the regression: https://gitlab.kitware.com/cmake/cmake/issues/17168
[2] The pull request that fixes it: https://gitlab.kitware.com/cmake/cmake/merge_requests/1140

Steps to reproduce:
- Try to build a package that uses AUTOUIC feature
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Saturday, 30 December 2017, 23:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  cmake 3.10.0-1
Comment by Rikard Falkeborn (Herk) - Friday, 29 December 2017, 23:13 GMT
Cmake is now at 3.10.1 in the repos. I just built sayonara-player without problems, it seems to still use the AUTOUIC feature, so I think this bug can be closed:

> > grep grep -r AUTOUIC .
> ./test/CMakeLists.txt:SET(CMAKE_AUTOUIC ON)
> ./cotire.cmake: get_target_property(_targetAutoUic ${_target} AUTOUIC)
> ./cotire.cmake: # prevent AUTOMOC, AUTOUIC and AUTORCC properties from being set when the unity target is created
> ./cotire.cmake: set (CMAKE_AUTOUIC OFF)
> ./cotire.cmake: INTERFACE_AUTOUIC_OPTIONS NO_SYSTEM_FROM_IMPORTED)
> ./src/CMakeLists.txt:SET(CMAKE_AUTOUIC ON)

Loading...