Bug 1986710 - fedpkg srpm creates source packages without a changelog if a locale is not en_US
Summary: fedpkg srpm creates source packages without a changelog if a locale is not en_US
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rpmautospec
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Saleh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-28 07:33 UTC by Petr Pisar
Modified: 2022-05-11 01:23 UTC (History)
3 users (show)

Fixed In Version: python-rpmautospec-0.2.6-1.fc34 python-rpmautospec-0.2.6-1.fc36 python-rpmautospec-0.2.6-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-03 14:58:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-07-28 07:33:11 UTC
rpmautospec-rpm-macros-0.2.3-1.fc35 suffers from a locale bug:

(1) Get a rpmautospec-driven dist-git repository:

$ fedpkg clone -a ravada
Cloning into 'ravada'...
remote: Enumerating objects: 357, done.
remote: Counting objects: 100% (357/357), done.
remote: Compressing objects: 100% (350/350), done.
remote: Total 357 (delta 159), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (357/357), 947.11 KiB | 1.59 MiB/s, done.
Resolving deltas: 100% (159/159), done.
$ cd ravada

(2) Create a source package in cs_CZ.UTF-8 locale:

$ LC_ALL=cs_CZ.UTF-8 fedpkg srpm
Downloading ravada-1.0.3.tar.gz
######################################################################## 100.0%

chyba: špatný datum v %changelog: Ne čec 25 2021 Robert-André Mauchin <zebob.m> 1.0.3-1
Zapsáno: /home/test/fedora/ravada/ravada-1.0.3-1.fc35.src.rpm

It reported a bad date in %changelog, but created the RPM package nevertheless.

(3) The changelog in the SRPM package is empty:

$ rpm -q --changelog -p ravada-1.0.3-1.fc35.src.rpm 

Compare to creating the package in en_US.UTF-8 locale:

$ LC_ALL=en_US.UTF-8 fedpkg srpm

error: %changelog not in descending chronological order
setting SOURCE_DATE_EPOCH=1627171200
Wrote: /home/test/fedora/ravada/ravada-1.0.3-1.fc35.src.rpm
$ rpm -q --changelog -p ravada-1.0.3-1.fc35.src.rpm | head
* Sun Jul 25 2021 Robert-André Mauchin <zebob.m> 1.0.3-1
- Update to 1.0.3 Close: rhbz#1973849

* Fri Jul 23 2021 Fedora Release Engineering <releng> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Mon May 24 2021 Jitka Plesnikova <jplesnik> - 1.0.1-2
- Perl 5.34 re-rebuild updated packages

Comment 1 Ben Cotton 2021-08-10 13:15:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 2 Fedora Update System 2022-04-25 16:46:26 UTC
FEDORA-2022-1e8145fb45 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1e8145fb45

Comment 3 Fedora Update System 2022-04-25 16:46:30 UTC
FEDORA-2022-e050aa1e6d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e050aa1e6d

Comment 4 Fedora Update System 2022-04-25 16:46:31 UTC
FEDORA-2022-0c44eb0df4 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0c44eb0df4

Comment 5 Fedora Update System 2022-04-26 06:26:15 UTC
FEDORA-2022-1e8145fb45 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-1e8145fb45`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1e8145fb45

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

Comment 6 Fedora Update System 2022-04-26 08:04:01 UTC
FEDORA-2022-0c44eb0df4 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-0c44eb0df4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0c44eb0df4

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

Comment 7 Fedora Update System 2022-04-26 08:08:38 UTC
FEDORA-2022-e050aa1e6d has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-e050aa1e6d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-e050aa1e6d

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

Comment 8 Fedora Update System 2022-05-03 14:58:15 UTC
FEDORA-2022-e050aa1e6d has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-05-07 04:31:29 UTC
FEDORA-2022-1e8145fb45 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-05-11 01:23:19 UTC
FEDORA-2022-0c44eb0df4 has been pushed to the Fedora 35 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.