From 66098b111d04f1441746cc0ff6ebf7cfe2e4803b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 8 May 2020 09:10:55 -0700 Subject: [PATCH] Fix packagekit-offline-update.service not being enabled (#1833176) Just fixing this downstream for now, as it's not clear what the best upstream fix for this is yet. --- PackageKit.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/PackageKit.spec b/PackageKit.spec index 0e027e3..4239490 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -6,7 +6,7 @@ Summary: Package management service Name: PackageKit Version: 1.2.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.freedesktop.org/software/PackageKit/ Source0: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz @@ -164,6 +164,13 @@ pushd %{buildroot}%{_libexecdir} > /dev/null ln -s pk-gstreamer-install gst-install-plugins-helper popd > /dev/null +# enable packagekit-offline-updates.service here for now, till we +# decide how to do it upstream after the meson conversion: +# https://github.com/hughsie/PackageKit/issues/401 +# https://bugzilla.redhat.com/show_bug.cgi?id=1833176 +mkdir -p %{buildroot}%{_unitdir}/system-update.target.wants/ +ln -sf ../packagekit-offline-update.service %{buildroot}%{_unitdir}/system-update.target.wants/packagekit-offline-update.service + %find_lang %name %post @@ -202,7 +209,7 @@ systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || : %{_datadir}/dbus-1/interfaces/*.xml %{_unitdir}/packagekit-offline-update.service %{_unitdir}/packagekit.service -#%{_unitdir}/system-update.target.wants/ +%{_unitdir}/system-update.target.wants/ %{_libexecdir}/pk-*offline-update %{_libdir}/packagekit-backend/libpk_backend_dnf.so @@ -239,6 +246,9 @@ systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || : %{_datadir}/vala/vapi/packagekit-glib2.deps %changelog +* Fri May 08 2020 Adam Williamson - 1.2.0-3 +- Fix packagekit-offline-update.service not being enabled (#1833176) + * Tue May 05 2020 Neal Gompa - 1.2.0-2 - Clean up and simplify spec - Fix packaging to work properly with EL8+