Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2018-12-22 Thread gregor herrmann
On Fri, 07 Dec 2018 19:26:50 -0700, Sean Whitton wrote:

> Thanks.  Seeking seconds:
> 
> diff --git a/virtual-package-names-list.yaml b/virtual-package-names-list.yaml
> index ab2662e..f7626ef 100644
> --- a/virtual-package-names-list.yaml
> +++ b/virtual-package-names-list.yaml
> @@ -106,6 +106,10 @@ virtualPackages:
> description: anything that is capable of controlling an UPS
>   - name: cron-daemon
> description: Any cron daemon that correctly follows policy requirements
> + - name: dbus-session-bus
> +   description: provides the D-Bus well-known session bus for most or all 
> user login sessions
> + - name: default-dbus-session-bus
> +   description: Debian's preferred implementation of dbus-session-bus, 
> possibly architecture-specific
> 
>  # Documentation
> 
> @@ -435,3 +439,7 @@ virtualPackages:
>  # virtual-mysql-server-core
>  # virtual-mysql-testsuite
>  #   08 Jan 2017 Added adventure
> +#
> +# Sean Whitton:
> +#   xx Dec 2018 Added dbus-session-bus
> +#   Added default-dbus-session-bus
> 

This looks all good to me, hence: seconded.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Uriah Heep: Stealin'


signature.asc
Description: Digital Signature


Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2018-12-08 Thread Simon McVittie
On Fri, 07 Dec 2018 at 19:26:50 -0700, Sean Whitton wrote:
> diff --git a/virtual-package-names-list.yaml b/virtual-package-names-list.yaml
> + - name: dbus-session-bus
> +   description: provides the D-Bus well-known session bus for most or all 
> user login sessions
> + - name: default-dbus-session-bus
> +   description: Debian's preferred implementation of dbus-session-bus, 
> possibly architecture-specific

Seconded, thanks.

smcv



Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2018-12-07 Thread Sean Whitton
control: tag -1 +patch

Hello,

On Sat 24 Nov 2018 at 03:23PM GMT, Simon McVittie wrote:

> The routes that I described as "other options" were not taken.
>
> The current situation is that we have the two virtual packages that I
> proposed in the original bug report
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833401#5
> modulo the rename of dbus-default-session-bus to default-dbus-session-bus
> as mentioned in
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833401#10 (trying to
> continue/establish a convention that the preferred implementation of a
> virtual package foo is default-foo). So:
>
> * dbus-session-bus: anything providing the D-Bus well-known session bus
>   for most or all user login sessions. If dbus-session-bus is
>   installed, then programs in at least graphical login sessions can
>   rely on seeing the $DBUS_SESSION_BUS_ADDRESS environment variable,
>   the $XDG_RUNTIME_DIR/bus Unix socket, or some other way to discover a
>   session bus that is supported by all the major D-Bus client libraries.
>
> * default-dbus-session-bus: Debian's preferred implementation of
>   dbus-session-bus, possibly architecture-specific.

Thanks.  Seeking seconds:

diff --git a/virtual-package-names-list.yaml b/virtual-package-names-list.yaml
index ab2662e..f7626ef 100644
--- a/virtual-package-names-list.yaml
+++ b/virtual-package-names-list.yaml
@@ -106,6 +106,10 @@ virtualPackages:
description: anything that is capable of controlling an UPS
  - name: cron-daemon
description: Any cron daemon that correctly follows policy requirements
+ - name: dbus-session-bus
+   description: provides the D-Bus well-known session bus for most or all user 
login sessions
+ - name: default-dbus-session-bus
+   description: Debian's preferred implementation of dbus-session-bus, 
possibly architecture-specific

 # Documentation

@@ -435,3 +439,7 @@ virtualPackages:
 # virtual-mysql-server-core
 # virtual-mysql-testsuite
 #   08 Jan 2017 Added adventure
