https://bugzilla.novell.com/show_bug.cgi?id=658212 https://bugzilla.novell.com/show_bug.cgi?id=658212#c7 --- Comment #7 from Johannes Obermayr <johannesobermayr@gmx.de> 2011-08-26 12:44:22 UTC --- (In reply to comment #6)
No, we don't. A 'Requires: %name = %version-%release' does not merely link the packages but constitutes a bogus fact that the %name-debuginfo package requires %name in any form which it does not! I can perfectly well install _only_ a debuginfo package and inspect its contents, or use it from gdb when inspecting a core file.
Thus, a requires is _wrong_. You could maybe say that it conflicts with %name != %version-%release but even that would be wrong in the core file case (where I want to be able to install a specific -debuginfo package, which is even suggested by gdb(!), without eventually needing to downgrade/upgrade my systems library packages).
For joe user %name and %name-debuginfo should have the same %version-%release. An advanced user (e. g. tester, developer) should know how (s)he can go around a dependency issue and install a %name-debuginfo package with different version. (e. g. via 'rpm -ihv --force --nodeps [--oldpackage] %name-debuginfo-${different_version}') an equivalent thing (--nodeps) must be in zypper (AFAIK not yet available).
"handle" by asking the user. But then there is no way to make my above use-cases work with that requirement encoded in the package.
An automatic handling must be introduced in frontends because rpm is the wrong place for it. (e. g. zypper: "Following debuginfo packages will be removed because of not matching versions:")
So, no, I think adding a requires is a step in the completely wrong direction. Btw, see the initial description on how existing tools can link %name and %name-debuginfo (if not simply looking at the package name only). I think this -debuginfo stuff is purely a frontend issue, apart from maybe providing a more reliable link from %name-debuginfo to %name (you can add a Provides: debuginfo(pkg) = %name or similar).
With 'Requires: %name = %version-%release' rpm provides the *right* link between %name-debuginfo and %name for joe user (and I assume in 99.99 % of cases). A 'Provides: debuginfo(pkg) = %name' cannot do it since it does not provide the neccessary link (packages should have same %version-%release) between the packages. Altogether: rpm must provide the neccessary link (depend on %name = %version-%release) for 99.99 % of cases - frontends must be able to handle exceptions. -- 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.