[Bug 237018] New: rpm: %exclude should be counted negative
https://bugzilla.novell.com/show_bug.cgi?id=237018 Summary: rpm: %exclude should be counted negative Product: openSUSE 10.3 Version: unspecified Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: qa@suse.de rpm has been fixed recently to not add the size of %exclude'd files to the payload size. But in a construct like this %files %_bindir/* %exclude %_bindir/badfile the size of %_bindir/badfile is still added to the payload size. See the spec file of binutils in STABLE for a possible use case: %files %{_libdir}/lib*-%{version}.so %files devel %exclude %{_libdir}/lib*-%{version}.so The size of lib*-%{version}.so is effectively counted twice although it is packaged just once. (In case that this isn't meant to work with rpm, it's a binutils packaging bug.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=237018 ------- Comment #1 from andreas.hanke@gmx-topmail.de 2007-01-19 16:27 MST ------- 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. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=237018 stbinner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mls@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com