rpm: %exclude should be counted negative
Bug #633753 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Triaged
|
Low
|
Unassigned | ||
openSUSE |
Won't Fix
|
High
|
Bug Description
Tracker
Changed in opensuse: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in opensuse: | |
importance: | Medium → High |
Changed in opensuse: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
Clarifying: What triggers the unexpected behaviour is
%files /lib*-% {version} .so
%{_libdir}
%files devel /lib*-% {version} .so
%{_libdir}/lib*.so
%exclude %{_libdir}
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.