Bug#1025630: synaptic: dependency on transitional policykit-1 package

2023-02-07 Thread Simon McVittie
Control: forwarded -1 https://github.com/mvo5/synaptic/pull/109
Control: tags -1 + patch

On Tue, 06 Dec 2022 at 18:58:56 +, Simon McVittie wrote:
> This package has a Depends and/or Build-Depends on the transitional
> package policykit-1, which has been separated into polkitd, pkexec and
> (deprecated) polkitd-pkla packages.

Please see the attached patch, also available as a pull request at the
link above.

> If this package communicates with polkitd via D-Bus, please represent that
> as a Depends, Recommends or Suggests on polkitd, whichever is appropriate
> for the strength of the requirement.
> 
> If this package runs /usr/bin/pkexec, please represent that as a Depends,
> Recommends or Suggests on pkexec, whichever is appropriate for the strength
> of the requirement.

It looked like synaptic does both of these, so I added both dependencies.

> For packages that are expected to be backported to bullseye, it's OK to
> use an alternative dependency: polkitd | policykit-1 and/or
> pkexec | policykit-1.

I used the alternative dependency, in the interests of minimally
disruptive changes.

> This is part of a mass bug filing, see
> .

If my recent team upload of malcontent migrates to testing, this is one of
only 3 remaining source packages that would need similar changes to stop
including policykit-1 in new installations of a Debian 12 GNOME desktop
(the others are colord and rtkit). I haven't yet tried the equivalent
with other desktop environments.

Thanks,
smcv
>From ca2e12d3b3ac856b784cf772489fbdc08e145072 Mon Sep 17 00:00:00 2001
From: Simon McVittie 
Date: Tue, 7 Feb 2023 16:55:29 +
Subject: [PATCH] d/control: Depend on polkitd and pkexec in preference to
 policykit-1

This allows synaptic to be installed without the policykit-1
transitional package (and therefore the legacy polkitd-pkla package),
especially in new installations.

Closes: #1025630
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 4c8af3a5..0a7ec3ce 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Vcs-Browser: https://github.com/mvo5/synaptic
 
 Package: synaptic
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, hicolor-icon-theme, policykit-1
+Depends: ${shlibs:Depends}, ${misc:Depends}, hicolor-icon-theme, polkitd | policykit-1, pkexec | policykit-1
 Recommends: libgtk3-perl, xdg-utils
 Suggests: dwww, deborphan, apt-xapian-index, tasksel, software-properties-gtk
 Description: Graphical package manager
-- 
2.39.1



Bug#1025630: synaptic: dependency on transitional policykit-1 package

2022-12-06 Thread Simon McVittie
Source: synaptic
Version: 0.91.2
Severity: normal
User: pkg-utopia-maintain...@lists.alioth.debian.org
Usertags: policykit-1
Control: block 1025540 by -1

This package has a Depends and/or Build-Depends on the transitional
package policykit-1, which has been separated into polkitd, pkexec and
(deprecated) polkitd-pkla packages.

If this package communicates with polkitd via D-Bus, please represent that
as a Depends, Recommends or Suggests on polkitd, whichever is appropriate
for the strength of the requirement.

If this package runs /usr/bin/pkexec, please represent that as a Depends,
Recommends or Suggests on pkexec, whichever is appropriate for the strength
of the requirement.

If this package requires polkit at build-time (usually for the gettext
extensions polkit.its and polkit.loc), please build-depend on both
libpolkit-gobject-1-dev and polkitd, even if the package does not
actually depend on libpolkit-gobject-1 at runtime. This is because
the gettext extensions are currently in polkitd, but might be moved to
libpolkit-gobject-1-dev in future (see #955204). pkexec is usually not
required at build-time.

For packages that are expected to be backported to bullseye, it's OK to
use an alternative dependency: polkitd | policykit-1 and/or
pkexec | policykit-1.

This is part of a mass bug filing, see
.

Thanks,
smcv