[Rpm-maint] [rpm-software-management/rpm] %epoch is defined globally if is set only in one subpackage (#1745)
mikhailnov
notifications at github.com
Mon Jul 12 14:02:39 UTC 2021
Minimal reproduction, `rpm-1745.spec`:
```
Name: rpm-1745
Summary: %name
License: no
Version: 0
Release: 0
Group: System/Base
%description
%name
%files
/epoch.txt
#--------------
%package sub1
Summary: sub1
Group: System/Base
Epoch: 2
%description sub1
sub1
%files sub1
#--------------
%prep
%build
%install
echo %{epoch} > %{buildroot}/epoch.txt
```
Build packages: `rpmbuild -bb rpm-1745.spec`
Check epochs:
```
$ rpm -qp --qf '%{epoch}\n' rpm-1745-0-0-rosa2019.1.x86_64.rpm rpm-1745-sub1-0-0-rosa2019.1.x86_64.rpm
(none)
2
```
They are correct. But "2" was written to "epoch.txt".
--
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/1745#issuecomment-878305718
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210712/bd3e8087/attachment.html>
More information about the Rpm-maint
mailing list