Accepting request 1139384 from home:yfjiang:branches:GNOME:Factory

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

OBS-URL: https://build.opensuse.org/request/show/1139384
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/PackageKit?expand=0&rev=450
This commit is contained in:
Dominique Leuenberger 2024-01-17 10:56:44 +00:00 committed by Git OBS Bridge
parent bdf90fdd08
commit aaa279bd5d
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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.000000000 +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()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 2 08:23:40 UTC 2024 - Alynx Zhou <alynx.zhou@suse.com>
- Add PackageKit-find-python-3-6.patch: Specify the Python version
we need to build this package.
-------------------------------------------------------------------
Thu Nov 9 09:32:29 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -59,6 +59,9 @@ Patch15: PackageKit-fix-pkcon-permission.patch
# PATCH-FIX-UPSTREAM PackageKit-dynamic-export.patch boo#1213309 dimstar@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.zhou@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,19 @@ This package provides the upstream default configuration for PackageKit.
%lang_package
%prep
%if 0%{?sle_version} && 0%{?sle_version} < 160000
%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
%patch -P 1001 -p1
%else
%autosetup -p1
%endif
%build
%meson \