elementary / gala

Gala Window Manager for elementary OS and Pantheon
https://elementary.io
GNU General Public License v3.0
274 stars 77 forks source link

Necessary components can be removed with apt update #2036

Closed ryonakano closed 2 months ago

ryonakano commented 2 months ago

What Happened?

Packages that is necessary for Pantheon can be removed with apt update

Steps to Reproduce

  1. Run sudo apt update
  2. Run sudo apt dist-upgrade
  3. See it says io.elementary.wingpanel, pantheon-shell, and pantheon-xsession-settings will be removed:
user@VirtualBox-08a07181:~$ sudo apt dist-upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  xwayland
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  io.elementary.wingpanel pantheon-shell pantheon-xsession-settings
The following upgrades have been deferred due to phasing:
  dpkg
The following packages have been kept back:
  io.elementary.dock io.elementary.settings.desktop
The following packages will be upgraded:
  elementary-default-settings elementary-printer-test-page gala io.elementary.bluetooth-daemon io.elementary.feedback io.elementary.initial-setup io.elementary.quick-settings io.elementary.settings-daemon
  io.elementary.settings.keyboard io.elementary.settings.mouse-touchpad io.elementary.settings.notifications io.elementary.settings.sound libgala0 libwingpanel3 slingshot-launcher
15 upgraded, 0 newly installed, 3 to remove and 3 not upgraded.
Need to get 1,873 kB of archives.
After this operation, 930 kB disk space will be freed.
N: Some packages may have been kept back due to phasing.
Do you want to continue? [Y/n] ^C
user@VirtualBox-08a07181:~$ 

Expected Behavior

The necessary components shouldn't be removed.

OS Version

8.x (Early Access)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

ryonakano commented 2 months ago

Building the debian packaging of libgala0 and gala with debuild -us -uc command, install the generated .deb files, and then running sudo apt update and sudo apt dist-upgrade will no longer offers removal of these necessary packages

[ryo@b760m ~]$ apt-cache policy gala
gala:
  Installed: 8.0.0
  Candidate: 8.0.0
  Version table:
 *** 8.0.0 100
        100 /var/lib/dpkg/status
     8.0.0~r2393+pkg99~daily~ubuntu8.1 500
        500 https://ppa.launchpadcontent.net/elementary-os/daily/ubuntu noble/main amd64 Packages
[ryo@b760m ~]$ apt-cache policy libgala0
libgala0:
  Installed: 8.0.0
  Candidate: 8.0.0
  Version table:
 *** 8.0.0 100
        100 /var/lib/dpkg/status
     8.0.0~r2393+pkg99~daily~ubuntu8.1 500
        500 https://ppa.launchpadcontent.net/elementary-os/daily/ubuntu noble/main amd64 Packages
[ryo@b760m ~]$
ryonakano commented 2 months ago

Closing as fixed in https://code.launchpad.net/~elementary-os/+archive/ubuntu/daily/+build/28891410

Looks like the package version format defined in the recipe was causing this issue.

Before: {debupstream}~r{revno}+pkg{revno:packaging}~daily After: {debupstream}+r{revno}+pkg{revno:packaging}~daily