git » ktexteditor.git » commit 2977d5d

upgpkg: 5.248.0-2: Fix privilege escalation

author Antonio Rojas
2024-01-25 17:25:12 UTC
committer Antonio Rojas
2024-01-25 17:25:12 UTC
parent b687512ecb3c0d31e2764a4451f3699270c12edf

upgpkg: 5.248.0-2: Fix privilege escalation

.SRCINFO +5 -2
PKGBUILD +9 -3

diff --git a/.SRCINFO b/.SRCINFO
index e0b7ad9..41fc260 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
 pkgbase = ktexteditor
 	pkgdesc = Advanced embeddable text editor
 	pkgver = 5.248.0
-	pkgrel = 1
+	pkgrel = 2
 	url = https://community.kde.org/Frameworks
 	arch = x86_64
 	groups = kf6
-	license = LGPL
+	license = LGPL-2.0-only
+	license = LGPL-3.0-only
 	makedepends = doxygen
 	makedepends = extra-cmake-modules
 	makedepends = qt6-doc
@@ -37,9 +38,11 @@ pkgbase = ktexteditor
 	optdepends = git: git integration
 	source = https://download.kde.org/unstable/frameworks/5.248.0/ktexteditor-5.248.0.tar.xz
 	source = https://download.kde.org/unstable/frameworks/5.248.0/ktexteditor-5.248.0.tar.xz.sig
+	source = https://invent.kde.org/frameworks/ktexteditor/-/commit/7c36fe9a.patch
 	validpgpkeys = 53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB
 	validpgpkeys = E0A3EB202F8E57528E13E72FD7574483BB57B18D
 	sha256sums = b6dc2203148b3cc20c335c23722d320a24e72128e99d93dab8d303baaa182ffa
 	sha256sums = SKIP
+	sha256sums = 4e8e0d77c08f9060554285ca62efa64c07940ca2dc6c0e1110b004eec44466bf
 
 pkgname = ktexteditor
diff --git a/PKGBUILD b/PKGBUILD
index 2f124d6..6fdffe3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=ktexteditor
 pkgver=5.248.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Advanced embeddable text editor'
 arch=(x86_64)
 url='https://community.kde.org/Frameworks'
@@ -39,12 +39,18 @@ makedepends=(doxygen
              qt6-tools)
 optdepends=('git: git integration')
 groups=(kf6)
-source=(https://download.kde.org/unstable/frameworks/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/unstable/frameworks/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
+        https://invent.kde.org/frameworks/ktexteditor/-/commit/7c36fe9a.patch)
 sha256sums=('b6dc2203148b3cc20c335c23722d320a24e72128e99d93dab8d303baaa182ffa'
-            'SKIP')
+            'SKIP'
+            '4e8e0d77c08f9060554285ca62efa64c07940ca2dc6c0e1110b004eec44466bf')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB  # David Faure <faure@kde.org>
               E0A3EB202F8E57528E13E72FD7574483BB57B18D) # Jonathan Esk-Riddell <jr@jriddell.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < 7c36fe9a.patch # Fix escalating privileges
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DBUILD_TESTING=OFF \