From bee31ad3577b15e3057bcec7b9e0f5643c0c8700 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 3 Nov 2020 06:54:14 -0500 Subject: [PATCH] import PackageKit-1.1.12-6.el8 --- SOURCES/revert-shutdown-on-idle.patch | 41 +++++++++++++++++++ ...ndor.conf.patch => rhel-Vendor.conf.patch} | 10 ++--- SPECS/PackageKit.spec | 17 ++++++-- 3 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 SOURCES/revert-shutdown-on-idle.patch rename SOURCES/{PackageKit-0.3.8-Fedora-Vendor.conf.patch => rhel-Vendor.conf.patch} (79%) diff --git a/SOURCES/revert-shutdown-on-idle.patch b/SOURCES/revert-shutdown-on-idle.patch new file mode 100644 index 0000000..602f64d --- /dev/null +++ b/SOURCES/revert-shutdown-on-idle.patch @@ -0,0 +1,41 @@ +From c9c13747e575fe2ce398cec200284d0318aaece3 Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Wed, 29 Apr 2020 13:44:41 -0500 +Subject: [PATCH] Revert "Shutdown the daemon on idle by default" + +This reverts commit 0c84d71509e851db20445c747529bd7d3724f081. + +This broke the end session dialog in GNOME Shell. + +I thought I had that fixed by changing GNOME Shell to autostart +PackageKit when it is not already running: + +https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1104 + +But turns out, there are more problems. The update fails if the user has +used dnf since PackageKit last quit, a scenario I did not test. It also +results in GNOME Software getting confused about what software is +installed and what software is not. The issues are discussed here: + +https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1227#note_784327 + +It's still desirable to shut down automatically, but it requires more +planning. And shutting down GNOME Software itself is frankly more +important, since it uses a lot more RAM than packagekitd. +--- + src/pk-main.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/pk-main.c b/src/pk-main.c +index 7a0bbd199..5791c5fef 100644 +--- a/src/pk-main.c ++++ b/src/pk-main.c +@@ -178,8 +178,6 @@ main (int argc, char *argv[]) + + /* after how long do we timeout? */ + exit_idle_time = g_key_file_get_integer (conf, "Daemon", "ShutdownTimeout", NULL); +- if (exit_idle_time == 0) +- exit_idle_time = 300; + g_debug ("daemon shutdown set to %i seconds", exit_idle_time); + + /* override the backend name */ diff --git a/SOURCES/PackageKit-0.3.8-Fedora-Vendor.conf.patch b/SOURCES/rhel-Vendor.conf.patch similarity index 79% rename from SOURCES/PackageKit-0.3.8-Fedora-Vendor.conf.patch rename to SOURCES/rhel-Vendor.conf.patch index 9eafb8e..5eaec51 100644 --- a/SOURCES/PackageKit-0.3.8-Fedora-Vendor.conf.patch +++ b/SOURCES/rhel-Vendor.conf.patch @@ -6,7 +6,7 @@ diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.co # # default=http://www.packagekit.org/pk-package-not-found.html -DefaultUrl=http://www.packagekit.org/pk-package-not-found.html -+DefaultUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Package ++DefaultUrl=https://access.redhat.com/site/solutions/537113#Missing_Package # The URL which is shown to the user when a codec could not be found. # It should explain why certain codecs cannot be used, and perhaps show @@ -15,7 +15,7 @@ diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.co # # default=none -CodecUrl=none -+CodecUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Codec ++CodecUrl=https://access.redhat.com/site/solutions/537113#Missing_Codec # The URL which is shown to the user when hardware drivers could not be found. # It should explain why some hardware is not supported, and links to futher @@ -24,7 +24,7 @@ diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.co # # default=none -HardwareUrl=none -+HardwareUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Driver ++HardwareUrl=https://access.redhat.com/site/solutions/537113#Missing_Driver # The URL which is shown to the user when fonts could not be found. # Alternatives should probably be suggested where possible. @@ -33,7 +33,7 @@ diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.co # # default=none -FontUrl=none -+FontUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Font ++FontUrl=https://access.redhat.com/site/solutions/537113#Missing_Font # The URL which is shown to the user when programs handing a mime tpye could not # be found. It should probably explain how to use wine if the program is a @@ -42,4 +42,4 @@ diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.co # # default=none -MimeUrl=none -+MimeUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_MIME_Support ++MimeUrl=https://access.redhat.com/site/solutions/537113#Missing_MIME_Support diff --git a/SPECS/PackageKit.spec b/SPECS/PackageKit.spec index fc7b0fd..c37d59c 100644 --- a/SPECS/PackageKit.spec +++ b/SPECS/PackageKit.spec @@ -14,7 +14,7 @@ Summary: Package management service Name: PackageKit Version: 1.1.12 -Release: 4%{?dist} +Release: 6%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.freedesktop.org/software/PackageKit/ Source0: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz @@ -27,14 +27,17 @@ Source1: https://github.com/rpm-software-management/libdnf/archive/%{commit1}/li Provides: bundled(libdnf) = 0.7.0 %endif -# Fedora-specific: set Vendor.conf up for Fedora. -Patch0: PackageKit-0.3.8-Fedora-Vendor.conf.patch +# RHEL-specific: set Vendor.conf up for RHEL. +Patch0: rhel-Vendor.conf.patch # Backported from upstream Patch1: 0001-dnf-Invalidate-the-sack-cache-after-downloading-new-.patch Patch2: 0001-dnf-Don-t-override-DnfContext-s-release_ver-for-the-.patch Patch3: 0001-command-not-found-Don-t-use-a-bash-regex-to-fix-othe.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1814820 +Patch4: revert-shutdown-on-idle.patch + BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: xmlto BuildRequires: gtk-doc @@ -335,6 +338,14 @@ systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || : %{_datadir}/vala/vapi/packagekit-glib2.vapi %changelog +* Fri May 22 2020 Michael Catanzaro - 1.1.12-6 +- Fix documentation links in Vendor.conf +- Resolves: #1837648 + +* Tue May 19 2020 Michael Catanzaro - 1.1.12-5 +- Do not shutdown the daemon on idle +- Resolves: #1814820 + * Mon Nov 25 2019 Richard Hughes - 1.1.12-4 - Do not use a bash regex to fix CNF on shells other than bash - Resolves: #1728855