Accepting request 835757 from home:JonathanKang:branches:GNOME:Factory
- Add PackageKit-zypp-set-PATH.patch: zypp: Set PATH variable (gh#/hughsie/PackageKit/commit/2fb7fc6e, bsc#1175315). OBS-URL: https://build.opensuse.org/request/show/835757 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/PackageKit?expand=0&rev=388
This commit is contained in:
parent
be56316c54
commit
47705ee8d3
27
PackageKit-zypp-set-PATH.patch
Normal file
27
PackageKit-zypp-set-PATH.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 2fb7fc6efa67351c05ec13495a50d1333191ed67 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Kang <jonathankang@gnome.org>
|
||||
Date: Fri, 18 Sep 2020 15:18:24 +0800
|
||||
Subject: [PATCH] zypp: set PATH variable
|
||||
|
||||
https://bugzilla.suse.com/show_bug.cgi?id=1175315
|
||||
---
|
||||
backends/zypp/pk-backend-zypp.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
|
||||
index 0a5ed7766..5975b86f9 100644
|
||||
--- a/backends/zypp/pk-backend-zypp.cpp
|
||||
+++ b/backends/zypp/pk-backend-zypp.cpp
|
||||
@@ -1829,6 +1829,9 @@ pk_backend_initialize (GKeyFile *conf, PkBackend *backend)
|
||||
priv->zypp_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
zypp_logging ();
|
||||
|
||||
+ /* Set PATH variable to avoid problems when installing packges(bsc#1175315). */
|
||||
+ g_setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", TRUE);
|
||||
+
|
||||
g_debug ("zypp_backend_initialize");
|
||||
}
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 21 06:37:58 UTC 2020 - Jonathan Kang <songchuan.kang@suse.com>
|
||||
|
||||
- Add PackageKit-zypp-set-PATH.patch: zypp: Set PATH variable
|
||||
(gh#/hughsie/PackageKit/commit/2fb7fc6e, bsc#1175315).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 7 14:04:19 UTC 2020 - Neal Gompa <ngompa13@gmail.com>
|
||||
|
||||
|
@ -52,6 +52,8 @@ Patch2: PackageKit-remove-polkit-rules.patch
|
||||
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 ngompa13@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 sckang@suse.com -- zypp: Set PATH variable
|
||||
Patch5: PackageKit-zypp-set-PATH.patch
|
||||
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
|
Loading…
Reference in New Issue
Block a user