commit PackageKit for openSUSE:Factory

2024-01-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2024-01-18 21:51:44

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.16006 (New)


Package is "PackageKit"

Thu Jan 18 21:51:44 2024 rev:236 rq:1139465 version:1.2.8

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2023-11-29 
21:19:51.271231296 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.16006/PackageKit.changes 
2024-01-18 21:51:51.361409869 +0100
@@ -1,0 +2,6 @@
+Tue Jan  2 08:23:40 UTC 2024 - Alynx Zhou 
+
+- Add PackageKit-find-python-3-6.patch: Specify the Python version
+  we need to build this package.
+
+---

New:

  PackageKit-find-python-3-6.patch

BETA DEBUG BEGIN:
  New:
- Add PackageKit-find-python-3-6.patch: Specify the Python version
  we need to build this package.
BETA DEBUG END:



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.p3YiYK/_old  2024-01-18 21:51:52.393447109 +0100
+++ /var/tmp/diff_new_pack.p3YiYK/_new  2024-01-18 21:51:52.397447253 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package PackageKit
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -59,6 +59,9 @@
 # PATCH-FIX-UPSTREAM PackageKit-dynamic-export.patch boo#1213309 
dims...@opensuse.org -- Fix loading modules when built with glib 2.70
 Patch16:PackageKit-dynamic-export.patch
 
+# PATCH-FIX-SLE PackageKit-find-python-3-6.patch alynx.z...@suse.com -- Build 
PackageKit with Python 3.6
+Patch1001:  PackageKit-find-python-3-6.patch
+
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  gobject-introspection-devel
@@ -274,7 +277,17 @@
 %lang_package
 
 %prep
-%autosetup -p1
+%setup -q
+%patch -P 1 -p1
+%patch -P 2 -p1
+%patch -P 3 -p1
+%patch -P 4 -p1
+%patch -P 7 -p1
+%patch -P 15 -p1
+%patch -P 16 -p1
+%if 0%{?sle_version} && 0%{?sle_version} < 16
+%patch -P 1001 -p1
+%endif
 
 %build
 %meson \


++ PackageKit-find-python-3-6.patch ++
diff --unified --recursive --text --new-file --color 
PackageKit-1.2.8.old/backends/dnf/meson.build 
PackageKit-1.2.8.new/backends/dnf/meson.build
--- PackageKit-1.2.8.old/backends/dnf/meson.build   2023-11-09 
04:35:41.0 +0800
+++ PackageKit-1.2.8.new/backends/dnf/meson.build   2024-01-02 
16:12:35.600072285 +0800
@@ -8,7 +8,7 @@
 endif
 
 python = import('python')
-python_exec = python.find_installation()
+python_exec = python.find_installation('python3.6')
 python_package_dir = get_option('pythonpackagedir')
 if python_package_dir == ''
   python_package_dir = python_exec.get_install_dir()


commit PackageKit for openSUSE:Factory

2023-09-20 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2023-09-20 13:21:07

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.16627 (New)


Package is "PackageKit"

