Description of problem: The linker script used to build the krb5 packages is somehow added to the output of the 'krb5-config' utility. # krb5-config --libs -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-krb5-1.19.2-4.fc36.1.x86_64.ld -lkrb5 -lk5crypto -lcom_err Packages using this output to add dependent libraries to the gcc command line will fail. Version-Release number of selected component (if applicable): krb5-devel-1.19.2-4.fc36.1.x86_64 How reproducible: Install krb5-devel-1.19.2-4.fc36.1.x86_64 and call 'krb5-config --libs' Actual results: # krb5-config --libs -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-krb5-1.19.2-4.fc36.1.x86_64.ld -lkrb5 -lk5crypto -lcom_err Expected results: Here I'm note quite sure which linker options should be present, if any. In older versions of the krb5 package the output looks like: # krb5-config --libs -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -lkrb5 -lk5crypto -lcom_err
The last build was a mass-rebuild. krb5 spec file does a cleanup of krb5-config and last year we changed it in -3.fc35 to -# Temporay workaround for krb5-config reading too much from LDFLAGS. -# Upstream: http://krbdev.mit.edu/rt/Ticket/Display.html?id=8159 -sed -r -i -e "s/-specs=\/.+?\/redhat-hardened-ld//g" $RPM_BUILD_ROOT%{_bindir}/krb5-config - -if [[ "$(< $RPM_BUILD_ROOT%{_bindir}/krb5-config )" == *redhat-hardened-ld* ]] ; then - printf '# redhat-hardened-ld for krb5-config failed' 1>&2 - exit 1 -fi +# Workaround krb5-config reading too much from LDFLAGS. +# https://bugzilla.redhat.com/show_bug.cgi?id=1997021 +sed -i -e "s/-specs=[^ ]*//g" $RPM_BUILD_ROOT%{_bindir}/krb5-config With the mass rebuild, we get the following LD_FLAGS passed during the build in https://kojipkgs.fedoraproject.org//packages/krb5/1.19.2/4.fc36.1/data/logs/x86_64/build.log: + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-krb5-1.19.2-4.fc36.1.x86_64.ld' + export LDFLAGS in the previous build we had + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + export LDFLAGS So I think the workaround for bug 1997021 needs to be enhanced to cut off everything after the specs? Or -Wl,-dT and -Wl,--build-id=*? Re-assigning to Julien.
FEDORA-2022-ba494d207e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ba494d207e
FEDORA-2022-ba494d207e has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
https://src.fedoraproject.org/rpms/krb5/pull-request/7 reenabled packages notes and fixes krb5-config instead. PTAL.
FEDORA-2022-b3909bc19b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b3909bc19b
FEDORA-2022-b3909bc19b has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-54cade0290 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-54cade0290
FEDORA-2022-54cade0290 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.