Tested in a clean focal chroot. The dependency resolution works as
expected, allowing the package to be installed without pulling in all of
GNOME, but only if the "universe" repository component is enabled. If I
have only "main" enabled, then dependency resolution fails with the
following:

# apt install screen-resolution-extra
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 screen-resolution-extra : Depends: policykit-1-gnome but it is not installable 
or
                                    gnome-shell but it is not going to be 
installed or
                                    polkit-1-auth-agent
E: Unable to correct problems, you have held broken packages.

I'm not sure if there's a reason apt doesn't just fall back to selecting
gnome-shell when policykit-1-gnome isn't available, due to being in a
disabled repository. Perhaps this might be expected behavior, but since
there is a change in behavior compared to how the dependencies were
previously set up, I'm not sure if the change is appropriate for an SRU.
At least for default desktop installations, I imagine the difference
wouldn't be noticeable, since gnome-shell would already be installed.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to screen-resolution-extra in Ubuntu.
https://bugs.launchpad.net/bugs/1930937

Title:
  SRU: Default dependency resolution in Focal pulls in full GNOME
  Desktop

Status in screen-resolution-extra package in Ubuntu:
  Triaged
Status in screen-resolution-extra source package in Focal:
  Fix Committed
Status in screen-resolution-extra source package in Groovy:
  Fix Committed
Status in screen-resolution-extra source package in Hirsute:
  Fix Committed

Bug description:
  In Bionic, screen-resolution-extra has a dependency on
  policykit-1-gnome | polkit-1-auth-agent. Focal replaces this with a
  dependency on gnome-shell | policykit-1-gnome | polkit-1-auth-agent.
  As a result, when install screen-resolution-extra (e.g. as a
  dependency of nvidia-settings) on a system that doesn't already have
  GNOME or another polkit auth agent installed, the default dependency
  resolution pulls in a full GNOME desktop in Focal, while it does not
  do so under the same circumstances in Bionic. This can be worked
  around by explicitly installing policykit-1-gnome (or another package
  which provides the polkit-1-auth-agent virtual package), but it would
  be nice to not pull in GNOME by default on a system that doesn't
  already have it.

  [Impact]

  * Installing the nvidia-settings package causes gnome-shell to be
  installed. This is less than ideal on servers.

  [Fix]

  * Moving policykit-1-gnome ahead as the first of the polkit
  dependencies will solve the problem.

  [Test Case]

  * Install screen-resolution-extra from proposed on a system where no
  polkit-1-auth-agent provider is installed, and check that gnome-shell
  is not installed as a dependency.

  [Regression Risk]
  Low, as the change will still allow the dependency to be satisfied.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/screen-resolution-extra/+bug/1930937/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to