- bsc#1122410: Dont clear XAUTHLOCALHOSTNAME

- Add lxqt-bsc1122410-clear-env.patch:
  See https://github.com/lxqt/lxqt-sudo/issues/101

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-sudo?expand=0&rev=16
This commit is contained in:
Michael Vetter 2019-02-05 11:29:34 +00:00 committed by Git OBS Bridge
parent ab2f095641
commit e215a8b4a1
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,15 @@
https://github.com/lxqt/lxqt-sudo/issues/101
https://github.com/lxqt/lxqt-sudo/pull/102
diff -urEbwB lxqt-sudo-0.14.0/sudo.cpp lxqt-sudo-0.14.0.new/sudo.cpp
--- lxqt-sudo-0.14.0/sudo.cpp 2019-01-26 00:40:04.000000000 +0100
+++ lxqt-sudo-0.14.0.new/sudo.cpp 2019-02-05 12:14:14.002319588 +0100
@@ -89,7 +89,7 @@
"DISPLAY"
, "LANG", "LANGUAGE", "LC_ADDRESS", "LC_ALL", "LC_COLLATE", "LC_CTYPE", "LC_IDENTIFICATION", "LC_MEASUREMENT"
, "LC_MESSAGES", "LC_MONETARY", "LC_NAME", "LC_NUMERIC", "LC_PAPER", "LC_TELEPHONE", "LC_TIME"
- , "PATH", "QT_PLATFORM_PLUGIN", "QT_QPA_PLATFORMTHEME", "WAYLAND_DISPLAY", "XAUTHORITY"
+ , "PATH", "QT_PLATFORM_PLUGIN", "QT_QPA_PLATFORMTHEME", "WAYLAND_DISPLAY", "XAUTHLOCALHOSTNAME", "XAUTHORITY"
};
static constexpr char const * const * const ALLOWED_END = ALLOWED_VARS + sizeof (ALLOWED_VARS) / sizeof (ALLOWED_VARS[0]);
struct assert_helper

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 5 10:46:45 UTC 2019 - mvetter@suse.com
- bsc#1122410: Dont clear XAUTHLOCALHOSTNAME
- Add lxqt-bsc1122410-clear-env.patch:
See https://github.com/lxqt/lxqt-sudo/issues/101
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 31 10:29:34 UTC 2019 - Michael Vetter <mvetter@suse.com> Thu Jan 31 10:29:34 UTC 2019 - Michael Vetter <mvetter@suse.com>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
@ -26,6 +26,8 @@ URL: http://lxqt.org
Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
# FIX-UPSTREAM - mvetter@suse.com - https://github.com/lxqt/lxqt-sudo/issues/101
Patch0: lxqt-bsc1122410-clear-env.patch
BuildRequires: cmake >= 3.1.0 BuildRequires: cmake >= 3.1.0
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: lxqt-build-tools-devel >= 0.5.0 BuildRequires: lxqt-build-tools-devel >= 0.5.0
@ -47,6 +49,7 @@ and (after submit) the password is provided to sudo.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%cmake -DPULL_TRANSLATIONS=No %cmake -DPULL_TRANSLATIONS=No