diff --git a/lxqt-bsc1122410-clear-env.patch b/lxqt-bsc1122410-clear-env.patch new file mode 100644 index 0000000..9c66acc --- /dev/null +++ b/lxqt-bsc1122410-clear-env.patch @@ -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 diff --git a/lxqt-sudo.changes b/lxqt-sudo.changes index c18c1df..22619f3 100644 --- a/lxqt-sudo.changes +++ b/lxqt-sudo.changes @@ -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 diff --git a/lxqt-sudo.spec b/lxqt-sudo.spec index 005ed39..e961894 100644 --- a/lxqt-sudo.spec +++ b/lxqt-sudo.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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 Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc 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: gcc-c++ BuildRequires: lxqt-build-tools-devel >= 0.5.0 @@ -47,6 +49,7 @@ and (after submit) the password is provided to sudo. %prep %setup -q +%patch0 -p1 %build %cmake -DPULL_TRANSLATIONS=No