Bug 1754157

Summary: nm-tray: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: nm-trayAssignee: Orphan Owner <extras-orphan>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: lxqt-sig, projects.rg
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://apps.fedoraproject.org/koschei/package/nm-tray
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-28 12:29:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build.log none

Description Raphael Groner 2019-09-21 09:37:06 UTC
Created attachment 1617394 [details]
build.log

Description of problem:
Package nm-tray fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
0.4.3-1.fc32

Steps to Reproduce:
koji build --scratch f32 nm-tray-0.4.3-1.fc32.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/nm-tray

Comment 1 Raphael Groner 2019-09-21 09:38:26 UTC
Maybe due to a missing inclusion of header.

Relevant snippet from build.log:

BUILDSTDERR: /builddir/build/BUILD/nm-tray-0.4.3/src/nmmodel.cpp: In member function 'QVariant NmModel::dataRole(const QModelIndex&) const [with int role = 265]':
BUILDSTDERR: /builddir/build/BUILD/nm-tray-0.4.3/src/nmmodel.cpp:1041:141: error: invalid use of incomplete type 'class QMetaEnum'
BUILDSTDERR:  1041 |         auto m_enum = NetworkManager::Device::staticMetaObject.enumerator(NetworkManager::Device::staticMetaObject.indexOfEnumerator("Type"));
BUILDSTDERR:       |                                                                                                                                             ^
BUILDSTDERR: In file included from /usr/include/qt5/QtCore/qmetatype.h:50,
BUILDSTDERR:                  from /usr/include/qt5/QtCore/qvariant.h:46,
BUILDSTDERR:                  from /usr/include/qt5/QtCore/qabstractitemmodel.h:43,
BUILDSTDERR:                  from /usr/include/qt5/QtCore/QAbstractItemModel:1,
BUILDSTDERR:                  from /builddir/build/BUILD/nm-tray-0.4.3/src/nmmodel.h:26,
BUILDSTDERR:                  from /builddir/build/BUILD/nm-tray-0.4.3/src/nmmodel.cpp:23:
BUILDSTDERR: /usr/include/qt5/QtCore/qobjectdefs.h:284:7: note: forward declaration of 'class QMetaEnum'
BUILDSTDERR:   284 | class QMetaEnum;
BUILDSTDERR:       |       ^~~~~~~~~

Comment 2 Kevin Kofler 2019-09-21 20:10:20 UTC
It loks like the package depends on something implicitly including <QMetaEnum>, which no longer happens. So add an explicit:
#include <QMetaEnum>
to nmmodel.cpp.

Comment 3 Raphael Groner 2019-10-20 09:13:59 UTC
Hi Kevin,
thanks for the hint of the missing header.
Are you interested to (co-)maintain the package of nm-tray? Honestly, I'm not really using it [any more] and tend to orphan.

Comment 4 Raphael Groner 2019-11-15 22:09:49 UTC
Orphaned.

Comment 5 Miro HronĨok 2019-12-28 12:29:17 UTC
Automation has figured out the package is retired in rawhide.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement