[Rpm-maint] [rpm-software-management/rpm] 4.16: Duplicate provides not merged (manual + fileattr) (#1166)

Miro Hrončok notifications at github.com
Tue Apr 7 10:24:07 UTC 2020


Have this spec file:

```
Name:           python3-double-provides
Version:        0
Release:        0%{?dist}
Summary:        ...
License:        MIT
BuildArch:      noarch

# This adds the provides manually provided below
BuildRequires:  python3-rpm-generators >= 11

# Manually add the provides added by the above
Provides:       python-double-provides = %{version}-%{release}
Provides:       python38-double-provides = %{version}-%{release}

%description
...

%install
touch %{buildroot}/a

%files
/a
```

And build it in Fedora rawhide.

Look at the provides:

```
$ rpm -qp --provides /var/lib/mock/fedora-rawhide-x86_64/result/python3-double-provides-0-0.fc33.noarch.rpm 
python-double-provides = 0-0.fc33
python-double-provides = 0-0.fc33
python3-double-provides = 0-0.fc33
python38-double-provides = 0-0.fc33
python38-double-provides = 0-0.fc33

$ rpmlint /var/lib/mock/fedora-rawhide-x86_64/result/python3-double-provides-0-0.fc33.noarch.rpm 
...
python3-double-provides.noarch: E: useless-provides python-double-provides
python3-double-provides.noarch: E: useless-provides python38-double-provides
...
```

I would expect that duplicate provides are merged.

For example, when doing this:

```
Provides:       python-double-provides = %{version}-%{release}
Provides:       python-double-provides = %{version}-%{release}
Provides:       python-double-provides = %{version}-%{release}
Provides:       python-double-provides = %{version}-%{release}
```

The resuting RPM has the provide only once.

I believe this is a bug when manual provides are merged with manual provides, fileattr provides are merged with fileattr provides, but manual provides are not merged with fileattr provides.

-- 
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/1166
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200407/9f9508fa/attachment.html>


More information about the Rpm-maint mailing list