Bug#775571: mate-session-manager: gnome-keyring integration broken (by patch from #775189)

Colomban Wendling lists.ban at herbesfolles.org
Sat Jan 17 14:31:22 UTC 2015

Package: mate-session-manager
Version: 1.8.1-6
Severity: normal
Tags: patch

Dear Maintainer,

The patch introduced by #775189 to allow users to disable gnome-keyring
integration has a logic issue and leads to only *one* of the components
to be initialized (in order, `smproxy`, then `keyring`).  This means
that with the default list of `['keyring', 'smproxy']`, only the
`smproxy` component will get initialized.

In practice it breaks the keyring, including gpg-agent and ssh-agent.

Attached is a patch that simplifies the code and makes its logic
correct: test *each* entry in the list and act accordingly.

Note: this patch may not be perfect as if there are duplicated entries
in the list the relevant component will be initialized twice, but this
didn't seem too dangerous.  If this is a real concern, it can easily be
fixed by adding a flag for each component and check it before
initializing it (and set if after, of course).


PS: the patch is a manual diff between two copies from
`apt-get sources` -- and thus is a patch against the previously patched
state.  I would gladly make a proper patch against the upstream source
using Git, but I couldn't figure out how this works with Debian stuff
like gbp.  If there is a quick and simple guide or alike, or if a patch
against direct upstream (where?) Git is ok, I can re-do it.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mate-session-manager depends on:
ii  dbus-x11                                     1.8.14-1
ii  dconf-gsettings-backend [gsettings-backend]  0.22.0-1
ii  libc6                                        2.19-13
ii  libdbus-1-3                                  1.8.14-1
ii  libdbus-glib-1-2                             0.102-1
ii  libgdk-pixbuf2.0-0                           2.31.1-2+b1
ii  libglib2.0-0                                 2.42.1-1
ii  libgtk2.0-0                                  2.24.25-1
ii  libice6                                      2:1.0.9-1+b1
ii  libsm6                                       2:1.2.2-1+b1
ii  libsystemd0                                  215-9
ii  libx11-6                                     2:1.6.2-3
ii  libxau6                                      1:1.0.8-1
ii  libxext6                                     2:1.3.3-1
ii  libxrender1                                  1:0.9.8-1+b1
ii  libxtst6                                     2:1.2.2-1+b1
ii  upower                                       0.99.1-3.1

Versions of packages mate-session-manager recommends:
ii  caja                  1.8.2-1
ii  marco                 1.8.2+dfsg1-4
ii  mate-panel            1.8.1+dfsg1-3
ii  mate-polkit           1.8.0+dfsg1-4
ii  mate-settings-daemon  1.8.2-1

mate-session-manager suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mate-session-manager-fix-gnome-keyring-integration-checks.diff
Type: text/x-diff
Size: 1919 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mate-team/attachments/20150117/48e0a985/attachment.diff>

More information about the pkg-mate-team mailing list