diff --git a/0001-Defuse-root-block.patch b/0001-Defuse-root-block.patch index 5539eb4..d194cf2 100644 --- a/0001-Defuse-root-block.patch +++ b/0001-Defuse-root-block.patch @@ -12,24 +12,24 @@ That way it's only an impact on usability. kwrite/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) -Index: kate-19.11.70git.20210802T211844~84f9368ef/kate/main.cpp +Index: kate-19.11.70git.20220102T020433~0a4347e06/kate/main.cpp =================================================================== ---- kate-19.11.70git.20210802T211844~84f9368ef.orig/kate/main.cpp 2021-08-02 21:18:44.000000000 +0200 -+++ kate-19.11.70git.20210802T211844~84f9368ef/kate/main.cpp 2021-08-03 23:05:03.494438867 +0200 +--- kate-19.11.70git.20220102T020433~0a4347e06.orig/kate/main.cpp 2022-01-02 09:28:49.643692601 +0100 ++++ kate-19.11.70git.20220102T020433~0a4347e06/kate/main.cpp 2022-01-02 09:29:48.503285030 +0100 @@ -48,19 +48,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 << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities. " -- "It is also not necessary; simply use Kate normally, and you will be prompted for " -- "elevated privileges when saving documents if needed." +- 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; - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) { -- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities. " -- "It is also not necessary; simply use Kate normally, and you will be prompted for " -- "elevated privileges when saving documents if needed." +- 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; - } diff --git a/kate-21.12.3.tar.xz b/kate-21.12.3.tar.xz deleted file mode 100644 index 9cc0f86..0000000 --- a/kate-21.12.3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:afa5141fb2746fc18ea2d97bd80ec37c096589822fe0b0e7ec00c63d0198e0de -size 7497692 diff --git a/kate-21.12.3.tar.xz.sig b/kate-21.12.3.tar.xz.sig deleted file mode 100644 index f96617e..0000000 --- a/kate-21.12.3.tar.xz.sig +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCgAdFiEE2BwMs463Je9mkcOFu0YzUNbvMe8FAmIdYp8ACgkQu0YzUNbv -Me8xSxAAk2dVhwbKaNyKDDwDy6tRIghWZSC9PJ0zt4QJd6IJ5ZOWGZeYfIHRpqqx -ArSe8mF55ghr5g/YqQwQS7QCbkAfwzYZxe3PoMe0Lfv3c3pqrHYPe96xnMiEBI1p -bnGqBuEABcgdwA7JgEVZugiz90vBWh4NdXnxH/WKcQLzEsvTzitWRW6WuQqzQ/Td -Z5dFz+HrGXDIikjnIshIV8byapEkl4Hsu1ywlhYJ3KgNl7TtjgzkTLBAWxO6HXVN -/ApUT0deRIOjIgQBLjnbfi8T17O7rLhQSt8DyZDcxDgWQGq1VvLYG5cJuME8f7C5 -lonz0QWf/Tzmn7+bybXKj0Fb196vktKY4i2hx6szhl+E7LVMPaei1C6XRo5ELCV2 -1ejjk4/2zm+jCJavDYbND/6Rk+rZzmiAhsnawXqKFYqOGoVYS7iJ/LwvjPcTkBU9 -TpTkZwWZC6JSRGJXTuHCYUnuLbtxf4mMRHw7tqJYFmEDxuywAOGVtcu8MlJxctYL -ClObB8AzVBdOqHcqfR+GOWvP7FyWy0m7uStNd7fes6rcnZE5lkkcPfK5Md8OEskO -APMonFPHRyiU2FBaKwOzcE8jG1ZkNf+cjDxzgAJK/wsQ4FAvGM68fyTZl1lSxI3s -vAeBD+MZN3VRjErd9j/h0de5ihisbYdx4x0r3kCmISM7jvXJcOg= -=S93E ------END PGP SIGNATURE----- diff --git a/kate-22.03.80.tar.xz b/kate-22.03.80.tar.xz new file mode 100644 index 0000000..1836016 --- /dev/null +++ b/kate-22.03.80.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cdcb9ab87bf98529f1c60021e106bee8e82363c735d743c99d73ccaaf6fd636 +size 7570172 diff --git a/kate-22.03.80.tar.xz.sig b/kate-22.03.80.tar.xz.sig new file mode 100644 index 0000000..ace4556 --- /dev/null +++ b/kate-22.03.80.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEyiYsbIPeTS+yijMqOmpNuDnqptcFAmI0jeoACgkQOmpNuDnq +ptd8AA/+I3dc5ty0X9OHr/IZiCqH0Agsxbj38bgj/Qo8rOib2DGVuF+PhJ8S2ZAs +NXmgRr7VhhFR1EOai9wMEKVjpgv7TERZQnv16aete9ILAcybPPW2l4mlVvn0kgUo +2WuBz07e76jSD0tX/jO4ka2QidzNFKYKR5psjOMiPRsGUe/n8e5N0+7XgJ1tzYDG +vtaSSeapmsP/aiBOvjPBcLKo2LeLMoN/AK0GxiWhCiuF9cYHoRyml+waqQn7PumM +DuK1+fpWQHJblOAGtW0rldrEIjGEx96FKXJ7IOrdtCDQ+ukEl6jmycS2o4G6l+kW +MgcG9v0gjodopoJOqQ7pxuNdwDSN+PWpHij/1jhweLeg+6aa1uFk+kDgnY9+9JO0 +5Rc96skXhoj/H7AePEYbaBF6qKt2rrMerK/UCzQYtkTXscjkoQUBF9iHuLOmDi+T +HsRyFuuDFa7NfdVJGb0QL9y1PF/HXj7DOnm2oicu8R/0LyKNg6Way267hh9zLzJv +Ddhs49BT2puPhhozaxlAkgtRKXDVPeerjDCuqChM6uMddNXw6FHgjGKuuaP3pyVf +NsXIdulldp1rSMgUuWm70QIRDF7s2X85JbbTb0adQ7h5+JBAkvraoF3ZIn8wk4wL +uEqgYU4fstqTZNdH/R6nApHEAjS22cN894aqoTDI86lhtAcTlV4= +=Uv2p +-----END PGP SIGNATURE----- diff --git a/kate.changes b/kate.changes index adcc135..2dd64b0 100644 --- a/kate.changes +++ b/kate.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Wed Mar 23 08:13:48 UTC 2022 - Christophe Giboudeaux + +- Update to 22.03.80 + * New feature release +- Too many changes since 21.12.3, only listing bugfixes: + * show documents as loaded from config (kde#353373) + * ensure some proper initial size (kde#450686) + * make config dialog scrollable (kde#445541) + * Handle SIGINT/SIGTERM to prevent accidental data loss (kde#445016) + * Fix crash when closing multiple tabs if limited number of tabs is enabled (kde#450873) + * Sort by url instead of comparing strings (kde#435334) + * Fix tab jumping with unlimited tabs (kde#440585, kde#435780) + * Fix LRU tab behaviour (kde#434062) + * S&R: Fix Look-ahead & behind highlighting & replace (kde#449545) + * Fix stashing not working when Kate is quit using Ctrl+Q (kde#449229) + * lspclient: also support some alternative WorkspaceEdit replies (kde#447640) + * Allow DND of tabs among viewspaces (kde#426768) + * Dont bring kate to front when files externally modified (kde#353712) + * Fix the check to also handle 0 doc views (kde#448847) + * Improve views closing in split view behaviour (kde#344374) + * Fix terminal focus action text when focusing/defocusing (kde#409813) + * step down warning level when LSP not found (kde#448549) + * filetree: Fix folders collapse after opening new file (kde#410143) + * Clear highlights if text field becomes empty (kde#436674) + * lspclient: only allow symbol view header toggle sort when applicable (kde#447653) + * Search: Utilize context lengths more efficiently (kde#438094) + * Fix search for unsaved files (kde#434287) + * Ignore rename if newName == oldName (kde#447951) + * SemanticTokens: Use size_t as argument for type (kde#447553) + * GDB: Use debug-run theme icon in stead of custom icon (kde#444670) + * do nothing if use canceled project open (kde#447194) + * fix sessions segfault because of invalid iterator (kde#446863) + * enable/disable project actions (kde#445494) +- Use GCC 10 for building kate on Leap 15. + ------------------------------------------------------------------- Tue Mar 1 09:56:51 UTC 2022 - Christophe Giboudeaux diff --git a/kate.spec b/kate.spec index 171f3aa..c1e505d 100644 --- a/kate.spec +++ b/kate.spec @@ -21,15 +21,15 @@ %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} %bcond_without released Name: kate -Version: 21.12.3 +Version: 22.03.80 Release: 0 Summary: Advanced Text Editor License: GPL-3.0-or-later Group: Productivity/Text/Editors URL: https://kate-editor.org -Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz +Source: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz %if %{with released} -Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig +Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig Source2: applications.keyring %endif # PATCH-FIX-OPENSUSE @@ -63,6 +63,10 @@ BuildRequires: cmake(Qt5Script) BuildRequires: cmake(Qt5Sql) BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Widgets) +%if 0%{?suse_version} <= 1500 +# is not available in GCC7 +BuildRequires: gcc10-c++ +%endif Requires: %{name}-plugins = %{version} Obsoletes: %{name}5 < %{version} Provides: %{name}5 = %{version} @@ -96,15 +100,19 @@ plugins and data files for Kate and KWrite editors. %autosetup -p1 %build - %cmake_kf5 -d build - %cmake_build +%if 0%{?suse_version} <= 1500 + export CXX=g++-10 +%endif + +%cmake_kf5 -d build +%cmake_build %install - %kf5_makeinstall -C build - %if %{with released} - %find_lang %{name} --with-man --all-name - %{kf5_find_htmldocs} - %endif +%kf5_makeinstall -C build +%if %{with released} + %find_lang %{name} --with-man --all-name + %{kf5_find_htmldocs} +%endif %files %doc README*