[Merge] ~philroche/ubuntu-seeds/+git/ubuntu:bugfix/mantic-cloud-minimal-time-daemon into ~ubuntu-core-dev/ubuntu-seeds/+git/ubuntu:mantic

Philip Roche mp+449589 at code.launchpad.net
Wed Aug 23 09:24:16 UTC 2023


@vorlon Thanks.

> If the solutions for virtual packages are ordered by Priority, then good. If they're ordered lexically by name, then bad.

I have checked the priority of the other packages that provide time-daemon and systemd-timesyncd has the highest priority.

```
:~$ sudo apt install time-daemon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package time-daemon is a virtual package provided by:
  openntpd 1:6.2p3-4.2
  ntpsec 1.2.2+dfsg1-2
  systemd-timesyncd 253.5-1ubuntu1
  chrony 4.3-2ubuntu1
You should explicitly select one to install.

E: Package 'time-daemon' has no installation candidate
:~$ apt show systemd-timesyncd | grep Priority

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Priority: important
:~$ apt show chrony | grep Priority

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Priority: extra
:~$ apt show ntpsec | grep Priority

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Priority: optional
:~$ apt show openntpd | grep Priority

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Priority: optional
```

So if the germination of the seed results in sorting my priority then this works for us and will result in systemd-timesyncd and if the priority were to change then the package chosen would too - the priority would have been changed for good reason and we would likely want to change the time-daemon in the seed anyway.

I have updated the MP with [a further commit](https://git.launchpad.net/~philroche/ubuntu-seeds/+git/ubuntu/commit/?id=8958b0bb8f3f8a426e88467486b2887aa8e7c5e4) (we can squash commits later) to allow for testing the result of depending on a virtual package.


-- 
https://code.launchpad.net/~philroche/ubuntu-seeds/+git/ubuntu/+merge/449589
Your team Ubuntu Core Development Team is subscribed to branch ~ubuntu-core-dev/ubuntu-seeds/+git/ubuntu:mantic.




More information about the Ubuntu-reviews mailing list