[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#878905: debian-policy: Document installability recommendations for dependency alternatives



On Tue, Oct 17, 2017 at 06:03:43PM +0100, Simon McVittie wrote:
> On Tue, 17 Oct 2017 at 18:12:29 +0200, Julian Andres Klode wrote:
> > (1) dconf-service depends default-dbus-session-bus | dbus-session-bus
> > (2) default-dbus-session-bus is provided by an Architecture: all package, but
> >     depends on systemd
> > 
> > APT refuses to install that.
> 
> This specific instance of a more general problem is #878878.
> 
> > I think it makes sense to amend section 7.1 with the following information:
> > 
> >     Packages on the left hand side of a pipe symbol should either be installable
> >     or should not exist in the given situation (for example, because it is linux-only
> >     and the package only exists on non-Linux platform).
> 
> In #878878 I'm intending to fix that by:
> 
> - changing dbus-user-session from Architecture: all to
>   Architecture: linux-any (which means we'll have 20 copies of it instead
>   of one, counting non-release architectures, but that's the price we pay
>   for retaining best-effort support for non-Linux kernels)
> 
> - changing dbus-x11 to add Provides: d-d-s-b [!linux-any]
> 
> Is that the resolution that you would recommend?

Indeed, that works. Another solution that would _probably_
be ok for APT at least would be to make default-dbus-session
a real package depending on 

	systemd | dbus-x11, dbus-user-session | dbus-x11

But that seems weird. (I'd expect apt to pick dbus-x11 in
the first case because systemd does not exist, and then it
would notice that when visiting the second one).

I wish we had linux-all and stuff.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


Reply to: