Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kate for openSUSE:Factory checked in at 2023-04-23 22:44:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kate (Old) and /work/SRC/openSUSE:Factory/.kate.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kate" Sun Apr 23 22:44:06 2023 rev:157 rq:1080562 version:23.04.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kate/kate.changes 2023-03-17 17:00:59.768653601 +0100 +++ /work/SRC/openSUSE:Factory/.kate.new.1533/kate.changes 2023-04-23 22:45:09.713931160 +0200 @@ -1,0 +2,22 @@ +Sat Apr 15 08:45:30 UTC 2023 - Christophe Marin <christo...@krop.fr> + +- Update to 23.04.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/gear/23.04.0/ + +------------------------------------------------------------------- +Fri Mar 31 16:41:46 UTC 2023 - Christophe Marin <christo...@krop.fr> + +- Update to 23.03.90 + * New feature release + +------------------------------------------------------------------- +Fri Mar 17 20:43:11 UTC 2023 - Christophe Marin <christo...@krop.fr> + +- Update to 23.03.80 + * New feature release +- Rebase patch: + * 0001-Defuse-root-block.patch + +------------------------------------------------------------------- Old: ---- kate-22.12.3.tar.xz kate-22.12.3.tar.xz.sig New: ---- kate-23.04.0.tar.xz kate-23.04.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kate.spec ++++++ --- /var/tmp/diff_new_pack.s2AFwy/_old 2023-04-23 22:45:10.317934573 +0200 +++ /var/tmp/diff_new_pack.s2AFwy/_new 2023-04-23 22:45:10.321934595 +0200 @@ -17,11 +17,9 @@ %define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1) -# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) -%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} %bcond_without released Name: kate -Version: 22.12.3 +Version: 23.04.0 Release: 0 Summary: Advanced Text Editor License: GPL-3.0-or-later @@ -48,6 +46,7 @@ BuildRequires: cmake(KF5NewStuff) BuildRequires: cmake(KF5Parts) BuildRequires: cmake(KF5Plasma) +BuildRequires: cmake(KF5Pty) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5SyntaxHighlighting) BuildRequires: cmake(KF5TextEditor) @@ -60,6 +59,7 @@ BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Script) BuildRequires: cmake(Qt5Sql) +BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Widgets) %if 0%{?suse_version} <= 1500 ++++++ 0001-Defuse-root-block.patch ++++++ --- /var/tmp/diff_new_pack.s2AFwy/_old 2023-04-23 22:45:10.345934731 +0200 +++ /var/tmp/diff_new_pack.s2AFwy/_new 2023-04-23 22:45:10.345934731 +0200 @@ -1,6 +1,6 @@ -From 52f948fe211fedc54c13c0baf067cd6d8e4cb0c3 Mon Sep 17 00:00:00 2001 +From f1b20995d1fe309b32b090ef8667f2de2f1d9d02 Mon Sep 17 00:00:00 2001 From: Luca Beltrame <lbeltr...@kde.org> -Date: Sun, 3 Apr 2022 09:26:48 +0200 +Date: Sun, 26 Feb 2023 22:27:06 +0100 Subject: [PATCH] Defuse root block While the main point is correct as any application running in the same @@ -8,60 +8,40 @@ we allow (even encourage) running YaST on X11 as root. That way it's only an impact on usability. --- - apps/kate/main.cpp | 15 ++------------- - apps/kwrite/main.cpp | 17 +++-------------- - 2 files changed, 5 insertions(+), 27 deletions(-) + apps/lib/kateapp.cpp | 19 ++----------------- + 1 file changed, 2 insertions(+), 17 deletions(-) -Index: kate-19.11.70git.20220404T014944~1f6e53f72/apps/kate/main.cpp -=================================================================== ---- kate-19.11.70git.20220404T014944~1f6e53f72.orig/apps/kate/main.cpp 2022-04-04 03:49:44.000000000 +0200 -+++ kate-19.11.70git.20220404T014944~1f6e53f72/apps/kate/main.cpp 2022-04-04 05:55:46.476883480 +0200 -@@ -49,19 +49,8 @@ +diff --git a/apps/lib/kateapp.cpp b/apps/lib/kateapp.cpp +index 2d1a66157..85079c356 100644 +--- a/apps/lib/kateapp.cpp ++++ b/apps/lib/kateapp.cpp +@@ -87,23 +87,8 @@ void KateApp::initPreApplicationCreation() #if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU) // Prohibit using sudo or kdesu (but allow using the root user directly) if (getuid() == 0) { +- setlocale(LC_ALL, ""); +- bindtextdomain("kate", KDE_INSTALL_FULL_LOCALEDIR); - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) { -- std::cout << "Running Kate with sudo can cause bugs and expose you to security vulnerabilities. " -- "Instead use Kate normally and you will be prompted for elevated privileges when " -- "saving documents if needed." -- << std::endl; -- return EXIT_FAILURE; +- auto message = kli18n( +- "Running this editor with sudo can cause bugs and expose you to security vulnerabilities. " +- "Instead use this editor normally and you will be prompted for elevated privileges when " +- "saving documents if needed."); +- std::cout << dgettext("kate", message.untranslatedText()) << std::endl; +- exit(EXIT_FAILURE); - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) { -- std::cout << "Running Kate with kdesu can cause bugs and expose you to security vulnerabilities. " -- "Instead use Kate normally and you will be prompted for elevated privileges when " -- "saving documents if needed." -- << std::endl; -- return EXIT_FAILURE; -- } -+ std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl; -+ std::cout << "SUDO_EDITOR=kate sudoedit <file>" << std::endl; - } - #endif - /** -Index: kate-19.11.70git.20220404T014944~1f6e53f72/apps/kwrite/main.cpp -=================================================================== ---- kate-19.11.70git.20220404T014944~1f6e53f72.orig/apps/kwrite/main.cpp 2022-04-04 03:49:44.000000000 +0200 -+++ kate-19.11.70git.20220404T014944~1f6e53f72/apps/kwrite/main.cpp 2022-04-04 05:57:17.276197192 +0200 -@@ -27,19 +27,8 @@ - #if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU) - // Prohibit using sudo or kdesu (but allow using the root user directly) - if (getuid() == 0) { -- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) { -- std::cout << "Running KWrite with sudo can cause bugs and expose you to security vulnerabilities. " -- "Instead use KWrite normally and you will be prompted for elevated privileges when " -- "saving documents if needed." -- << std::endl; -- return EXIT_FAILURE; -- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) { -- std::cout << "Running KWrite with kdesu can cause bugs and expose you to security vulnerabilities. " -- "Instead use KWrite normally and you will be prompted for elevated privileges when " -- "saving documents if needed." -- << std::endl; -- return EXIT_FAILURE; +- auto message = kli18n( +- "Running this editor with kdesu can cause bugs and expose you to security vulnerabilities. " +- "Instead use this editor normally and you will be prompted for elevated privileges when " +- "saving documents if needed."); +- std::cout << dgettext("kate", message.untranslatedText()) << std::endl; +- exit(EXIT_FAILURE); - } + std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl; + std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl; } #endif +-- +2.39.2 + ++++++ kate-22.12.3.tar.xz -> kate-23.04.0.tar.xz ++++++ /work/SRC/openSUSE:Factory/kate/kate-22.12.3.tar.xz /work/SRC/openSUSE:Factory/.kate.new.1533/kate-23.04.0.tar.xz differ: char 26, line 1