+#
+# Sean Whitton:
+#   xx Dec 2018 Added dbus-session-bus
+#   Added default-dbus-session-bus

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2018-11-24 Thread Simon McVittie
On Sat, 03 Nov 2018 at 14:07:18 -0700, Sean Whitton wrote:
> On Thu 04 Aug 2016 at 01:43PM +0100, Simon McVittie wrote:
> >> Other options
>
> I note that no such binary package exists right now.  Does this issue
> remain unresolved?  I also note recent discussion on d-devel.  Kindly
> update this bug with the present state of play.

The routes that I described as "other options" were not taken.

The current situation is that we have the two virtual packages that I
proposed in the original bug report
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833401#5
modulo the rename of dbus-default-session-bus to default-dbus-session-bus
as mentioned in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833401#10 (trying to
continue/establish a convention that the preferred implementation of a
virtual package foo is default-foo). So:

* dbus-session-bus: anything providing the D-Bus well-known session bus
  for most or all user login sessions. If dbus-session-bus is
  installed, then programs in at least graphical login sessions can
  rely on seeing the $DBUS_SESSION_BUS_ADDRESS environment variable,
  the $XDG_RUNTIME_DIR/bus Unix socket, or some other way to discover a
  session bus that is supported by all the major D-Bus client libraries.

* default-dbus-session-bus: Debian's preferred implementation of
  dbus-session-bus, possibly architecture-specific.

Programs and desktop environments that require a D-Bus session bus and
cannot work without one should normally declare:

Depends: default-dbus-session-bus | dbus-session-bus

unless they have more specific requirements. Programs with weaker
dependencies can use a Recommends or a Suggests.

(Implementation detail: default-dbus-session-bus is currently provided
by dbus-user-session on Linux, and by dbus-x11 on non-Linux ports. On
Linux, dbus-x11 is a non-default implementation of dbus-session-bus,
to be used by people who prefer to have one session bus per X11 display,
or who don't want systemd or systemd-logind.)

smcv



Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2018-11-03 Thread Sean Whitton
control: tag -1 +moreinfo

Dear Simon,

On Thu 04 Aug 2016 at 01:43PM +0100, Simon McVittie wrote:

>> Other options
>> =
> ...
>> * Add a real (non-virtual) empty package dbus-session-bus built by src:dbus,
>>   with Depends: dbus-user-session | dbus-x11 (initially). Other packages
>>   depend on dbus-session-bus.
>>   (Pro: simpler dependency graph. Con: requires NEW queue.)
>
> Another advantage of this option (which it shares with the others that do not
> use a default-d-s-b virtual package) is that it avoids ambiguity if apt
> is configured to see more than one suite (perhaps unstable and testing, or
> testing and stable-security) and the package providing default-d-s-b differs
> between those suites.
>
> If the scheme involving two virtual packages is preferred over this
> option, I would very much appreciate someone who knows about these things
> describing why, because it isn't currently clear to me.

I note that no such binary package exists right now.  Does this issue
remain unresolved?  I also note recent discussion on d-devel.  Kindly
update this bug with the present state of play.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#833401: debian-policy: virtual packages: dbus-session-bus, default-dbus-session-bus

2016-08-04 Thread Simon McVittie
On Wed, 03 Aug 2016 at 21:47:38 +0100, Simon McVittie wrote:
> dbus-default-session-bus: Debian's preferred implementation of
> dbus-session-bus

Andreas Henriksson points out on IRC that default-dbus-session-bus is
more like the situation with mail-transport-agent and default-mta, and
could perhaps start a convention that the preferred implementation of
the virtual package foo is represented by default-foo. So I think that
would be a better name.

> Other options
> =
...
> * Add a real (non-virtual) empty package dbus-session-bus built by src:dbus,
>   with Depends: dbus-user-session | dbus-x11 (initially). Other packages
>   depend on dbus-session-bus.
>   (Pro: simpler dependency graph. Con: requires NEW queue.)

Another advantage of this option (which it shares with the others that do not
use a default-d-s-b virtual package) is that it avoids ambiguity if apt
is configured to see more than one suite (perhaps unstable and testing, or
testing and stable-security) and the package providing default-d-s-b differs
between those suites.

If the scheme involving two virtual packages is preferred over this
option, I would very much appreciate someone who knows about these things
describing why, because it isn't currently clear to me.

S