Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04): add polkitd and dependencies #325

Open
wants to merge 8 commits into
base: ubuntu-24.04
Choose a base branch
from

Conversation

Meulengracht
Copy link
Member

@Meulengracht Meulengracht commented Aug 28, 2024

Proposed changes

Polkitd and it's dependencies are required for Ubuntu Core 24. Add the slices, and mutation scripts required to imitate what happens by postinst or perl scripts that are carried by included packages.

Two mutation scripts are added:
xml-core which handles updating the xml catalog
sgml-base which handles updating the sgml catalog

Related issues/PRs

Requires #293 and #274 to land

Forward porting

Once this is approved I'll forward port this to 24.10

Checklist

@Meulengracht Meulengracht changed the title feat(24.04): add polktid and dependencies feat(24.04): add polkitd and dependencies Aug 28, 2024
Copy link

github-actions bot commented Aug 28, 2024

Diff of dependencies:

slices/polkitd.yaml
@@ -1,7 +1,4 @@
-adduser
-dbus-system-bus
-default-dbus-system-bus
-default-logind
+dbus-broker
 libc6
 libduktape207
 libexpat1
@@ -10,6 +7,6 @@
 libpolkit-agent-1-0
 libpolkit-gobject-1-0
 libsystemd0
-logind
-systemd-sysusers
+login
+opensysusers
 xml-core
slices/sgml-base.yaml
@@ -1 +0,0 @@
-dpkg
slices/xml-core.yaml
@@ -1,2 +1 @@
-sed
 sgml-base

@Meulengracht Meulengracht marked this pull request as ready for review August 30, 2024 09:45
@Meulengracht Meulengracht marked this pull request as draft August 30, 2024 09:45
@Meulengracht Meulengracht marked this pull request as ready for review September 2, 2024 09:28
Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dep diff change: you seem to be using alternative dependencies (e.g. login instead of logind), dropping a few (e.g. sed) and adding some new ones as well. Is this all intentional? If so, can you please add comments where they are being listed, explaining the rationale?

There are also some tests missing. We should aim to test at least every single executable being proposed.

@@ -0,0 +1,38 @@
package: dbus-broker
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also test these slices pls?

@@ -4,6 +4,14 @@ essential:
- libglib2.0-0t64_copyright

slices:
bins:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you test this pls?

@@ -0,0 +1,31 @@
package: login
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please test this?

Comment on lines +9 to +11
/bin/systemd-sysusers:
/etc/init.d/opensysusers:
/usr/bin/opensysusers-sysusers:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, can you pls test them?

Comment on lines +29 to +30
/usr/lib/policykit-1/polkit-agent-helper-1:
/usr/lib/polkit-1/polkit-agent-helper-1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these helpers needed? Or could they belong to an additional slice?

Comment on lines +11 to +17
/usr/sbin/halt:
/usr/sbin/init:
/usr/sbin/poweroff:
/usr/sbin/reboot:
/usr/sbin/runlevel:
/usr/sbin/shutdown:
/usr/sbin/telinit:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you test these pls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants