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

Offline updates broken with PackageKit 1.2.0 due to service enablement being lost in Meson conversion #401

Closed
AdamWill opened this issue May 8, 2020 · 6 comments
Labels

Comments

@AdamWill
Copy link
Contributor

AdamWill commented May 8, 2020

This is an upstream report for downstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1833176 . To summarize, the autotools -> Meson conversion inadvertently left out enablement of the packagekit-offline-update.service service in systemd-update.target, so now when we do the offline update boot, PackageKit just doesn't do anything at all. This block from the old Makefile.am simply has no equivalent in the new meson.build.

It's not clear what the best way to fix this would be, though. Creating symlinks in meson doesn't seem to be a really supported thing, and arguably we shouldn't really be doing it here; another option would be to revert this commit from 2014 and make the service a more "normal" one again, as systemd now cleans up the /system-update trigger file which was the justification for that change.

@DimStar77
Copy link
Collaborator

Keep https://bugzilla.redhat.com/show_bug.cgi?id=988235 in mind; the solution implemented was option b as suggested by Lennart

@hughsie
Copy link
Collaborator

hughsie commented May 8, 2020

I don't have time this week to look at the issue, but I'm happy to review patches. Sorry that's not more helpful.

@AdamWill
Copy link
Contributor Author

AdamWill commented May 8, 2020

I'm going to just fix it in our downstream spec for now, by creating the symlink at the end of %install. Other distros can do the same / the equivalent too I guess. That way we have time to figure out the best approach upstream.

@hughsie
Copy link
Collaborator

hughsie commented May 8, 2020

I'm going to just fix it in our downstream spec for now

Much appreciated dude.

@eli-schwartz
Copy link

@hughsie
Copy link
Collaborator

hughsie commented Nov 23, 2020

You should use meson.add_install_script() with something like this:

Could you do a PR please? I always get the systemd stuff wrong. Thanks!

@Conan-Kudo Conan-Kudo added the bug label Jun 1, 2021
@ximion ximion closed this as completed in 88dadbd Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants