RPM

rpm: %exclude should be counted negative

Bug #633753 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Triaged
Low
Unassigned
openSUSE
Won't Fix
High

Bug Description

Tracker

Revision history for this message
In , Andreas-hanke (andreas-hanke) wrote :

Clarifying: What triggers the unexpected behaviour is

%files
%{_libdir}/lib*-%{version}.so

%files devel
%{_libdir}/lib*.so
%exclude %{_libdir}/lib*-%{version}.so

lib*-%{version}.so is counted twice because it matches %{_libdir}/lib*-%{version}.so and %{_libdir}/lib*.so.

So %{_libdir}/lib*-%{version}.so is strictly speaking indeed packaged twice and then one of the copies is removed again via %exclude, but %exclude doesn't do what I expect it to do in that it prevents files from being packaged without caring about the payload size.

This can be fixed by counting %exclude'd files negative instead of counting them zero.

Revision history for this message
Jeff Johnson (n3npq) wrote :

Tracker

tags: added: opensuse
Changed in opensuse:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Jeff Johnson (n3npq) wrote :
Changed in rpm:
status: New → Triaged
importance: Undecided → Low
tags: added: exclude rpmbuild
Changed in opensuse:
importance: Medium → High
Revision history for this message
In , Tchvatal (tchvatal) wrote :

Thank you for reporting your bug.

Please report it to upstream if you are still interested in its resolution:

https://github.com/rpm-software-management/rpm/issues

Changed in opensuse:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.