Date: Tuesday, February 7, 2023 @ 23:23:34
  Author: anthraxx
Revision: 468350

upgpkg: less 1:608-2: fix CVE-2022-46663

Modified:
  less/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-07 23:09:05 UTC (rev 468349)
+++ PKGBUILD    2023-02-07 23:23:34 UTC (rev 468350)
@@ -4,7 +4,7 @@
 
 pkgname=less
 pkgver=608
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc='A terminal based program for viewing text files'
 license=('GPL3')
@@ -13,10 +13,17 @@
 depends=('glibc' 'ncurses' 'pcre2')
 validpgpkeys=('AE27252BD6846E7D6EAE1DD6F153A7C833235259') # Mark Nudelman
 source=("https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz";
-        
"$pkgname-$pkgver.tar.gz.sig::https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig";)
+        
"$pkgname-$pkgver.tar.gz.sig::https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig";
+        
less-CVE-2022-46663.patch::https://github.com/gwsw/less/commit/a78e1351113cef564d790a730d657a321624d79c.patch)
 sha256sums=('a69abe2e0a126777e021d3b73aa3222e1b261f10e64624d41ec079685a6ac209'
-            'SKIP')
+            'SKIP'
+            '3862ce1d6ee0aacefe75274f04afc00a38474d4cf2f6be96feb6aaa226c9bd98')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 < ../less-CVE-2022-46663.patch
+}
+
 build() {
   cd $pkgname-$pkgver
   sh configure --prefix=/usr --sysconfdir=/etc --with-regex=pcre2

Reply via email to