[Rpm-maint] [rpm-software-management/rpm] Can not parse CHANGELOGTEXT from the specfile (#1301)

Ondrej Nosek notifications at github.com
Tue Jul 7 21:43:44 UTC 2020


Hi,
recently unit tests for `rpkg` tool started failing. I found, that `rpm` returns a different result than before.
I have simple specfile:

```
Summary: Dummy summary
Name: docpkg
Version: 1.2
Release: 2%{dist}
License: GPL
#Source0:
#Patch0:
Group: Applications/Productivity
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
Dummy docpkg for tests
%prep
%check
%build
touch README.rst
%clean
rm -rf $$RPM_BUILD_ROOT
%install
rm -rf $$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.rst
%changelog
* Sat Jun 30 2018 Tester <tester at example.com> - 1.2-2
- Initial version
```
And my script has been extracting the CHANGELOGTEXT by command:

````
$ rpm -q --qf "%{CHANGELOGTEXT}\n" --specfile "docpkg.spec"
````
Expected output was:
````
- Initial version
````
but in some systems it returns just:
````
(none)
````

doesn't work (with rpm version):
- Fedora29: 4.14.2-1-2
- Fedora30: 4.14.2.1-5
- Fedora31: 4.15.1-2

works as expected:
- Fedora28: 4.14.2.1-2
- Centos7: 4.11.3-43

Does anybody know what happened? I looked at rpm changelog but didn't notice anything useful. Was the `rpm` / `rpm-build` behaviour changed this way?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1301
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200707/6506d818/attachment-0001.html>


More information about the Rpm-maint mailing list