Bug 2310713
| Summary: | fedpkg clog produces multiple duplicate line | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mamoru TASAKA <mtasaka> |
| Component: | fedpkg | Assignee: | Ondřej Nosek <onosek> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | berrange, bugs.michael, fedora, lsedlar, mattias.ellert, onosek, philip.wyett, pmatilai, pstodulk, qcxhome, rjones, zdohnal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-03-05 01:15:04 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: | |||
|
Description
Mamoru TASAKA
2024-09-08 13:22:55 UTC
Argh! Confirmed: https://src.fedoraproject.org/rpms/claws-mail/c/004d33333804610736560874eb6ac6dd1400a929?branch=rawhide I hit the same issue :( . *** Bug 2332089 has been marked as a duplicate of this bug. *** Also fedpkg commit -c & fedpkg update. Same issue I guess, the issue comes from rpm.
when commit -c is run, the clog method is executing:
`rpm -q --qf '%{CHANGELOGTEXT}\n' --undefine '_changelog_trimtime' --specfile <SPECFILE>`
The duplication occurs in Fedora 41, where rpm-4.20 is installed.
On Fedora 40 with rpm-4.19 the behaviour is unchanged.
That rpm query is buggy, %{CHANGELOGTEXT} is an array and so needs to be queried as such. See https://rpm-software-management.github.io/rpm/manual/queryformat.html for whole story but for TLDR version: "--qf '[%{CHANGELOGTEXT}\n]'" produces all the changelog entry texts with no other info, if that's the intention.
On a mostly unrelated note, for any spec queries you'd be better off using "rpmspec" directly. That's what "rpm -q <spec>" ends up executing anyhow but using it directly gives you direct access to things "rpm -q <spec>" cannot do.
Recently I also noticed the commit log is appearing multiple times in 'clog` file when you run 'fedpkg clog'. The fix is being prepared: https://pagure.io/rpkg/pull-request/729 FEDORA-2025-1ef7283bb9 (rpkg-1.67-7.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-1ef7283bb9 FEDORA-2025-6d5589b0ee (rpkg-1.67-7.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2025-6d5589b0ee FEDORA-2025-a771ea5819 (rpkg-1.67-7.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2025-a771ea5819 FEDORA-EPEL-2025-675f00561c (rpkg-1.67-7.el8) has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-675f00561c FEDORA-EPEL-2025-916d2b6a29 (rpkg-1.67-7.el10_1) has been submitted as an update to Fedora EPEL 10.1. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-916d2b6a29 FEDORA-2025-a771ea5819 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-2025-a771ea5819` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a771ea5819 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-1ef7283bb9 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1ef7283bb9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1ef7283bb9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-6d5589b0ee 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-2025-6d5589b0ee` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6d5589b0ee See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2025-916d2b6a29 has been pushed to the Fedora EPEL 10.1 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-916d2b6a29 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2025-45e700672a 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-2025-45e700672a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2025-675f00561c 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-2025-675f00561c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-a771ea5819 (rpkg-1.67-7.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-6d5589b0ee (rpkg-1.67-7.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2025-916d2b6a29 (rpkg-1.67-7.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2025-45e700672a (rpkg-1.67-7.el9) has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2025-675f00561c (rpkg-1.67-7.el8) has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-1ef7283bb9 (rpkg-1.67-7.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |