Bug 2044645
| Summary: | annocheck FAIL: pie test (bacula) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Rui Ormonde <rlemosor> |
| Component: | bacula | Assignee: | Pavel Cahyna <pcahyna> |
| Status: | CLOSED ERRATA | QA Contact: | Evgeny Fedin <efedin> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | efedin, fweimer, nickc |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | bacula-11.0.1-5.el9 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-17 14:03:09 UTC | Type: | --- |
| 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: | 2045722 | ||
| Bug Blocks: | 2044387 | ||
|
Description
Rui Ormonde
2022-01-24 21:46:09 UTC
My investigation has revealed that the two executables have one thing in common: they are Qt GUI applications. Their Makefile is regenerated by qmake, but in the spec file the regeneration happens only after the executables are built, thus the correct flags are not applied. I suspect some other Qt applications may have this problem (I certainly found it in pcp-gui), so it could be worth to let their maintainers know to discuss common approaches. (In reply to Pavel Cahyna from comment #2) > My investigation has revealed that the two executables have one thing in > common: they are Qt GUI applications. Their Makefile is regenerated by > qmake, but in the spec file the regeneration happens only after the > executables are built, thus the correct flags are not applied. I suspect > some other Qt applications may have this problem (I certainly found it in > pcp-gui), so it could be worth to let their maintainers know to discuss > common approaches. Do you use any %qmake macros for building? This came up before: Build flag injection for qmake https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/WDU7IHZIUWENZAY4YRGU3OMHLB5CECOX/ (In reply to Florian Weimer from comment #5) > (In reply to Pavel Cahyna from comment #2) > > My investigation has revealed that the two executables have one thing in > > common: they are Qt GUI applications. Their Makefile is regenerated by > > qmake, but in the spec file the regeneration happens only after the > > executables are built, thus the correct flags are not applied. I suspect > > some other Qt applications may have this problem (I certainly found it in > > pcp-gui), so it could be worth to let their maintainers know to discuss > > common approaches. > > Do you use any %qmake macros for building? This came up before: I do, https://gitlab.com/redhat/centos-stream/rpms/bacula/-/blob/c9s/bacula.spec#L349 . Apparently the problem is that this is invoked too late: the executable has already been built in the lines above (moving the %qmake invocation above will help). > > Build flag injection for qmake > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ > message/WDU7IHZIUWENZAY4YRGU3OMHLB5CECOX/ I am not sure what is the conclusion from that thread. Should I use %qmake_qt5_wrapper instead of %qmake_qt5, or continue to use %qmake_qt5 ? I would like to remove these two subpackages: bz2045722 (In reply to Pavel Cahyna from comment #7) > > Build flag injection for qmake > > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ > > message/WDU7IHZIUWENZAY4YRGU3OMHLB5CECOX/ > > I am not sure what is the conclusion from that thread. Should I use > %qmake_qt5_wrapper instead of %qmake_qt5, or continue to use %qmake_qt5 ? My (limited) understanding is that %qmake_qt5 should work. I think you should probably use %set_build_flags near the start of the build. The offending binaries are now buildroot-only. I will try to fix the build together with the future update, but I believe the problem does not really matter anymore. Merge request: https://gitlab.com/redhat/centos-stream/rpms/bacula/-/merge_requests/3 . Note that rpminspect executed from Zuul says Running annocheck inspection... pass https://centos.softwarefactory-project.io/zuul/t/centos/build/a74ce2048d54461cab5f1ec1db777ad2 In another merge request without this change https://gitlab.com/redhat/centos-stream/rpms/bacula/-/merge_requests/4 there is Running annocheck inspection... FAIL https://centos.softwarefactory-project.io/zuul/t/centos/build/7a4f94e209f74d31b90bc37f5956a89d Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: bacula), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:2638 |