Wed Sep 20 13:21:07 2023 rev:234 rq:1110395 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2023-03-15 
18:53:13.155972189 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.16627/PackageKit.changes 
2023-09-20 13:21:08.305339117 +0200
@@ -1,0 +2,6 @@
+Mon Jul 17 13:28:33 UTC 2023 - Dominique Leuenberger 
+
+- Add PackageKit-dynamic-export.patch: fix loading of modules when
+  built using glib 2.70 (boo#1213309).
+
+---

New:

  PackageKit-dynamic-export.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.2HgG7C/_old  2023-09-20 13:21:10.501417792 +0200
+++ /var/tmp/diff_new_pack.2HgG7C/_new  2023-09-20 13:21:10.501417792 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package PackageKit
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -74,6 +74,8 @@
 Patch14:PackageKit-zypp-fix-ambiguous-filesystem-reference.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-pkcon-permission.patch 
gh#PackageKit/PackageKit/commit/47b7f97bc, bsc#1209138 sck...@suse.com -- 
trivial: Drop unnecessary x permission
 Patch15:PackageKit-fix-pkcon-permission.patch
+# PATCH-FIX-UPSTREAM PackageKit-dynamic-export.patch boo#1213309 
dims...@opensuse.org -- Fix loading modules when built with glib 2.70
+Patch16:PackageKit-dynamic-export.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-dynamic-export.patch ++
Index: PackageKit-1.2.5/src/meson.build
===
--- PackageKit-1.2.5.orig/src/meson.build
+++ PackageKit-1.2.5/src/meson.build
@@ -76,6 +76,7 @@ packagekitd_exec = executable(
   ],
   install: true,
   install_dir: get_option('libexecdir'),
+  export_dynamic: true,
   c_args: [
 '-DPK_BUILD_DAEMON=1',
 '-DG_LOG_DOMAIN="PackageKit"',


commit PackageKit for openSUSE:Factory

2023-03-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2023-03-15 18:53:08

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.31432 (New)


Package is "PackageKit"

Wed Mar 15 18:53:08 2023 rev:233 rq:1071264 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2023-01-07 
17:16:28.924998959 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.31432/PackageKit.changes 
2023-03-15 18:53:13.155972189 +0100
@@ -1,0 +2,7 @@
+Mon Mar 13 02:46:44 UTC 2023 - Jonathan Kang 
+
+- Add PackageKit-fix-pkcon-permission.patch: trivial: Drop
+  unnecessary x permission
+  (gh#PackageKit/PackageKit/commit/47b7f97bc, bsc#1209138)
+
+---

New:

  PackageKit-fix-pkcon-permission.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.BO1Jbw/_old  2023-03-15 18:53:13.851975890 +0100
+++ /var/tmp/diff_new_pack.BO1Jbw/_new  2023-03-15 18:53:13.855975912 +0100
@@ -72,6 +72,8 @@
 Patch13:PackageKit-zypp-add-repo-in-packageid.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-fix-ambiguous-filesystem-reference.patch 
gh#PackageKit/PackageKit/commit/bb1409a71, bsc#1206687 sck...@suse.com -- zypp: 
Fix ambiguous reference to 'filesystem' class
 Patch14:PackageKit-zypp-fix-ambiguous-filesystem-reference.patch
+# PATCH-FIX-UPSTREAM PackageKit-fix-pkcon-permission.patch 
gh#PackageKit/PackageKit/commit/47b7f97bc, bsc#1209138 sck...@suse.com -- 
trivial: Drop unnecessary x permission
+Patch15:PackageKit-fix-pkcon-permission.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-fix-pkcon-permission.patch ++
>From 47b7f97bc9ef22b9c1c6c0a738ff49c876d8122a Mon Sep 17 00:00:00 2001
From: Matthias Klumpp 
Date: Thu, 17 Feb 2022 21:19:50 +0100
Subject: [PATCH] trivial: Drop unnecessary x permission

Lintian complained about it.
---
 contrib/pkcon | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 mode change 100755 => 100644 contrib/pkcon

diff --git a/contrib/pkcon b/contrib/pkcon
old mode 100755
new mode 100644
-- 
2.39.2


commit PackageKit for openSUSE:Factory

2023-01-07 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2023-01-07 17:16:06

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1563 (New)


Package is "PackageKit"

Sat Jan  7 17:16:06 2023 rev:232 rq:1056384 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-10-03 
13:44:34.365324449 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1563/PackageKit.changes  
2023-01-07 17:16:28.924998959 +0100
@@ -1,0 +2,7 @@
+Fri Jan  6 02:22:16 UTC 2023 - Jonathan Kang 
+
+- Add PackageKit-zypp-fix-ambiguous-filesystem-reference.patch:
+  zypp: Fix ambiguous reference to 'filesystem' class
+  (gh#PackageKit/PackageKit/commit/bb1409a71, bsc#1206687).
+
+---

New:

  PackageKit-zypp-fix-ambiguous-filesystem-reference.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.b9SUZ0/_old  2023-01-07 17:16:29.569002801 +0100
+++ /var/tmp/diff_new_pack.b9SUZ0/_new  2023-01-07 17:16:29.573002825 +0100
@@ -70,6 +70,8 @@
 Patch12:PackageKit-zypp-dont-remove-locked-packages.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-fix-package-id.patch 
gh#PackageKit/PackageKit/commit/8eb2ef0ae, bsc#1202585 sck...@suse.com -- zypp: 
add repository data in package id
 Patch13:PackageKit-zypp-add-repo-in-packageid.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-ambiguous-filesystem-reference.patch 
gh#PackageKit/PackageKit/commit/bb1409a71, bsc#1206687 sck...@suse.com -- zypp: 
Fix ambiguous reference to 'filesystem' class
+Patch14:PackageKit-zypp-fix-ambiguous-filesystem-reference.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-fix-ambiguous-filesystem-reference.patch ++
>From bb1409a71a4872f3f13ca565c98a8be0b2dc77eb Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Fri, 6 Jan 2023 09:41:42 +0800
Subject: [PATCH] zypp: Fix ambiguous reference to 'filesystem' class

https://bugzilla.suse.com/show_bug.cgi?id=1206687
---
 backends/zypp/pk-backend-zypp.cpp | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index bf9a7feca..67ea9abf7 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -611,7 +611,7 @@ ZyppJob::get_zypp()
/* TODO: we need to lifecycle manage this, detect changes
   in the requested 'root' etc. */
if (!initialized) {
-   filesystem::Pathname pathname("/");
+   zypp::filesystem::Pathname pathname("/");
zypp->initializeTarget (pathname);
 
initialized = TRUE;
@@ -1669,7 +1669,7 @@ zypp_refresh_cache (PkBackendJob *job, ZYpp::Ptr zypp, 
gboolean force)
 
if (zypp == NULL)
return  FALSE;
-   filesystem::Pathname pathname("/");
+   zypp::filesystem::Pathname pathname("/");
 
bool poolIsClean = sat::Pool::instance ().reposEmpty ();
// Erase and reload all if pool is too holey (densyity [100: good | 0 
bad])
@@ -1855,7 +1855,7 @@ pk_backend_destroy (PkBackend *backend)
 {
g_debug ("zypp_backend_destroy");
 
-   filesystem::recursive_rmdir (zypp::myTmpDir ());
+   zypp::filesystem::recursive_rmdir (zypp::myTmpDir ());
 
g_free (_repoName);
delete priv;
@@ -2538,7 +2538,7 @@ backend_install_files_thread (PkBackendJob *job, GVariant 
*params, gpointer user
}
 
// create a temporary directory
-   filesystem::TmpDir tmpDir;
+   zypp::filesystem::TmpDir tmpDir;
if (tmpDir == NULL) {
zypp_backend_finished_error (
job, PK_ERROR_ENUM_LOCAL_INSTALL_FAILED,
@@ -2561,7 +2561,7 @@ backend_install_files_thread (PkBackendJob *job, GVariant 
*params, gpointer user
 
// copy the rpm into tmpdir
string tempDest = tmpDir.path ().asString () + "/" + 
rpmHeader->tag_name () + ".rpm";
-   if (filesystem::copy (full_paths[i], tempDest) != 0) {
+   if (zypp::filesystem::copy (full_paths[i], tempDest) != 0) {
zypp_backend_finished_error (
job, PK_ERROR_ENUM_LOCAL_INSTALL_FAILED,
"Could not copy the rpm-file into the 
temp-dir");
@@ -3924,7 +3924,7 @@ backend_download_packages_thread (PkBackendJob *job, 
GVariant *params, gpointer
PoolItem item(solvable);
size += 2 * make(sol

commit PackageKit for openSUSE:Factory

2022-10-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-10-03 13:44:23

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2275 (New)


Package is "PackageKit"

Mon Oct  3 13:44:23 2022 rev:231 rq:1007202 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-09-03 
23:18:38.955748151 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2275/PackageKit.changes  
2022-10-03 13:44:34.365324449 +0200
@@ -1,0 +2,12 @@
+Mon Sep 26 03:12:44 UTC 2022 - Jonathan Kang 
+
+- Add PackageKit-zypp-dont-remove-locked-packages.patch: zypp:
+  Check if packages are locked before removing
+  (gh#PackageKit/PackageKit/commit/8649a07bc, bsc#1199895).
+- Add PackageKit-zypp-add-repo-in-packageid.patch: zypp: add
+  repository data in package id
+  (gh#PackageKit/PackageKit/commit/8eb2ef0ae, bsc#1202585).
+- Remove PackageKit-zypp-locked-packages.patch: reverted upstream
+  (gh#PackageKit/PackageKit/commit/ed3e38043).
+
+---

Old:

  PackageKit-zypp-locked-packages.patch

New:

  PackageKit-zypp-add-repo-in-packageid.patch
  PackageKit-zypp-dont-remove-locked-packages.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.Mignkr/_old  2022-10-03 13:44:35.521326992 +0200
+++ /var/tmp/diff_new_pack.Mignkr/_new  2022-10-03 13:44:35.525327001 +0200
@@ -52,22 +52,24 @@
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
 Patch4: PackageKit-fix-crash-pre-dbus.patch
-# PATCH-FIX-UPSTREAM PackageKit-zypp-locked-packages.patch 
gh#hughsie/PackageKit#543, boo#1199895 sck...@suse.com -- zypp: ignore locked 
packages
-Patch5: PackageKit-zypp-locked-packages.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-add-upgrade-system.patch 
gh#hughsie/PackageKit/commit/930dd201b sck...@suse.com -- zypp: implement 
upgrade-system method
-Patch6: PackageKit-zypp-add-upgrade-system.patch
+Patch5: PackageKit-zypp-add-upgrade-system.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-avoid-statuReset.patch 
gh#PackageKit/PackageKit/commit/dd1964255, bsc#1199895 sck...@suse.com -- zypp: 
Avoid statuReset() on locked packages
-Patch7: PackageKit-zypp-avoid-statuReset.patch
+Patch6: PackageKit-zypp-avoid-statuReset.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-disable-upgrade-system-in-sle.patch 
gh#PackageKit/PackageKit/commit/0fcd820c2 sck...@suse.com -- zypp: Disable 
upgrade-system support in SLE
-Patch8: PackageKit-zypp-disable-upgrade-system-in-sle.patch
+Patch7: PackageKit-zypp-disable-upgrade-system-in-sle.patch
 # PATCH-FIX-UPSTREAM 
PackageKit-zypp-restore-pool-status-after-simulating-update.patch 
gh#PackageKit/PackageKit/commit/2b61a6649, bsc#1199895 sck...@suse.com -- zypp: 
restore pool status after simulating an update
-Patch9: 
PackageKit-zypp-restore-pool-status-after-simulating-update.patch
+Patch8: 
PackageKit-zypp-restore-pool-status-after-simulating-update.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-fix-is-tumbleweed-check.patch 
gh#PackageKit/PackageKit/commit/146890153 sck...@suse.com -- zypp: build the 
pool before calling is_tumbleweed()
-Patch10:PackageKit-zypp-fix-is-tumbleweed-check.patch
+Patch9:PackageKit-zypp-fix-is-tumbleweed-check.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-update-libzypp-dependency-version.patch 
gh#PackageKit/PackageKit/commit/58c7c0285, bsc#1199895 sck...@suse.com -- zypp: 
update libzypp dependency version
-Patch11:PackageKit-zypp-update-libzypp-dependency-version.patch
+Patch10:PackageKit-zypp-update-libzypp-dependency-version.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-dont-refresh-before-searching.patch 
gh#PackageKit/PackageKit/commit/7e700e217, bsc#1202796 sck...@suse.com -- zypp: 
Don't refresh repos before searching
-Patch12:PackageKit-zypp-dont-refresh-before-searching.patch
+Patch11:PackageKit-zypp-dont-refresh-before-searching.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-dont-remove-locked-packages.patch 
gh#PackageKit/PackageKit/commit/8649a07bc, bsc#1199895 sck...@suse.com -- zypp: 
Check if packages are locked before removing
+Patch12:PackageKit-zypp-dont-remove-locked-packages.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-package-id.patch 
gh#PackageKit/PackageKit/commit/8eb2ef0ae, bsc#1202585 sck...@suse.com -- zypp: 
add repository data in package id
+Pat

commit PackageKit for openSUSE:Factory

2022-09-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-09-03 23:18:34

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2083 (New)


Package is "PackageKit"

Sat Sep  3 23:18:34 2022 rev:230 rq:1000811 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-08-10 
17:13:07.505680600 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2083/PackageKit.changes  
2022-09-03 23:18:38.955748151 +0200
@@ -1,0 +2,7 @@
+Fri Sep  2 01:16:56 UTC 2022 - Jonathan Kang 
+
+- Add PackageKit-zypp-dont-refresh-before-searching.patch:
+  zypp: Don't refresh repos before searching
+  (gh#PackageKit/PackageKit/commit/58c7c0285, bsc#1199895).
+
+---

New:

  PackageKit-zypp-dont-refresh-before-searching.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.2ORyXc/_old  2022-09-03 23:18:40.095751133 +0200
+++ /var/tmp/diff_new_pack.2ORyXc/_new  2022-09-03 23:18:40.103751154 +0200
@@ -66,6 +66,8 @@
 Patch10:PackageKit-zypp-fix-is-tumbleweed-check.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-update-libzypp-dependency-version.patch 
gh#PackageKit/PackageKit/commit/58c7c0285, bsc#1199895 sck...@suse.com -- zypp: 
update libzypp dependency version
 Patch11:PackageKit-zypp-update-libzypp-dependency-version.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-dont-refresh-before-searching.patch 
gh#PackageKit/PackageKit/commit/7e700e217, bsc#1202796 sck...@suse.com -- zypp: 
Don't refresh repos before searching
+Patch12:PackageKit-zypp-dont-refresh-before-searching.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-dont-refresh-before-searching.patch ++
>From 2ebbc222603f92769b60412c4592e3fb2d6c8d00 Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Thu, 1 Sep 2022 10:15:15 +0800
Subject: [PATCH] zypp: Don't refresh repos before searching

Refreshing repos should be done by calling "refresh-cache", not inside
backend_find_packages_thread.

This fixes the issue that GNOME Software calls multiple search-files
methods which takes very long time to finish. As most of the time was
spent refreshing repos multiple times.

https://bugzilla.suse.com/show_bug.cgi?id=1202796
---
 backends/zypp/pk-backend-zypp.cpp | 5 -
 1 file changed, 5 deletions(-)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index 62adbb8be..c87972079 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -3109,11 +3109,6 @@ backend_find_packages_thread (PkBackendJob *job, 
GVariant *params, gpointer user
return;
}
 
-   // refresh the repos before searching
-   if (!zypp_refresh_cache (job, zypp, FALSE)) {
-   return;
-   }
-
search = values[0];  //Fixme - support the possible multiple values 
(logical OR search)
role = pk_backend_job_get_role(job);
 
-- 
2.37.1


commit PackageKit for openSUSE:Factory

2022-08-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-08-10 17:12:50

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1521 (New)


Package is "PackageKit"

Wed Aug 10 17:12:50 2022 rev:229 rq:993936 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-07-26 
19:42:54.965789395 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1521/PackageKit.changes  
2022-08-10 17:13:07.505680600 +0200
@@ -1,0 +2,21 @@
+Wed Aug  3 03:27:36 UTC 2022 - Jonathan Kang 
+
+- Modified PackageKit.spec: bump libzypp dependency version to
+  17.31.0.
+- Add PackageKit-zypp-avoid-statuReset.patch: zypp: Avoid
+  statuReset() on locked packages
+  (gh#PackageKit/PackageKit/commit/dd1964255, bsc#1199895).
+- Add PackageKit-zypp-disable-upgrade-system-in-sle.patch: zypp:
+  Disable upgrade-system support in SLE
+  (gh#PackageKit/PackageKit/commit/0fcd820c2).
+- Add PackageKit-zypp-restore-pool-status-after-simulating-update.patch:
+  zypp: restore pool status after simulating an update
+  (gh#PackageKit/PackageKit/commit/2b61a6649, bsc#1199895).
+- Add PackageKit-zypp-fix-is-tumbleweed-check.patch: zypp: build
+  the pool before calling is_tumbleweed()
+  (gh#PackageKit/PackageKit/commit/146890153).
+- Add PackageKit-zypp-update-libzypp-dependency-version.patch:
+  zypp: update libzypp dependency version
+  (gh#PackageKit/PackageKit/commit/58c7c0285, bsc#1199895).
+
+---

New:

  PackageKit-zypp-avoid-statuReset.patch
  PackageKit-zypp-disable-upgrade-system-in-sle.patch
  PackageKit-zypp-fix-is-tumbleweed-check.patch
  PackageKit-zypp-restore-pool-status-after-simulating-update.patch
  PackageKit-zypp-update-libzypp-dependency-version.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.7XlVX0/_old  2022-08-10 17:13:08.177682354 +0200
+++ /var/tmp/diff_new_pack.7XlVX0/_new  2022-08-10 17:13:08.181682364 +0200
@@ -56,6 +56,16 @@
 Patch5: PackageKit-zypp-locked-packages.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-add-upgrade-system.patch 
gh#hughsie/PackageKit/commit/930dd201b sck...@suse.com -- zypp: implement 
upgrade-system method
 Patch6: PackageKit-zypp-add-upgrade-system.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-avoid-statuReset.patch 
gh#PackageKit/PackageKit/commit/dd1964255, bsc#1199895 sck...@suse.com -- zypp: 
Avoid statuReset() on locked packages
+Patch7: PackageKit-zypp-avoid-statuReset.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-disable-upgrade-system-in-sle.patch 
gh#PackageKit/PackageKit/commit/0fcd820c2 sck...@suse.com -- zypp: Disable 
upgrade-system support in SLE
+Patch8: PackageKit-zypp-disable-upgrade-system-in-sle.patch
+# PATCH-FIX-UPSTREAM 
PackageKit-zypp-restore-pool-status-after-simulating-update.patch 
gh#PackageKit/PackageKit/commit/2b61a6649, bsc#1199895 sck...@suse.com -- zypp: 
restore pool status after simulating an update
+Patch9: 
PackageKit-zypp-restore-pool-status-after-simulating-update.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-is-tumbleweed-check.patch 
gh#PackageKit/PackageKit/commit/146890153 sck...@suse.com -- zypp: build the 
pool before calling is_tumbleweed()
+Patch10:PackageKit-zypp-fix-is-tumbleweed-check.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-update-libzypp-dependency-version.patch 
gh#PackageKit/PackageKit/commit/58c7c0285, bsc#1199895 sck...@suse.com -- zypp: 
update libzypp dependency version
+Patch11:PackageKit-zypp-update-libzypp-dependency-version.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -73,7 +83,6 @@
 %endif
 BuildRequires:  libgudev-1_0-devel
 BuildRequires:  libtool
-BuildRequires:  libzypp-devel
 BuildRequires:  meson >= 0.50
 BuildRequires:  mozilla-nspr-devel >= 4.8
 BuildRequires:  ninja
@@ -111,7 +120,9 @@
 Summary:Zypp backend for the PackageKit installation management 
software
 License:GPL-2.0-or-later
 Group:  System/Daemons
+BuildRequires:  libzypp-devel >= 17.31.0
 Requires:   %{name} = %{version}
+Requires:   libzypp >= 17.31.0
 Provides:   %{name}-backend = %{version}
 Conflicts:  %{name}-backend
 Supplements:(%{name} and libzypp)


++ PackageKit-zypp-avoid-statuReset.patch ++
>From e9f61bd37d7269aec15c15a98d2353c809ee0f86 Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Fri, 22 Jul 2022 15:11:15 +0800
Subject: [PATCH] zypp: Avoid statuReset() on locked packages

https://bugzilla.suse.com/show_bug.cgi?id=1199895
---
 backends/zypp/pk-backend-zypp.cpp | 12 ++--
 1 file changed, 6 inser

commit PackageKit for openSUSE:Factory

2022-07-26 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-07-26 19:42:43

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1533 (New)


Package is "PackageKit"

Tue Jul 26 19:42:43 2022 rev:228 rq:990416 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-07-04 
11:32:28.875985090 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1533/PackageKit.changes  
2022-07-26 19:42:54.965789395 +0200
@@ -1,0 +2,5 @@
+Sat Jul  9 12:35:42 UTC 2022 - Callum Farmer 
+
+- Move the dbus-1 system.d file to /usr (bsc#1201347)
+
+---



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.qD9AVn/_old  2022-07-26 19:42:55.721672592 +0200
+++ /var/tmp/diff_new_pack.qD9AVn/_new  2022-07-26 19:42:55.729671356 +0200
@@ -281,7 +281,8 @@
 %{!?with_cnf:-Dbash_command_not_found=false} \
 %{!?with_offline_updates:-Doffline_update=false} \
 -Dcron=false \
--Dlocal_checkout=false
+-Dlocal_checkout=false \
+-Ddbus_sys=%{_datadir}/dbus-1/system.d
 %meson_build
 
 %install
@@ -376,7 +377,7 @@
 %dir %{_libdir}/packagekit-backend
 %dir %{_usr}/lib/tmpfiles.d
 %{_datadir}/bash-completion/completions/pkcon
-%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
+%{_datadir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
 %{_bindir}/pkcon
 %{_bindir}/pkmon
 %{_libdir}/packagekit-backend/libpk_backend_dummy.so


commit PackageKit for openSUSE:Factory

2022-07-04 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-07-04 11:32:26

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1548 (New)


Package is "PackageKit"

Mon Jul  4 11:32:26 2022 rev:227 rq:986278 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-06-01 
17:33:53.866686620 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1548/PackageKit.changes  
2022-07-04 11:32:28.875985090 +0200
@@ -1,0 +2,6 @@
+Fri Jul  1 03:34:35 UTC 2022 - Jonathan Kang 
+
+- Add PackageKit-zypp-add-upgrade-system.patch: implement
+  upgrade-system method(gh#hughsie/PackageKit/commit/930dd201b).
+
+---

New:

  PackageKit-zypp-add-upgrade-system.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.gZ2iHi/_old  2022-07-04 11:32:29.631986307 +0200
+++ /var/tmp/diff_new_pack.gZ2iHi/_new  2022-07-04 11:32:29.635986313 +0200
@@ -54,6 +54,8 @@
 Patch4: PackageKit-fix-crash-pre-dbus.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-locked-packages.patch 
gh#hughsie/PackageKit#543, boo#1199895 sck...@suse.com -- zypp: ignore locked 
packages
 Patch5: PackageKit-zypp-locked-packages.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-add-upgrade-system.patch 
gh#hughsie/PackageKit/commit/930dd201b sck...@suse.com -- zypp: implement 
upgrade-system method
+Patch6: PackageKit-zypp-add-upgrade-system.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-add-upgrade-system.patch ++
>From 74da50015b14f3465042aa7280a8e7721a825540 Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Wed, 4 Aug 2021 14:32:22 +0800
Subject: [PATCH] zypp: implement upgrade-system method

---
 backends/zypp/pk-backend-zypp.cpp | 49 +++
 1 file changed, 49 insertions(+)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index 6da70348b..49251297d 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -3528,6 +3528,55 @@ pk_backend_update_packages (PkBackend *backend, 
PkBackendJob *job, PkBitfield tr
pk_backend_job_thread_create (job, backend_update_packages_thread, 
NULL, NULL);
 }
 
+static void
+pk_backend_upgrade_system_thread (PkBackendJob *job,
+ GVariant *params,
+ gpointer user_data)
+{
+   const gchar *release_ver = NULL;
+   PkBitfield transaction_flags = 0;
+
+   g_variant_get (params, "(t&su)",
+  &transaction_flags,
+  &release_ver, NULL);
+
+   ZyppJob zjob(job);
+   ZYpp::Ptr zypp = zjob.get_zypp ();
+   if (zypp == NULL) {
+   return;
+   }
+
+   if (is_tumbleweed ()) {
+   pk_backend_job_error_code (job, PK_ERROR_ENUM_NOT_SUPPORTED,
+  "upgrade-system is not supported in 
Tumbleweed, use \"pkcon update\" instead.");
+   return;
+   }
+
+   ResPool pool = zypp_build_pool (zypp, TRUE);
+   PkRestartEnum restart = PK_RESTART_ENUM_NONE;
+   PoolStatusSaver saver;
+
+   /* Set environment variable ZYPP_REPO_RELEASEVER to target version. */
+   g_setenv ("ZYPP_REPO_RELEASEVER", release_ver, TRUE);
+
+   upgrade_system (job, zypp, transaction_flags);
+
+   g_unsetenv ("ZYPP_REPO_RELEASEVER");
+}
+
+/**
+  * pk_backend_upgrade_system
+  */
+void
+pk_backend_upgrade_system (PkBackend *backend,
+  PkBackendJob *job,
+  PkBitfield transaction_flags,
+  const gchar *distro_id,
+  PkUpgradeKindEnum upgrade_kind)
+{
+   pk_backend_job_thread_create (job, pk_backend_upgrade_system_thread, 
NULL, NULL);
+}
+
 static void
 backend_repo_set_data_thread (PkBackendJob *job, GVariant *params, gpointer 
user_data)
 {
-- 
2.31.1


commit PackageKit for openSUSE:Factory

2022-06-01 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-06-01 17:33:48

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1548 (New)


Package is "PackageKit"

Wed Jun  1 17:33:48 2022 rev:226 rq:980018 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2022-05-24 
20:31:00.630900324 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1548/PackageKit.changes  
2022-06-01 17:33:53.866686620 +0200
@@ -1,0 +2,6 @@
+Thu May 26 07:25:04 UTC 2022 - Jonathan Kang 
+
+- Add PackageKit-zypp-locked-packages.patch: zypp: ignore locked
+  packages(gh#hughsie/PackageKit#543, boo#1199895).
+
+---

New:

  PackageKit-zypp-locked-packages.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.wAUf3v/_old  2022-06-01 17:33:54.630687522 +0200
+++ /var/tmp/diff_new_pack.wAUf3v/_new  2022-06-01 17:33:54.634687527 +0200
@@ -51,7 +51,9 @@
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
-Patch5: PackageKit-fix-crash-pre-dbus.patch
+Patch4: PackageKit-fix-crash-pre-dbus.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-locked-packages.patch 
gh#hughsie/PackageKit#543, boo#1199895 sck...@suse.com -- zypp: ignore locked 
packages
+Patch5: PackageKit-zypp-locked-packages.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-locked-packages.patch ++
Index: PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp
===
--- PackageKit-1.2.5.orig/backends/zypp/pk-backend-zypp.cpp
+++ PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp
@@ -1239,13 +1239,19 @@ zypp_get_package_updates (string repo, s
resolver->doUpdate ();
}
 
-   for (; it != e; ++it)
-   if (it->status().isToBeInstalled()) {
+   for (; it != e; ++it) {
+if (it->status().isLocked()) {
+// We pretend locked packages are not upgradable at all since
+// we can't represent the concept of holds in PackageKit.
+// https://github.com/PackageKit/PackageKit/issues/325
+continue;
+} else if (it->status().isToBeInstalled()) {
ui::Selectable::constPtr s =
ui::Selectable::get((*it)->kind(), 
(*it)->name());
if (s->hasInstalledObj())
pks.insert(*it);
}
+}
 
if (is_tumbleweed ()) {
resolver->setUpgradeMode (FALSE);


commit PackageKit for openSUSE:Factory

2022-05-24 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-05-24 20:30:50

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2254 (New)


Package is "PackageKit"

Tue May 24 20:30:50 2022 rev:225 rq:978663 version:1.2.5

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-11-18 
10:33:25.291884395 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2254/PackageKit.changes  
2022-05-24 20:31:00.630900324 +0200
@@ -1,0 +2,29 @@
+Fri May 20 09:01:45 UTC 2022 - Dominique Leuenberger 
+
+- Update to version 1.2.5:
+  + Backends:
+- dnf:
+  . Add support for autoremove flag when removing packages.
+  . Searches by name and package details should be case
+insensitive.
+  . Update appstream xml files if dnf_sack_add_repos() does
+the download.
+- zypp:
+  . Add -std=c++1z cpp flags.
+  . Fix crash when search string is NULL.
+  . Fix package installation using undefined data.
+- Changes to alpm, apttcc, nix, and slack.
+  + Bugfixes:
+- Install offline-update enablement symlink if Meson is new
+  enough.
+- Move Wants= line for network-online.target.
+- Add flags to D-Bus offline invoking methods.
+- Properly handle allow-reinstall flag for installations.
+- Provide better error message if trying to install an
+  installed package.
+- Wait until online to activate systemd service.
+- Drop 505.patch, PackageKit-zypp-c++17.patch, and
+  PackageKit-zypp-fix-crash-with-empty-search-string.patch: fixed
+  upstream.
+
+---

Old:

  505.patch
  PackageKit-1.2.4.tar.xz
  PackageKit-1.2.4.tar.xz.asc
  PackageKit-zypp-c++17.patch
  PackageKit-zypp-fix-crash-with-empty-search-string.patch

New:

  PackageKit-1.2.5.tar.xz
  PackageKit-1.2.5.tar.xz.asc



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.GwRTdd/_old  2022-05-24 20:31:01.486901087 +0200
+++ /var/tmp/diff_new_pack.GwRTdd/_new  2022-05-24 20:31:01.494901095 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package PackageKit
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,7 +32,7 @@
 %endif
 
 Name:   PackageKit
-Version:1.2.4
+Version:1.2.5
 Release:0
 Summary:Simple software installation management software
 License:GPL-2.0-or-later
@@ -50,14 +50,8 @@
 Patch2: PackageKit-remove-polkit-rules.patch
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
-# PATCH-FIX-UPSTREAM 505.patch -- pk-offline: Add flags to D-Bus invoking 
methods
-Patch4: 
https://patch-diff.githubusercontent.com/raw/PackageKit/PackageKit/pull/505.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
 Patch5: PackageKit-fix-crash-pre-dbus.patch
-# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-crash-with-empty-search-string.patch 
gh#hughsie/PackageKit/commit#21ccf49, bsc#1179287 sck...@suse.com -- zypp: Fix 
crash when search string is NULL
-Patch6: PackageKit-zypp-fix-crash-with-empty-search-string.patch
-# PATCH-FIX-SLE PackageKit-zypp-c++17.patch 
gh#hughsie/PackageKit/commit/1a6bb6ae6, bsc#1192349 sck...@suse.com -- Fix 
build failure when building with libzypp > 17.28.5 and gcc < 11.
-Patch1000:  PackageKit-zypp-c++17.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++

++ PackageKit-1.2.4.tar.xz -> PackageKit-1.2.5.tar.xz ++
 8260 lines of diff (skipped)


commit PackageKit for openSUSE:Factory

2021-11-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-11-18 10:33:07

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1895 (New)


Package is "PackageKit"

Thu Nov 18 10:33:07 2021 rev:224 rq:931779 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-11-15 
00:06:24.647605266 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1895/PackageKit.changes  
2021-11-18 10:33:25.291884395 +0100
@@ -1,0 +2,15 @@
+Tue Nov 16 14:24:11 UTC 2021 - Dominique Leuenberger 
+
+- Apply all patches unconditonally: PackageKit-zypp-c++17.patch is
+  merged in upstream git and thus does not justify to be
+  conditionally applied.
+- Switching back to autosetup, as this works without conditional
+  patches.
+
+---
+Tue Nov 16 08:00:29 UTC 2021 - Dominique Leuenberger 
+
+- Rewrite prep phase to not use autopatch -M: SLE15/Leap15's RPM
+  version does not support that syntax yet.
+
+---



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.zlb1Ri/_old  2021-11-18 10:33:25.871884934 +0100
+++ /var/tmp/diff_new_pack.zlb1Ri/_new  2021-11-18 10:33:25.871884934 +0100
@@ -272,11 +272,7 @@
 %lang_package
 
 %prep
-%autosetup -N
-%autopatch -p1 -M 1000
-%if 0%{?sle_version} > 150300 && 0%{?sle_version} < 16
-%patch1000 -p1
-%endif
+%autosetup -p1
 
 %build
 %meson \


commit PackageKit for openSUSE:Factory

2021-11-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-11-15 00:06:17

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1890 (New)


Package is "PackageKit"

Mon Nov 15 00:06:17 2021 rev:223 rq:930858 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-11-06 
18:18:33.992901185 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1890/PackageKit.changes  
2021-11-15 00:06:24.647605266 +0100
@@ -1,0 +2,7 @@
+Fri Nov  5 12:07:00 UTC 2021 - Jonathan Kang 
+
+- Add PackageKit-zypp-c++17.patch: Fix build failure when building
+  with libzypp > 17.28.5 and gcc < 11
+  (gh#hughsie/PackageKit/commit/1a6bb6ae6, bsc#1192349).
+
+---
@@ -358 +365 @@
---
+---

New:

  PackageKit-zypp-c++17.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.ElSNE3/_old  2021-11-15 00:06:25.679606107 +0100
+++ /var/tmp/diff_new_pack.ElSNE3/_new  2021-11-15 00:06:25.683606110 +0100
@@ -55,7 +55,9 @@
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
 Patch5: PackageKit-fix-crash-pre-dbus.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-fix-crash-with-empty-search-string.patch 
gh#hughsie/PackageKit/commit#21ccf49, bsc#1179287 sck...@suse.com -- zypp: Fix 
crash when search string is NULL
-Patch12:PackageKit-zypp-fix-crash-with-empty-search-string.patch
+Patch6: PackageKit-zypp-fix-crash-with-empty-search-string.patch
+# PATCH-FIX-SLE PackageKit-zypp-c++17.patch 
gh#hughsie/PackageKit/commit/1a6bb6ae6, bsc#1192349 sck...@suse.com -- Fix 
build failure when building with libzypp > 17.28.5 and gcc < 11.
+Patch1000:  PackageKit-zypp-c++17.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -270,7 +272,11 @@
 %lang_package
 
 %prep
-%autosetup -p1
+%autosetup -N
+%autopatch -p1 -M 1000
+%if 0%{?sle_version} > 150300 && 0%{?sle_version} < 16
+%patch1000 -p1
+%endif
 
 %build
 %meson \


++ PackageKit-zypp-c++17.patch ++
Index: PackageKit-1.2.2/backends/zypp/meson.build
===
--- PackageKit-1.2.2.orig/backends/zypp/meson.build
+++ PackageKit-1.2.2/backends/zypp/meson.build
@@ -22,7 +22,8 @@ shared_module(
 '-DG_LOG_DOMAIN="PackageKit-Zypp"',
 '-Wall',
 '-Woverloaded-virtual',
-'-Wnon-virtual-dtor'
+'-Wnon-virtual-dtor',
+'-std=c++1z'
   ],
   c_args: [
 '-Wno-deprecated',


commit PackageKit for openSUSE:Factory

2021-11-06 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-11-06 18:15:53

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1890 (New)


Package is "PackageKit"

Sat Nov  6 18:15:53 2021 rev:222 rq:929706 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-08-25 
20:56:59.825256592 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1890/PackageKit.changes  
2021-11-06 18:18:33.992901185 +0100
@@ -1,0 +2,63 @@
+Fri Nov  5 11:16:00 UTC 2021 - Bj??rn Lie 
+
+- Update to version 1.2.4:
+  + Libraries:
+- Add specific error code when user declined interaction
+- Avoid spurious GObject::notify signal emissions
+- Correct 'cancellable' use in pk_client_repair_system_async()
+- Fix a leak on calling set_locale() a second time
+- Fix a possible use-after-free under pk_client_cancel_cb()
+- Improve thread safety on an operation cancellation
+  + Backends:
+- dnf:
+  . Read update information also when getting list of updates
+  . Honor install_weak_deps=False if it is there
+  . Use 'hy_query_get_advisory_pkgs', if available
+  + New Features:
+- PkDetails: Add 'download-size' property
+- PkPackage: Add update severity property
+  + Bugfixes:
+- Let the finish understand the 'cancelled' exit code
+- Make backends that use pk-backend-spawn work (#477)
+- Only set polkit interactive flag if method call has too
+- Changes from version 1.2.3:
+  + Backends:
+- alpm:
+  . Add post transaction hook
+  . Rename errno to alpm_err to avoid name clashes
+- aptcc: Auto-remove old kernels, unless configured otherwise
+- dnf: Add support for coercing upgrade to distupgrade
+- zypp:
+  . Make sure pool is initialized at the beginning of some
+methods
+  . Reset update mode after getting updates
+  + Bugfixes:
+- Append to cron log instead of overwriting it
+- Cancel a transaction if calling Cancel fails or the daemon
+  disappears
+- Do not crash when calling pk_dbus_get_uid() before D-Bus is
+  setup
+- Fix all compiler warnings
+- Fix multilib conflicts in generated pk-enum-types.h
+- Free scheduler array correctly again
+- Remove large transaction size sanity check
+- Drop patches fixed upstream:
+  + PackageKit-zypp-cleanup-tmp-files.patch
+  + PackageKit-zypp-reset-update-mode-after-get-updates.patch
+  + PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
+  + PackageKit-zypp-initialize-pool.patch
+  + PackageKit-remove-transaction-size-limit.patch
+  + PackageKit-cancel-transaction-if-daemon-disappears.patch
+  + PackageKit-dnf-ignore-weak-deps.patch
+- Add 505.patch: pk-offline: Add flags to D-Bus invoking methods.
+  That's currently to be able to set whether the method should be
+  interactive or not. The old functions call the methods as
+  non-interactive.
+
+---
+Thu Sep 16 01:19:18 UTC 2021 - Stanislav Brabec 
+
+- Remove obsolete translation-update-upstream support
+  (jsc#SLE-21105).
+
+---

Old:

  PackageKit-1.2.2.tar.xz
  PackageKit-1.2.2.tar.xz.asc
  PackageKit-cancel-transaction-if-daemon-disappears.patch
  PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
  PackageKit-dnf-ignore-weak-deps.patch
  PackageKit-remove-transaction-size-limit.patch
  PackageKit-zypp-cleanup-tmp-files.patch
  PackageKit-zypp-initialize-pool.patch
  PackageKit-zypp-reset-update-mode-after-get-updates.patch

New:

  505.patch
  PackageKit-1.2.4.tar.xz
  PackageKit-1.2.4.tar.xz.asc



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.FVrtG5/_old  2021-11-06 18:18:34.724901564 +0100
+++ /var/tmp/diff_new_pack.FVrtG5/_new  2021-11-06 18:18:34.724901564 +0100
@@ -32,7 +32,7 @@
 %endif
 
 Name:   PackageKit
-Version:1.2.2
+Version:1.2.4
 Release:0
 Summary:Simple software installation management software
 License:GPL-2.0-or-later
@@ -50,22 +50,10 @@
 Patch2: PackageKit-remove-polkit-rules.patch
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
-# PATCH-FIX-UPSTREAM PackageKit-zypp-cleanup-tmp-files.patch bsc#1169739 
gh#hughsie/PackageKit/commit#cf73b01a sck...@suse.com -- Revert "Revert "zypp: 
Cl

commit PackageKit for openSUSE:Factory

2021-08-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-08-25 20:56:26

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1899 (New)


Package is "PackageKit"

Wed Aug 25 20:56:26 2021 rev:221 rq:913703 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-07-30 
23:22:38.247606037 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1899/PackageKit.changes  
2021-08-25 20:56:59.825256592 +0200
@@ -1,0 +2,7 @@
+Fri Aug 20 01:31:50 UTC 2021 - Jonathan Kang 
+
+- Add PackageKit-zypp-fix-crash-with-empty-search-string.patch:
+  zypp: Fix crash when search string is NULL (bsc#1179287,
+  gh#hughsie/PackageKit/commit#21ccf49).
+
+---

New:

  PackageKit-zypp-fix-crash-with-empty-search-string.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.vr1IJb/_old  2021-08-25 20:57:00.61723 +0200
+++ /var/tmp/diff_new_pack.vr1IJb/_new  2021-08-25 20:57:00.621255547 +0200
@@ -66,6 +66,8 @@
 Patch10:PackageKit-cancel-transaction-if-daemon-disappears.patch
 # PATCH-FIX-UPSTREAM PackageKit-dnf-ignore-weak-deps.patch 
gh#dfaggioli/PackageKit#486 gh#Conan-Kudo/PackageKit#488 
gh#Conan-Kudo/PackageKit/commit/#ecd4a96  -- dnf-backend: honor 
install_weak_deps=False if it is there
 Patch11:PackageKit-dnf-ignore-weak-deps.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-crash-with-empty-search-string.patch 
gh#hughsie/PackageKit/commit#21ccf49, bsc#1179287 sck...@suse.com -- zypp: Fix 
crash when search string is NULL
+Patch12:PackageKit-zypp-fix-crash-with-empty-search-string.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-fix-crash-with-empty-search-string.patch ++
>From 21ccf49464630cb9da7792d375f472c53717eecb Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Thu, 12 Aug 2021 14:39:26 +0800
Subject: [PATCH] zypp: Fix crash when search string is NULL

https://bugzilla.suse.com/show_bug.cgi?id=1179287
---
 backends/zypp/pk-backend-zypp.cpp | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index 6da70348b..fca8ac032 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -3088,6 +3088,12 @@ backend_find_packages_thread (PkBackendJob *job, 
GVariant *params, gpointer user
&_filters,
&values);
 
+   if (values == NULL && values[0] == NULL) {
+   pk_backend_job_error_code (job, 
PK_ERROR_ENUM_PACKAGE_ID_INVALID,
+  "Empty search string is not 
supported.");
+   return;
+   }
+
ZyppJob zjob(job);
ZYpp::Ptr zypp = zjob.get_zypp();

-- 
2.31.1


commit PackageKit for openSUSE:Factory

2021-07-30 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-07-30 23:22:11

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1899 (New)


Package is "PackageKit"

Fri Jul 30 23:22:11 2021 rev:220 rq:909319 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-07-29 
21:31:54.480775201 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1899/PackageKit.changes  
2021-07-30 23:22:38.247606037 +0200
@@ -1,0 +2,6 @@
+Thu Jul 29 12:47:53 UTC 2021 - Yifan Jiang 
+
+- Drop upstream merged patches on SLE and Leap 15.4:
+  + PackageKit-CVE-2020-16121.patch
+
+---
@@ -67,0 +74,7 @@
+Fri Dec  4 02:03:42 UTC 2020 - Jonathan Kang 
+
+- Add PackageKit-CVE-2020-16121.patch: Information disclosure in
+  InstallFiles, GetFilesLocal and GetDetailsLocal
+  (gh#hughsie/PackageKit/commit/d5e8c597, bsc#1176930).
+
+---
@@ -99,8 +111,0 @@
-  + PackageKit-CVE-2020-16121.patch
-

-Fri Nov  1 02:03:42 UTC 2020 - Jonathan Kang 
-
-- Add PackageKit-CVE-2020-16121.patch: Information disclosure in
-  InstallFiles, GetFilesLocal and GetDetailsLocal
-  (gh#hughsie/PackageKit/commit/d5e8c597, bsc#1176930).



Other differences:
--


commit PackageKit for openSUSE:Factory

2021-07-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-07-29 21:31:15

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.1899 (New)


Package is "PackageKit"

Thu Jul 29 21:31:15 2021 rev:219 rq:909087 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-04-14 
10:09:31.805346889 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1899/PackageKit.changes  
2021-07-29 21:31:54.480775201 +0200
@@ -1,0 +2,9 @@
+Thu Jun 10 17:36:23 UTC 2021 - Dario Faggioli 
+
+- Add PackageKit-dnf-ignore-weak-deps.patch
+  Backport upstream patch (gh#Conan-Kudo/PackageKit/commit#ecd4a96,
+  gh#Conan-Kudo/PackageKit#488) for fixing: dnf backend not honoring
+  "install_weak_deps=False" (gh#dfaggioli/Packagekit#486). See also
+  https://bugzilla.redhat.com/show_bug.cgi?id=1955484
+
+---
@@ -89,0 +99,8 @@
+  + PackageKit-CVE-2020-16121.patch
+
+---
+Fri Nov  1 02:03:42 UTC 2020 - Jonathan Kang 
+
+- Add PackageKit-CVE-2020-16121.patch: Information disclosure in
+  InstallFiles, GetFilesLocal and GetDetailsLocal
+  (gh#hughsie/PackageKit/commit/d5e8c597, bsc#1176930).

New:

  PackageKit-dnf-ignore-weak-deps.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.lKBUYH/_old  2021-07-29 21:31:55.704773694 +0200
+++ /var/tmp/diff_new_pack.lKBUYH/_new  2021-07-29 21:31:55.708773689 +0200
@@ -64,6 +64,8 @@
 Patch9: PackageKit-remove-transaction-size-limit.patch
 # PATCH-FIX-UPSTREAM PackageKit-cancel-transaction-if-daemon-disappears.patch 
gh#hughsie/PackageKit#464 sck...@suse.com -- Fix hangs in packagekit-glib2 
client if daemon crashes
 Patch10:PackageKit-cancel-transaction-if-daemon-disappears.patch
+# PATCH-FIX-UPSTREAM PackageKit-dnf-ignore-weak-deps.patch 
gh#dfaggioli/PackageKit#486 gh#Conan-Kudo/PackageKit#488 
gh#Conan-Kudo/PackageKit/commit/#ecd4a96  -- dnf-backend: honor 
install_weak_deps=False if it is there
+Patch11:PackageKit-dnf-ignore-weak-deps.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-dnf-ignore-weak-deps.patch ++
>From ecd4a969939855350930511516ae20584bda7fa7 Fri Jun 11 18:53:18 2021 +0200
From: Dario Faggioli 
Date: Fri, Jun 11 18:53:18 2021 +0200

dnf-backend: honor install_weak_deps=False if it is there

Currently, even if we have "install_weak_deps=False" in
/etc/dnf/dnf.conf, `pkcon install` still tries to install all
the recommended packages.

For avoiding that, we need to inform libdnf that we will
solve the goal of the transaction ourselves (by means of the
dnf_transaction_set_dont_solve_goal() API) and then explicitly
set the flag for ignoring the weak dependencies.

This fixes issue #486 and also solve
https://bugzilla.redhat.com/show_bug.cgi?id=1955484

diff -Nru PackageKit-1.2.2_patch/backends/dnf/pk-backend-dnf.c 
PackageKit-1.2.2_patch2/backends/dnf/pk-backend-dnf.c
--- PackageKit-1.2.2_patch/backends/dnf/pk-backend-dnf.c2021-06-10 
17:55:04.016246418 +0200
+++ PackageKit-1.2.2_patch2/backends/dnf/pk-backend-dnf.c   2021-06-12 
23:39:35.829973392 +0200
@@ -932,6 +932,7 @@
gboolean ret;
DnfDb *db;
DnfState *state_local;
+   DnfGoalActions flags;
GPtrArray *installs = NULL;
GPtrArray *pkglist = NULL;
HyQuery query = NULL;
@@ -1028,7 +1029,10 @@
} else {
hy_goal_upgrade_all (job_data->goal);
}
-   ret = dnf_goal_depsolve (job_data->goal, DNF_ALLOW_UNINSTALL, 
&error);
+   flags = DNF_ALLOW_UNINSTALL;
+   if (!dnf_context_get_install_weak_deps())
+   flags |= DNF_IGNORE_WEAK_DEPS;
+   ret = dnf_goal_depsolve (job_data->goal, flags, &error);
if (!ret) {
pk_backend_job_error_code (job, error->code, "%s", 
error->message);
goto out;
@@ -2541,6 +2545,7 @@
GError **error)
 {
DnfState *state_local;
+   DnfGoalActions dnf_flags = DNF_ALLOW_UNINSTALL;
PkBackendDnfJobData *job_data = pk_backend_job_get_user_data (job);
gboolean ret = TRUE;
/* allow downgrades for all transaction types */
@@ -2569,6 +2574,15 @@
dnf_transaction_set_flags (job_data->transaction, flags);
 
state_local = dnf_state_get_child (state);
+
+   /* we solve the goal ourselves, so we can deal with flags */
+   dnf_transaction_set_dont_solve_goal(job_data->tra

commit PackageKit for openSUSE:Factory

2021-04-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-04-14 10:09:27

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2401 (New)


Package is "PackageKit"

Wed Apr 14 10:09:27 2021 rev:218 rq:884643 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-03-24 
16:09:42.991735268 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2401/PackageKit.changes  
2021-04-14 10:09:31.805346889 +0200
@@ -1,0 +2,7 @@
+Fri Mar 26 01:41:35 UTC 2021 - Jonathan Kang 
+
+- Add PackageKit-cancel-transaction-if-daemon-disappears.patch:
+  Fix hangs in packagekit-glib2 client if daemon crashes
+  (gh#hughsie/PackageKit#464).
+
+---

New:

  PackageKit-cancel-transaction-if-daemon-disappears.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.BhCkZJ/_old  2021-04-14 10:09:32.437347956 +0200
+++ /var/tmp/diff_new_pack.BhCkZJ/_new  2021-04-14 10:09:32.441347963 +0200
@@ -62,6 +62,8 @@
 Patch8: PackageKit-zypp-initialize-pool.patch
 # PATCH-FIX-UPSTREAM PackageKit-remove-transaction-size-limit.patch 
gh#hughsie/PackageKit/commit#ff01813 gh#hughsie/PackageKit/commit#ff01813 -- 
Fix a "too many packages to process" error against full rebuilds
 Patch9: PackageKit-remove-transaction-size-limit.patch
+# PATCH-FIX-UPSTREAM PackageKit-cancel-transaction-if-daemon-disappears.patch 
gh#hughsie/PackageKit#464 sck...@suse.com -- Fix hangs in packagekit-glib2 
client if daemon crashes
+Patch10:PackageKit-cancel-transaction-if-daemon-disappears.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-cancel-transaction-if-daemon-disappears.patch ++
>From b2452c2d0023aad6be0751f9785e20f34bed6887 Mon Sep 17 00:00:00 2001
From: Philip Withnall 
Date: Fri, 19 Mar 2021 22:43:16 +
Subject: [PATCH 1/2] packagekit-glib2: Cancel a transaction if the daemon
 disappears
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Most of the time, when using a `GDBusProxy`, and the service you???re
talking to disappears, you???ll get notified ??? the async D-Bus call you???re
making will return an error. However, due to PackageKit???s design for
handling long-running operations, there are long periods between a
transaction being created, and emitting its `Finished` signal, when no
D-Bus calls are pending.

If the daemon crashes during one of these periods, there is currently no
way for the packagekit-glib2 client code to notice until it tries to
make another D-Bus call on the same `GDBusProxy` instance, and that
might never happen ??? it might wait for the `Finished` signal forever.

Avoid that by connecting to `notify::g-name-owner`, which is emitted on
`GDBusProxy` if the daemon crashes. It changes value from the unique
name of the service, to `NULL`. When that happens, abort the transaction
state in the client with an error.

This should stop gnome-software hanging indefinitely if PackageKit
crashes during a transaction. In particular, if this happens a few times
during consecutive refresh operations, gnome-software can eventually run
out of worker threads, and become unresponsive entirely. (See
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1118.) The same
will likely be true of other clients which use packagekit-glib2.

Equivalent changes don???t seem to be needed in `pk-control.c` (which also
uses `GDBusProxy`), because all of its D-Bus operations appear to
maintain no state outside of individual method calls.

Signed-off-by: Philip Withnall 
---
 lib/packagekit-glib2/pk-client.c | 31 ++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
index 3f7d5230d..67df1c5ea 100644
--- a/lib/packagekit-glib2/pk-client.c
+++ b/lib/packagekit-glib2/pk-client.c
@@ -122,6 +122,9 @@ typedef struct {
PkClientHelper  *client_helper;
 } PkClientState;
 
+static void
+pk_client_state_finish (PkClientState *state,
+const GError  *error);
 static void
 pk_client_properties_changed_cb (GDBusProxy *proxy,
 GVariant *changed_properties,
@@ -133,6 +136,10 @@ pk_client_signal_cb (GDBusProxy *proxy,
 const gchar *signal_name,
 GVariant *parameters,
 gpointer user_data);
+static void
+pk_client_notify_name_owner_cb (GObject*obj,
+GParamSpec *pspec,
+

commit PackageKit for openSUSE:Factory

2021-03-24 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-03-24 16:09:40

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2401 (New)


Package is "PackageKit"

Wed Mar 24 16:09:40 2021 rev:217 rq:879958 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-03-16 
15:44:04.721005908 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2401/PackageKit.changes  
2021-03-24 16:09:42.991735268 +0100
@@ -1,0 +2,6 @@
+Mon Mar 15 21:24:53 UTC 2021 - Andrei Dziahel 
+
+- Add PackageKit-remove-transaction-size-limit.patch: Remove large transaction 
+  size sanity check (gh#hughsie/PackageKit/commit#ac5c8660)
+
+---

New:

  PackageKit-remove-transaction-size-limit.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.7nNYgz/_old  2021-03-24 16:09:43.739736053 +0100
+++ /var/tmp/diff_new_pack.7nNYgz/_new  2021-03-24 16:09:43.739736053 +0100
@@ -60,6 +60,8 @@
 Patch7: 
PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-initialize-pool.patch 
gh#hughsie/PackageKit/commit#3efa0c524, bsc#1180597 -- zypp: Make sure pool is 
initialized at the beginning of some methods
 Patch8: PackageKit-zypp-initialize-pool.patch
+# PATCH-FIX-UPSTREAM PackageKit-remove-transaction-size-limit.patch 
gh#hughsie/PackageKit/commit#ff01813 gh#hughsie/PackageKit/commit#ff01813 -- 
Fix a "too many packages to process" error against full rebuilds
+Patch9: PackageKit-remove-transaction-size-limit.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -172,7 +174,7 @@
 License:GPL-2.0-or-later
 Group:  Productivity/Multimedia/Other
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 Recommends: %{name} = %{version}
 Supplements:(%{name} and gstreamer-plugins-base)
 


++ PackageKit-remove-transaction-size-limit.patch ++
>From ff0181389dc281effbd274f6e1ae01e8905ddf8a Mon Sep 17 00:00:00 2001
From: Richard Hughes 
Date: Thu, 19 Nov 2020 19:15:08 +
Subject: [PATCH] Increase the number of packages that can be processed in one
 transaction

Ohh TeX Live, you taunt me.

Fixes https://github.com/hughsie/PackageKit/issues/442
---
 src/pk-transaction.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index 7cb1ced60..6167f0473 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -77,7 +77,7 @@ static gboolean pk_transaction_is_supported_content_type 
(PkTransaction *transac
 #define PK_TRANSACTION_MAX_ITEMS_TO_RESOLVE1
 
 /* maximum number of packages that can be processed in one go */
-#define PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS 5200
+#define PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS 1
 
 struct PkTransactionPrivate
 {
>From ac5c8660a82b6df96c9895eb97d242af3b6dac72 Mon Sep 17 00:00:00 2001
From: Nate Graham 
Date: Mon, 15 Mar 2021 11:54:14 -0600
Subject: [PATCH] Remove large transaction size sanity check

Some distros regularly push updates of tens of thousands of packages,
causing users to run into this "too many packages" error. This is not
really an error, it's just that the sanity check didn't anticipate that
the world might be insane. :) Let's remove it to avoid these issues.
---
 src/pk-transaction.c | 131 +--
 1 file changed, 2 insertions(+), 129 deletions(-)

diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index 0724e5f25..258abb2cb 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -76,9 +76,6 @@ static gboolean pk_transaction_is_supported_content_type 
(PkTransaction *transac
 /* maximum number of items that can be resolved in one go */
 #define PK_TRANSACTION_MAX_ITEMS_TO_RESOLVE1
 
-/* maximum number of packages that can be processed in one go */
-#define PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS 1
-
 struct PkTransactionPrivate
 {
PkRoleEnum   role;
@@ -2791,18 +2788,6 @@ pk_transaction_download_packages (PkTransaction 
*transaction,
goto out;
}
 
-   /* check for length sanity */
-   length = g_strv_length (package_ids);
-   if (length > PK_TRANSACTION_MAX_PACKAGES_TO_PROCESS) {
-   g_set_error (&error,
-PK_TRANSACTION_ERROR,
-PK_TRANSACTION_ERROR_NUMBER_OF_PACKAGES_INVALID,
-"Too many packages to process (%i/%i)",
-  

commit PackageKit for openSUSE:Factory

2021-03-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-03-16 15:42:55

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2401 (New)


Package is "PackageKit"

Tue Mar 16 15:42:55 2021 rev:216 rq:879127 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-03-10 
08:46:08.622200838 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2401/PackageKit.changes  
2021-03-16 15:44:04.721005908 +0100
@@ -8,0 +9,7 @@
+Fri Feb 26 14:39:52 UTC 2021 - Neal Gompa 
+
+- Enable offline updates support for openSUSE Leap 16+
+- Recommend a provider of rpm-repos-openSUSE for the DNF backend
+- Use dnf-data instead of dnf-conf in Supplements on DNF backend package
+
+---



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.WUuAWw/_old  2021-03-16 15:44:05.357006925 +0100
+++ /var/tmp/diff_new_pack.WUuAWw/_new  2021-03-16 15:44:05.357006925 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%if 0%{?sle_version}
+%if 0%{?sle_version} && 0%{?sle_version} < 16
 %bcond_with offline_updates
 %else
 %bcond_without offline_updates
@@ -136,7 +136,8 @@
 Requires:   %{name} = %{version}
 Provides:   %{name}-backend = %{version}
 Conflicts:  %{name}-backend
-Supplements:(%{name} and dnf-conf and rpm-repos-openSUSE)
+Supplements:(%{name} and dnf-data)
+Recommends: rpm-repos-openSUSE
 Suggests:   PackageKit-command-not-found
 # Stricter dependency to keep things sane
 %requires_ge %(rpm -qf "$(readlink -f %{_libdir}/libdnf.so)")


commit PackageKit for openSUSE:Factory

2021-03-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-03-10 08:46:07

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.2378 (New)


Package is "PackageKit"

Wed Mar 10 08:46:07 2021 rev:215 rq:876239 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-02-16 
22:37:12.765715594 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.2378/PackageKit.changes  
2021-03-10 08:46:08.622200838 +0100
@@ -1,0 +2,7 @@
+Mon Mar  1 08:05:23 UTC 2021 - Jonathan Kang 
+
+- Add PackageKit-zypp-initialize-pool.patch: zypp: Make sure pool
+  is initialized at the beginning of some methods
+  (gh#hughsie/PackageKit/commit#3efa0c524, bsc#1180597).
+
+---

New:

  PackageKit-zypp-initialize-pool.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.BTcXQl/_old  2021-03-10 08:46:09.966202224 +0100
+++ /var/tmp/diff_new_pack.BTcXQl/_new  2021-03-10 08:46:09.970202228 +0100
@@ -58,6 +58,8 @@
 Patch6: PackageKit-zypp-reset-update-mode-after-get-updates.patch
 # PATCH-FIX-UPSTREAM 
PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch 
gh#hughsie/PackageKit#449 -- Use dup for upgrades on Tumbleweed with DNF
 Patch7: 
PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-initialize-pool.patch 
gh#hughsie/PackageKit/commit#3efa0c524, bsc#1180597 -- zypp: Make sure pool is 
initialized at the beginning of some methods
+Patch8: PackageKit-zypp-initialize-pool.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-initialize-pool.patch ++
>From 3efa0c5243c1ee762cee0d21af1052e4cc245f9d Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Fri, 26 Feb 2021 14:10:48 +0800
Subject: [PATCH] zypp: Make sure pool is initialized at the beginning of some
 methods

Methods include GetDetails, GetFiles and GetUpdateDetail.

https://bugzilla.opensuse.org/show_bug.cgi?id=1180597
---
 backends/zypp/pk-backend-zypp.cpp | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index 4941a6b86..6da70348b 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -2145,6 +2145,8 @@ backend_get_details_thread (PkBackendJob *job, GVariant 
*params, gpointer user_d
return;
}
 
+   zypp_build_pool (zypp, true);
+
pk_backend_job_set_status (job, PK_STATUS_ENUM_QUERY);
 
for (uint i = 0; package_ids[i]; i++) {
@@ -2633,6 +2635,8 @@ backend_get_update_detail_thread (PkBackendJob *job, 
GVariant *params, gpointer
}
pk_backend_job_set_status (job, PK_STATUS_ENUM_QUERY);
 
+   zypp_build_pool (zypp, TRUE);
+
for (uint i = 0; package_ids[i]; i++) {
sat::Solvable solvable = zypp_get_package_by_id 
(package_ids[i]);
MIL << package_ids[i] << " " << solvable << endl;
@@ -3330,6 +3334,8 @@ backend_get_files_thread (PkBackendJob *job, GVariant 
*params, gpointer user_dat
return;
}
 
+   zypp_build_pool (zypp, true);
+
for (uint i = 0; package_ids[i]; i++) {
pk_backend_job_set_status (job, PK_STATUS_ENUM_QUERY);
sat::Solvable solvable = zypp_get_package_by_id 
(package_ids[i]);
-- 
2.29.2


commit PackageKit for openSUSE:Factory

2021-02-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-02-16 22:35:28

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.28504 (New)


Package is "PackageKit"

Tue Feb 16 22:35:28 2021 rev:214 rq:870844 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-01-30 
13:28:56.067706945 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.28504/PackageKit.changes 
2021-02-16 22:37:12.765715594 +0100
@@ -7,0 +8,6 @@
+Fri Jan 29 21:30:49 UTC 2021 - Neal Gompa 
+
+- Backport fix from upstream to have DNF backend force dup for updates
+  + Patch: PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
+
+---

New:

  PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.8PMpHs/_old  2021-02-16 22:37:14.469717864 +0100
+++ /var/tmp/diff_new_pack.8PMpHs/_new  2021-02-16 22:37:14.473717869 +0100
@@ -56,6 +56,8 @@
 Patch5: PackageKit-fix-crash-pre-dbus.patch
 # PATCH-FIX-UPSTREAM PackageKit-zypp-reset-update-mode-after-get-updates.patch 
gh#hughsie/PackageKit/commit#b208f551 bsc#1180150 sck...@suse.com -- zypp: 
Reset update mode after getting updates
 Patch6: PackageKit-zypp-reset-update-mode-after-get-updates.patch
+# PATCH-FIX-UPSTREAM 
PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch 
gh#hughsie/PackageKit#449 -- Use dup for upgrades on Tumbleweed with DNF
+Patch7: 
PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-dnf-Add-support-for-coercing-upgrade-to-distupgrade.patch 
++
>From 7d89261b61b8536531ef2ae85c0c631d8c97f723 Mon Sep 17 00:00:00 2001
From: Neal Gompa 
Date: Fri, 29 Jan 2021 13:41:06 -0500
Subject: [PATCH] dnf: Add support for coercing upgrade to distupgrade

Some distributions (particularly rolling release distributions)
prefer that normal "upgrade" actions actually trigger the distupgrade
method in the package manager. This change enables that if the
installed  distribution release package specifies that this
behavior must occur.
---
 backends/dnf/pk-backend-dnf.c | 28 +++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/backends/dnf/pk-backend-dnf.c b/backends/dnf/pk-backend-dnf.c
index 74d35c34c..05f354afe 100644
--- a/backends/dnf/pk-backend-dnf.c
+++ b/backends/dnf/pk-backend-dnf.c
@@ -823,6 +823,28 @@ dnf_utils_run_query_with_newest_filter (DnfSack *sack, 
HyQuery query)
return results;
 }
 
+static gboolean
+dnf_utils_force_distupgrade_on_upgrade (DnfSack *sack)
+{
+   g_autoptr(GPtrArray) plist = NULL;
+   gint candidates;
+   const gchar *distroverpkg_names[] = { "system-release", 
"distribution-release", NULL };
+   const gchar *distupgrade_provides[] = { "system-upgrade(dsync)", 
"product-upgrade() = dup", NULL };
+   HyQuery query_tmp = hy_query_create (sack);
+
+   hy_query_filter (query_tmp, HY_PKG_REPONAME, HY_EQ, 
HY_SYSTEM_REPO_NAME);
+   hy_query_filter_provides_in (query_tmp, (gchar**) distroverpkg_names);
+   hy_query_filter_provides_in (query_tmp, (gchar**) distupgrade_provides);
+
+   plist = hy_query_run (query_tmp);
+   candidates = plist->len;
+   hy_query_free (query_tmp);
+
+   if (candidates > 0)
+   return TRUE;
+   return FALSE;
+}
+
 static GPtrArray *
 dnf_utils_run_query_with_filters (PkBackendJob *job, DnfSack *sack,
  HyQuery query, PkBitfield filters)
@@ -1001,7 +1023,11 @@ pk_backend_search_thread (PkBackendJob *job, GVariant 
*params, gpointer user_dat
dnf_sack_set_installonly_limit (sack, 
dnf_context_get_installonly_limit (job_data->context));
 
job_data->goal = hy_goal_create (sack);
-   hy_goal_upgrade_all (job_data->goal);
+   if (dnf_utils_force_distupgrade_on_upgrade (sack)) {
+   hy_goal_distupgrade_all (job_data->goal);
+   } else {
+   hy_goal_upgrade_all (job_data->goal);
+   }
ret = dnf_goal_depsolve (job_data->goal, DNF_ALLOW_UNINSTALL, 
&error);
if (!ret) {
pk_backend_job_error_code (job, error->code, "%s", 
error->message);
-- 
2.29.2


commit PackageKit for openSUSE:Factory

2021-01-30 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-01-30 13:28:55

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.28504 (New)


Package is "PackageKit"

Sat Jan 30 13:28:55 2021 rev:213 rq: version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2021-01-29 
14:57:16.333524852 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.28504/PackageKit.changes 
2021-01-30 13:28:56.067706945 +0100
@@ -1,0 +2,6 @@
+Sat Jan 30 12:28:21 UTC 2021 - Dominique Leuenberger 
+
+- Do not build cnf: scout-c-n-f is still pending, having PK-cnf
+  obsolete cnf is unacceptable.
+
+---



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.IOmh8y/_old  2021-01-30 13:28:56.979708396 +0100
+++ /var/tmp/diff_new_pack.IOmh8y/_new  2021-01-30 13:28:56.983708402 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package PackageKit
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
 # Only make DNF backend available openSUSE Leap 15.1+
 %if 0%{?sle_version} >= 150100 || 0%{?suse_version} >= 1550
 %bcond_without dnf
-%bcond_without cnf
+%bcond_with cnf
 %else
 %bcond_with dnf
 %bcond_with cnf


commit PackageKit for openSUSE:Factory

2021-01-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-01-29 14:57:03

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.28504 (New)


Package is "PackageKit"

Fri Jan 29 14:57:03 2021 rev:212 rq:867217 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2020-12-30 
17:12:22.296805109 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.28504/PackageKit.changes 
2021-01-29 14:57:16.333524852 +0100
@@ -1,0 +2,12 @@
+Wed Jan 27 09:03:50 UTC 2021 - Jonathan Kang 
+
+- Add PackageKit-zypp-reset-update-mode-after-get-updates.patch:
+  zypp: Reset update mode after getting updates
+  (gh#hughsie/PackageKit/commit#b208f551, bsc#1180150).
+
+---
+Tue Jan 19 21:16:33 UTC 2021 - Stasiek Michalski 
+
+- Build command-not-found by default
+
+---

New:

  PackageKit-zypp-reset-update-mode-after-get-updates.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.TwObLo/_old  2021-01-29 14:57:17.633526765 +0100
+++ /var/tmp/diff_new_pack.TwObLo/_new  2021-01-29 14:57:17.637526771 +0100
@@ -16,8 +16,6 @@
 #
 
 
-%bcond_with cnf
-
 %if 0%{?sle_version}
 %bcond_with offline_updates
 %else
@@ -27,8 +25,10 @@
 # Only make DNF backend available openSUSE Leap 15.1+
 %if 0%{?sle_version} >= 150100 || 0%{?suse_version} >= 1550
 %bcond_without dnf
+%bcond_without cnf
 %else
 %bcond_with dnf
+%bcond_with cnf
 %endif
 
 Name:   PackageKit
@@ -54,6 +54,8 @@
 Patch4: PackageKit-zypp-cleanup-tmp-files.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
 Patch5: PackageKit-fix-crash-pre-dbus.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-reset-update-mode-after-get-updates.patch 
gh#hughsie/PackageKit/commit#b208f551 bsc#1180150 sck...@suse.com -- zypp: 
Reset update mode after getting updates
+Patch6: PackageKit-zypp-reset-update-mode-after-get-updates.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -131,6 +133,7 @@
 Provides:   %{name}-backend = %{version}
 Conflicts:  %{name}-backend
 Supplements:(%{name} and dnf-conf and rpm-repos-openSUSE)
+Suggests:   PackageKit-command-not-found
 # Stricter dependency to keep things sane
 %requires_ge %(rpm -qf "$(readlink -f %{_libdir}/libdnf.so)")
 
@@ -142,6 +145,23 @@
 suck less.
 %endif
 
+%if %{with cnf}
+%package command-not-found
+Summary:Command Not Found using PackageKit
+License:GPL-2.0-or-later
+Group:  System/Daemons
+Obsoletes:  command-not-found
+Provides:   command-not-found
+Conflicts:  command-not-found
+# zypp backend lacks full functionality for this to make sense
+Conflicts:  %{name}-backend-zypp
+
+%description command-not-found
+The improved Command Not Found utility from the PackageKit utilities
+suit, making it easier to install the software you need when you
+need it.
+%endif
+
 %package gstreamer-plugin
 Summary:Install GStreamer codecs using PackageKit
 License:GPL-2.0-or-later
@@ -357,17 +377,11 @@
 %dir %{_usr}/lib/tmpfiles.d
 %{_datadir}/bash-completion/completions/pkcon
 %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
-%if %{with cnf}
-%{_sysconfdir}/profile.d/PackageKit.sh
-%endif
 %{_bindir}/pkcon
 %{_bindir}/pkmon
 %{_libdir}/packagekit-backend/libpk_backend_dummy.so
 %{_libexecdir}/packagekitd
 %{_libexecdir}/packagekit-direct
-%if %{with cnf}
-%{_libexecdir}/pk-command-not-found
-%endif
 %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml
 %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml
 %{_datadir}/PackageKit/pk-upgrade-distro.sh
@@ -400,6 +414,13 @@
 %{_libdir}/packagekit-backend/libpk_backend_dnf.so
 %endif
 
+%if %{with cnf}
+%files command-not-found
+%{_sysconfdir}/profile.d/PackageKit.sh
+%{_libexecdir}/pk-command-not-found
+%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf
+%endif
+
 %files gstreamer-plugin
 %ghost %{_sysconfdir}/alternatives/gst-install-plugins-helper
 %{_libexecdir}/gst-install-plugins-helper
@@ -441,9 +462,6 @@
 %{_datadir}/vala/vapi/packagekit-glib2.deps
 
 %files branding-upstream
-%if %{with cnf}
-%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf
-%endif
 %config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf
 # This file should not be touched by users/admins, so we can replace it
 %{_sysconfdir}/PackageKit/Vendor.conf


++ PackageKit-zypp-

commit PackageKit for openSUSE:Factory

2020-12-05 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2020-12-05 20:36:16

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.5913 (New)


Package is "PackageKit"

Sat Dec  5 20:36:16 2020 rev:210 rq:852650 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2020-11-29 
12:23:59.837733282 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.5913/PackageKit.changes  
2020-12-05 20:37:08.470706262 +0100
@@ -1,0 +2,7 @@
+Wed Dec  2 07:24:08 UTC 2020 - Jonathan Kang 
+
+- Add PackageKit-zypp-cleanup-tmp-files.patch: Revert "Revert
+  "zypp: Clean up temporary files when PK quits""
+  (bsc#1169739 gh#hughsie/PackageKit/commit#cf73b01a).
+
+---

New:

  PackageKit-zypp-cleanup-tmp-files.patch



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.EvycWE/_old  2020-12-05 20:37:09.254707057 +0100
+++ /var/tmp/diff_new_pack.EvycWE/_new  2020-12-05 20:37:09.258707061 +0100
@@ -50,6 +50,8 @@
 Patch2: PackageKit-remove-polkit-rules.patch
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-cleanup-tmp-files.patch bsc#1169739 
gh#hughsie/PackageKit/commit#cf73b01a sck...@suse.com -- Revert "Revert "zypp: 
Clean up temporary files when PK quits""
+Patch4: PackageKit-zypp-cleanup-tmp-files.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++ PackageKit-zypp-cleanup-tmp-files.patch ++
From ff092d0e5742f02ab1aeeafefeaaa558d32ab0b0 Mon Sep 17 00:00:00 2001
From: Jonathan Kang 
Date: Tue, 1 Dec 2020 16:18:12 +0800
Subject: [PATCH] Revert "Revert "zypp: Clean up temporary files when PK
 quits""

packagekitd.service will be stopped on system shutdown and by manually
doing so. Thus the main process will be killed eventually and we have
to manually clean those tmporary libzypp files.

This reverts commit d8dd484ddfcea4750495fa92dcd2f580149432e7.

https://bugzilla.opensuse.org/show_bug.cgi?id=1169739
---
 backends/zypp/pk-backend-zypp.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index b1ce76915..9404abb1a 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -1840,6 +1840,8 @@ pk_backend_destroy (PkBackend *backend)
 {
g_debug ("zypp_backend_destroy");
 
+   filesystem::recursive_rmdir (zypp::myTmpDir ());
+
g_free (_repoName);
delete priv;
 }
-- 
2.26.2
___
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org


[opensuse-commit] commit PackageKit for openSUSE:Factory

2020-11-29 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2020-11-29 12:23:45

Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and  /work/SRC/openSUSE:Factory/.PackageKit.new.5913 (New)


Package is "PackageKit"

Sun Nov 29 12:23:45 2020 rev:209 rq:851059 version:1.2.2

Changes:

--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes2020-11-09 
13:58:24.327834027 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.5913/PackageKit.changes  
2020-11-29 12:23:59.837733282 +0100
@@ -7,0 +8,20 @@
+Mon Nov  2 14:47:56 UTC 2020 - Dominique Leuenberger 
+
+- Update to version 1.2.2:
+  + New Features: Notify the service manager when it's beginning to
+shutdown.
+  + Bugfixes:
+- Fix possible information disclosure (CVE-2020-16121).
+- Install required test helper files.
+- Silence meson warning by bumping minimum version.
+  + Changes related to zypp backend:
+- Don’t refresh repos again when actually updating packages.
+- Erase tmp repo from pool after local installation.
+- Set PATH variable.
+- Drop upstream merged patches:
+  + PackageKit-test-Install-required-helper-files.patch
+  + PackageKit-zypp-dont-refresh-repos-on-offline-update.patch
+  + PackageKit-zypp-set-PATH.patch
+  + PackageKit-bsc1169739.patch
+
+---

Old:

  PackageKit-1.2.1.tar.xz
  PackageKit-1.2.1.tar.xz.asc
  PackageKit-bsc1169739.patch
  PackageKit-test-Install-required-helper-files.patch
  PackageKit-zypp-dont-refresh-repos-on-offline-update.patch
  PackageKit-zypp-set-PATH.patch

New:

  PackageKit-1.2.2.tar.xz
  PackageKit-1.2.2.tar.xz.asc



Other differences:
--
++ PackageKit.spec ++
--- /var/tmp/diff_new_pack.hmIFkb/_old  2020-11-29 12:24:00.509733961 +0100
+++ /var/tmp/diff_new_pack.hmIFkb/_new  2020-11-29 12:24:00.513733965 +0100
@@ -32,7 +32,7 @@
 %endif
 
 Name:   PackageKit
-Version:1.2.1
+Version:1.2.2
 Release:0
 Summary:Simple software installation management software
 License:GPL-2.0-or-later
@@ -50,14 +50,6 @@
 Patch2: PackageKit-remove-polkit-rules.patch
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3: 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
-# PATCH-FIX-UPSTREAM PackageKit-test-Install-required-helper-files.patch 
gh#/hughsie/PackageKit/commit/a6904b4 ngomp...@gmail.com -- Fix installation of 
test backend files
-Patch4: PackageKit-test-Install-required-helper-files.patch
-# PATCH-FIX-UPSTREAM PackageKit-zypp-set-PATH.patch 
gh#/hughsie/PackageKit/commit/2fb7fc6e, bsc#1175315 sck...@suse.com -- zypp: 
Set PATH variable
-Patch5: PackageKit-zypp-set-PATH.patch
-# PATCH-FIX-UPSTREAM 
PackageKit-zypp-dont-refresh-repos-on-offline-update.patch 
gh#/hughsie/PackageKit/commit/81207bd3, bsc#1173562 sck...@suse.com -- zypp: 
Don’t refresh repos again when actually updating packages
-Patch6: PackageKit-zypp-dont-refresh-repos-on-offline-update.patch
-# PATCH-FIX-UPSTREAM PackageKit-bsc1169739.patch 
gh#/hughsie/PackageKit/commit/d8dd484d, bsc#1169739 sck...@suse.com -- main: 
notify the service manager when it's beginning to shutdown
-Patch7: PackageKit-bsc1169739.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++

++ PackageKit-1.2.1.tar.xz -> PackageKit-1.2.2.tar.xz ++
 2117 lines of diff (skipped)
___
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org