SHA256
1
0
forked from pool/kate

Accepting request 937902 from KDE:Applications

KDE Gear 21.12.0

OBS-URL: https://build.opensuse.org/request/show/937902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kate?expand=0&rev=139
This commit is contained in:
Dominique Leuenberger 2021-12-13 19:39:21 +00:00 committed by Git OBS Bridge
commit 3b3f9dd8d7
7 changed files with 75 additions and 61 deletions

View File

@ -1,4 +1,4 @@
From bfe1b2dd63d410c8365b2197a313193ab29ebe5e Mon Sep 17 00:00:00 2001 From 435ed5853b9451ab8fdfff722545c57a8f154625 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de> From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Sat, 18 Feb 2017 13:49:14 +0100 Date: Sat, 18 Feb 2017 13:49:14 +0100
Subject: [PATCH] Defuse root block Subject: [PATCH] Defuse root block
@ -8,15 +8,15 @@ X session (not sandboxed) can use kate's capability to open a console,
we allow (even encourage) running YaST on X11 as root. we allow (even encourage) running YaST on X11 as root.
That way it's only an impact on usability. That way it's only an impact on usability.
--- ---
kate/main.cpp | 15 ++------------- kate/main.cpp | 3 +--
kwrite/main.cpp | 15 ++------------- kwrite/main.cpp | 3 +--
2 files changed, 4 insertions(+), 26 deletions(-) 2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/kate/main.cpp b/kate/main.cpp Index: kate-19.11.70git.20210802T211844~84f9368ef/kate/main.cpp
index 5cdaa6c4d..042c0cfc8 100644 ===================================================================
--- a/kate/main.cpp --- kate-19.11.70git.20210802T211844~84f9368ef.orig/kate/main.cpp 2021-08-02 21:18:44.000000000 +0200
+++ b/kate/main.cpp +++ kate-19.11.70git.20210802T211844~84f9368ef/kate/main.cpp 2021-08-03 23:05:03.494438867 +0200
@@ -48,19 +48,8 @@ int main(int argc, char **argv) @@ -48,19 +48,8 @@
#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU) #if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
// Prohibit using sudo or kdesu (but allow using the root user directly) // Prohibit using sudo or kdesu (but allow using the root user directly)
if (getuid() == 0) { if (getuid() == 0) {
@ -33,37 +33,8 @@ index 5cdaa6c4d..042c0cfc8 100644
- << std::endl; - << std::endl;
- return EXIT_FAILURE; - return 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
/**
diff --git a/kwrite/main.cpp b/kwrite/main.cpp
index 4daa7c3a2..d3b83686c 100644
--- a/kwrite/main.cpp
+++ b/kwrite/main.cpp
@@ -40,19 +40,8 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
#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 KWrite with sudo is not possible due to unfixable security vulnerabilities. "
- "It is also not necessary; simply 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 << "Executing KWrite with kdesu is not possible due to unfixable security vulnerabilities. "
- "It is also not necessary; simply use KWrite 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 << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl;
+ std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl; + std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
} }
#endif #endif
/**
--
2.32.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e23eb09a06e29c273332dedc95f79abb9d070ec749cf9de2178a0c383b07bfbd
size 7291244

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE2BwMs463Je9mkcOFu0YzUNbvMe8FAmGAgIoACgkQu0YzUNbv
Me9JnQ//efVwDyuOYuUe29GNj4ePutUIBgBOeUznNVSAHzPUZgQ6o4AyP+kiXL77
b/m9xqhvWA6tf1mSIeGpZS7seTmxUOrOWlECGcGp2tM4Xd22LG4TUPGZiYMO1UiN
Tpb7YwcV1WGm8a4bAKhjy2iXkNJW/QVTfKPOoazCiMgOf+XdQ2vjYq2GJ2YBI+Dy
fkarZngbX+wSesY4Xsn4A04ndrzfuQiGBT2ehtnPFEViWty1pVIGTpNDW0/TufUf
SQ1fnv9RS5eHDqpElo55ZlUnwc0lXT3Grn1qChlh3f/x/l9+jhDPdSZrh5yt+clr
JYIzmafQu1pI5+zfKWlmklmkM57ZMzKRmoSnyafSi49vGeCASyubk6wNCe50uViy
qOALxDCxmFygIxRFoLiuv6dpsBllf2vD549Ttc8Pm6aX6FUs1fBlAMJhKXs/zpcd
KAtZOQg18ZgkQ/j2jkwg3Li8wuefogfso+s2mJDyaC9RAP7vhuDA8FENWqGPBaGp
B8N9hFYI5d8toVWNZMd1ZFtj6kwHrdlDRWMOSA+a0PAv7TMVTD5RNJxU1KVPN0z1
rve81vlEtT4sFAS9t3svrZ0Ep9FfJZK9trKdYMqACrXG4c6dg7t7z5e+Bx4oIwTK
7hUebaq1qNnq5+eCeyzlZpR6yde4FOUfpTyIwhx6ATmqCZmKD1w=
=qQYn
-----END PGP SIGNATURE-----

3
kate-21.12.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4122e7c7078a853bde82a4177f19148d2c1cb952dca0636c07f741989146f7b
size 7381344

16
kate-21.12.0.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEyiYsbIPeTS+yijMqOmpNuDnqptcFAmGpY3AACgkQOmpNuDnq
ptehkQ/+JdslzZAEHtvupwnozzTs0QeIuxM3Uvhk1RK2GJjTMtd2UhuIZ+uHzqj/
NRs6ZTEjji+O0McrCRRaMvK0S49vK2BTjka2LofYfE2eBp8wX/SjMWB6halo3HsV
chBe2B+AdLoLRTxF1n/Qw4w/unWN6cb2xc2IqoNNTifwiHxFgq22wrHSE2Pi1dA8
e0WhMSeI7VD9NiMCUmMoRUBBSlLhHiOkC+j9EgpCbbhGFbxpSn+iyyKqeNDkb69X
oRtoF1LfC3E63f100wGZiqZ4KxS0no2cZsv82pglW1nc+dqNxiTftDo7YxuudNHK
IXjBm33uCPdSZGTCqazs32YQitl7kC9DI2+p4s6oZmXwpg3uJmpcnmNlV9rzSDne
Vui0+2JhnA0jM5TSadSU45gM7W/ILTTcMO2CHAeEyTd+0+o5rIHluWqzioB4+0Kj
1FdcwtHGL94tavG0C0KfQ/UC7z3Hfw25ERhuU1lX5gSgmD3acatt5FsVkusYN/Nh
0wFPYQr8V8DArZ44pmIaGKqQX5sVH1Q6ymkedP9cSkUq/Qjt6WXZq7n259mrdS20
XlB0WdPzjlk/vjKNqWCiyYJxK32Lrl3/uYgg2MikXgfLBqjDlbeagHam7rvCNA6Y
wkGPoRETaWkhnco20S3C76P3vTimNTYwLTyle2eRuajb/iQfpc4=
=QwhW
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Fri Dec 3 19:21:41 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 21.12.0
* New feature release
* For more details please see:
* https://kde.org/announcements/gear/21.12.0/
- Changes since 21.11.90:
* Fix git blame for git submodules
* Fix blame fails when opening a single file
* git-blame: Fix commit summary not available
* Introducing Colored Brackets plugin
-------------------------------------------------------------------
Sat Nov 27 10:10:34 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 21.11.90
* New feature release
- Changes since 21.11.80:
* Add more options for clangd
-------------------------------------------------------------------
Sat Nov 13 17:54:42 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 21.11.80
* New feature release
- Too many changes since 21.08.3, only listing bugfixes:
* LSP Completion: use textEdit.newText as a workaround (kde#445085)
* Fix compile cpp when path has spaces (kde#443618)
* Show LspClient after positioning (kde#443895)
* fixes reload dialog on wayland (kde#440583)
* avoid crash on session rename (kde#443267)
* fix view differences (kde#441120)
* save 'Show output view for message type' setting (kde#442707)
* Fix infinite recursion in project filter model (kde#443026)
* Fix replicode plugin not deleting its toolview (kde#441859)
* Delete unfilled entries in tool config group (kde#437419)
* KWrite: use KStandardAction::preferences (kde#441505)
* Escape shortcut mnemonic markers (&) in tab texts (kde#441340)
* Allow multiple tabs for Konsole plugin(s) (kde#437922, kde#419710, kde#435398, kde#200322, kde#145203)
* handle nullptr return of screenAt() (kde#439804)
* Expand tool view sidebars when they are collapsed (kde#439535)
* avoid that tool view split view collapse (kde#439535)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 2 21:33:36 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr> Tue Nov 2 21:33:36 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -17,15 +17,14 @@
%define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1) %define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1)
%define kf5_version 5.60.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) # 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}')} %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang %bcond_without lang
Name: kate Name: kate
Version: 21.08.3 Version: 21.12.0
Release: 0 Release: 0
Summary: Advanced Text Editor Summary: Advanced Text Editor
License: LGPL-2.0-only AND LGPL-2.1-or-later License: GPL-3.0-or-later
Group: Productivity/Text/Editors Group: Productivity/Text/Editors
URL: https://kate-editor.org URL: https://kate-editor.org
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz