Bug 2308433 - objfw-config includes extraneous system flags
Summary: objfw-config includes extraneous system flags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: objfw
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jonathan S.
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-29 04:12 UTC by Elliott Sales de Andrade
Modified: 2024-09-13 20:47 UTC (History)
1 user (show)

Fixed In Version: objfw-1.1.7-3.fc40 objfw-1.1.7-3.fc39 objfw-1.1.7-3.el9 objfw-1.1.7-3.el8 objfw-1.1.7-3.fc41
Clone Of:
Environment:
Last Closed: 2024-09-03 05:50:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elliott Sales de Andrade 2024-08-29 04:12:19 UTC
When running `objfw-config --*flags`, the output for `--ldflags` contains unnecessary system build flags. However, none of the rest of the flags do; this causes issues during linking.

Reproducible: Always

Steps to Reproduce:
1. Run objfw-config --cflags
2. Run objfw-config --cppflags
3. Run objfw-config --cxxflags
4. Run objfw-config --ldflags
Actual Results:  
$ objfw-config --cflags

$ objfw-config --cppflags
 -I/usr/include
$ objfw-config --cxxflags

$ objfw-config --ldflags
-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg   -Wl,--build-id=sha1   -fexceptions


Expected Results:  
The last run should _not_ contain flags like `--config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg`; these flags are for building an RPM, but not intended for use outside of the Fedora build system. The file referenced here is part of the redhat-rpm-config package, which is not normally installed.

In some cases, the output of `%{extension_(c|cxx|ld)flags}` may be used for user-built stuff, but that doesn't seem like it applies in this case.

Comment 1 Jonathan S. 2024-08-31 00:36:06 UTC
This has been fixed in what will become 1.1.8 and backported to objfw-1.1.7-2 in rawhide.

Comment 2 Jonathan S. 2024-08-31 00:49:10 UTC
-2 didn't have the patch actually applied, so -3 it is.

Comment 3 Fedora Update System 2024-09-01 12:57:37 UTC
FEDORA-2024-81093d70e9 (objfw-1.1.7-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-81093d70e9

Comment 4 Fedora Update System 2024-09-01 12:57:38 UTC
FEDORA-2024-5592869815 (objfw-1.1.7-3.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5592869815

Comment 5 Fedora Update System 2024-09-01 12:57:39 UTC
FEDORA-EPEL-2024-d4fc57fe32 (objfw-1.1.7-3.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-d4fc57fe32

Comment 6 Fedora Update System 2024-09-01 12:57:39 UTC
FEDORA-EPEL-2024-f3c8d85a65 (objfw-1.1.7-3.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-f3c8d85a65

Comment 7 Fedora Update System 2024-09-01 12:57:39 UTC
FEDORA-2024-0c753019e2 (objfw-1.1.7-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c753019e2

Comment 8 Fedora Update System 2024-09-02 01:43:22 UTC
FEDORA-2024-5592869815 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5592869815`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5592869815

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-09-02 01:54:05 UTC
FEDORA-EPEL-2024-d4fc57fe32 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-d4fc57fe32

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2024-09-02 02:45:08 UTC
FEDORA-2024-81093d70e9 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-81093d70e9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-81093d70e9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-09-02 02:55:29 UTC
FEDORA-EPEL-2024-f3c8d85a65 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-f3c8d85a65

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-09-02 07:29:06 UTC
FEDORA-2024-0c753019e2 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0c753019e2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c753019e2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-09-03 05:50:18 UTC
FEDORA-2024-81093d70e9 (objfw-1.1.7-3.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-09-10 02:53:38 UTC
FEDORA-2024-5592869815 (objfw-1.1.7-3.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-09-10 03:16:21 UTC
FEDORA-EPEL-2024-d4fc57fe32 (objfw-1.1.7-3.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-09-10 03:33:11 UTC
FEDORA-EPEL-2024-f3c8d85a65 (objfw-1.1.7-3.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-09-13 20:47:05 UTC
FEDORA-2024-0c753019e2 (objfw-1.1.7-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.