Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2103637

Summary: tiled: FTBFS in Fedora Rawhide: Hardcodes x86_64 in the spec, fails on other architectures
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: tiledAssignee: Erik Schilling <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: awilliam, cheese, fedora, fedora, mhroncok, pviktori, rosset.filipe
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedFreezeException
Fixed In Version: tiled-1.9.1-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-02 22:27:01 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:
Bug Depends On:    
Bug Blocks: 2117176, 2009538, 2016048, 2045102    

Description Tomáš Hrnčiar 2022-07-04 10:08:59 UTC
Description of problem:
Package tiled fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.8.4-2.fc37

Steps to Reproduce:
koji build --scratch f37 tiled-1.8.4-2.fc37.src.rpm

Additional info:
/builddir/build/BUILD/tiled-1.8.4/translations/translations.qbs:3:1 Error while handling product 'translations':
/builddir/build/BUILD/tiled-1.8.4/translations/translations.qbs:3:1 Profile 'x86_64-redhat-linux-gcc' does not exist.

Comment 1 Artur Frenszek-Iwicki 2022-07-04 11:30:47 UTC
Trying to build this in mock, the current spec fails even on x86_64,
since qbs reports that is has a "x86_64-redhat-linux-gcc-12" profile (note the "-12" at the end),
so when asked to use "x86_64-redhat-linux-gcc", it fails because no such profile was found.

Calling "qbs setup-toolchains --detect" automatically selects a profile, and it seems to always be the gcc one,
so it should be safe to just drop the "qbs config defaultProfile ..." line from the spec.

Trying to perform a mockbuild with the line removed, it fails with the following error:

ERROR: In file included from /usr/include/qt5/QtQml/5.15.4/QtQml/private/qqmldata_p.h:54,
                 from /builddir/build/BUILD/tiled-1.8.4/src/tiled/editablemanager.cpp:37:
/usr/include/qt5/QtQml/5.15.4/QtQml/private/qtqmlglobal_p.h:54:10: fatal error: QtCore/private/qglobal_p.h: No such file or directory
   54 | #include <QtCore/private/qglobal_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Comment 2 Ben Cotton 2022-08-09 13:19:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 4 Fedora Update System 2022-08-30 09:56:02 UTC
FEDORA-2022-f8e35be44d has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f8e35be44d

Comment 5 Adam Williamson 2022-09-02 17:13:21 UTC
+4 in https://pagure.io/fedora-qa/blocker-review/issue/879 , marking accepted.

Comment 6 Fedora Update System 2022-09-02 22:27:01 UTC
FEDORA-2022-f8e35be44d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.