[opensuse-packaging] Dependencies between packages and their YaST module (was: Re: [opensuse-factory] Yast improvment ide?)
Hello, on Samstag, 6. September 2008, Wolfgang Woehl wrote:
ps: Why is the httpd module not pulled in when I install apache?
Because the apache package does not have Recommends: yast2-http-server in its specfile. The other way round is also possible: add Supplements: apache2 to the yast2-http-server package. (Open a bugreport and it might be added ;-) This would be useful for every YaST module, so maybe it {c,sh}ould be made a general policy: - "If there is a YaST module for a package, the package should recommend it" - or - - "each YaST module should have a Suplements: for the package it configures" This might even be the better solution because it is easier to check ("each YaST package must have at least one Supplements: statement") I'm cross-posting this mail to the opensuse-packaging mailinglist because packaging policies are better fitted there. Please answer only to the -packaging mailinglist if possible. (Packagers, do you like the above proposal?) Regards, Christian Boltz -- "GNU is not Linux - Linux has a kernel that boots" [Chris Thompson] --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sunday 07 September 2008, Christian Boltz wrote:
- "each YaST module should have a Suplements: for the package it configures" This might even be the better solution because it is easier to check ("each YaST package must have at least one Supplements: statement")
that might be difficult for things like yast2-mail or any other yast2 module that configures multiple alternative implementations. The reverse, as you noticed, however is not automatically verifyable with e.g. rpmlint. at least I don't know how.. Greetings, Dirk --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello, on Mittwoch, 10. September 2008, Dirk Müller wrote:
On Sunday 07 September 2008, Christian Boltz wrote:
- "each YaST module should have a Suplements: for the package it configures" This might even be the better solution because it is easier to check ("each YaST package must have at least one Supplements: statement")
that might be difficult for things like yast2-mail
Requires: smtp_daemon should work. Whatever package provides the smtp_daemon symbol will fit this.
or any other yast2 module that configures multiple alternative implementations.
Those packages should provide a common symbol which can be used in the Supplements: of the YaST package.
The reverse, as you noticed, however is not automatically verifyable with e.g. rpmlint. at least I don't know how..
rpm -q --supplements yast2-foo (and check if it is != "(none)") should help - but I'm not a rpmlint expert ;-) The basic question is: which way is better? a) Package yast2-foo Supplemens: foo b) Package foo Recommends: yast2-foo Technically (from the dependency solving POV) both ways will work. The advantage of a) is that it can be checked automatically (as in "every YaST module is used to configure a package/functionality"). Another advantage is that the information which yast-foo package is used for package foo is kept at the right place which is the yast-foo package IMHO. Auto-checking b) would be very nice ("every package has a YaST module to configure it") - but I'm afraid this more a dream than doable in reality ;-) BTW: Even if rpmlint can not check this for now for whatever reason, it should at least be added to the packaging guidelines. Regards, Christian Boltz --
Ein Update auf eine EIN JAHR alte Version? Ich denke er hat einfach auf das geupdated, was bei Debian derzeit als "aktuell" ausgeliefert wird... Ja, ist mir dann auch aufgegangen. Immer diese "Debian-Hasser". :) [>> nighthawk, >(>>) Ralf Hildebrandt und crandler in postfixbuch-users]
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Christian Boltz escribió:
Requires: smtp_daemon should work. Whatever package provides the smtp_daemon symbol will fit this.
hopefully some day, it will, however nowdays it does not behave "as expected" zypp installs exim while it should instead install postfix, this is because it picks the smaller package (what the ... ) -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
On 10/09/2008, Cristian Rodríguez <crrodriguez@suse.de> wrote:
Christian Boltz escribió:
Requires: smtp_daemon should work. Whatever package provides the smtp_daemon symbol will fit this.
hopefully some day, it will, however nowdays it does not behave "as expected" zypp installs exim while it should instead install postfix, this is because it picks the smaller package (what the ... )
Out of interest, is it possible to Requires: smtp_daemon and Recommends: postfix; and what happens if you do that? -- Benjamin Weber --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wednesday 10 September 2008 3:29:53 pm Benji Weber wrote:
hopefully some day, it will, however nowdays it does not behave "as expected" zypp installs exim while it should instead install postfix, this is because it picks the smaller package (what the ... ) Out of interest, is it possible to Requires: smtp_daemon and Recommends: postfix; and what happens if you do that?
As far as I know that does not work yet, as Recommends are processed in a seperate solver run (first only requires, then recommends). so the decision to go with the "wrong" smtp daemon was already taken. Greetings, Dirk --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, Sep 10, 2008 at 05:56:15PM +0200, Dirk Mueller wrote:
On Wednesday 10 September 2008 3:29:53 pm Benji Weber wrote:
hopefully some day, it will, however nowdays it does not behave "as expected" zypp installs exim while it should instead install postfix, this is because it picks the smaller package (what the ... ) Out of interest, is it possible to Requires: smtp_daemon and Recommends: postfix; and what happens if you do that?
As far as I know that does not work yet, as Recommends are processed in a seperate solver run (first only requires, then recommends). so the decision to go with the "wrong" smtp daemon was already taken.
That's not true, if the solver has multiple packages to choose from, it'll prefer recommended ones. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (6)
-
Benji Weber
-
Christian Boltz
-
Cristian Rodríguez
-
Dirk Mueller
-
Dirk Müller
-
Michael Schroeder