[arch-commits] Commit in netwatch/trunk (PKGBUILD format-security.patch)
Antonio Rojas
arojas at gemini.archlinux.org
Fri Mar 11 21:01:52 UTC 2022
Date: Friday, March 11, 2022 @ 21:01:52
Author: arojas
Revision: 1148741
3E518BF2526FD1979E8AAE4965C110C1EA433FC7 key removal
Added:
netwatch/trunk/format-security.patch
Modified:
netwatch/trunk/PKGBUILD
-----------------------+
PKGBUILD | 10 +++++++---
format-security.patch | 21 +++++++++++++++++++++
2 files changed, 28 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-11 20:50:56 UTC (rev 1148740)
+++ PKGBUILD 2022-03-11 21:01:52 UTC (rev 1148741)
@@ -2,7 +2,7 @@
pkgname=netwatch
pkgver=1.3.1_2
-pkgrel=2
+pkgrel=3
pkgdesc="monitor network connections"
arch=(x86_64)
url="http://www.slctech.org/~mackay/NETWATCH/netwatch.html"
@@ -9,16 +9,20 @@
license=('GPL')
options=(zipman)
depends=(ncurses)
-source=(https://www.slctech.org/~mackay/NETWATCH/netwatch-${pkgver/_/-}.tgz)
-sha256sums=('9374fa55a41a4addd8897f1ff10a3453c840bf28534f500e8661a614231cc161')
+source=(https://www.slctech.org/~mackay/NETWATCH/netwatch-${pkgver/_/-}.tgz
+ format-security.patch)
+sha256sums=('9374fa55a41a4addd8897f1ff10a3453c840bf28534f500e8661a614231cc161'
+ 'cc7356f59127c16ed43f402cc588c59e8b017dceaacd5a5d9a10080b7b8eb59c')
prepare() {
cd "$srcdir/$pkgname-${pkgver/_/-}"
sed -i 's|${CC-cc} |${CC-cc} -O2 |g' configure
+ patch -p1 -i ../format-security.patch # Fix format-security warnings
}
build() {
cd "$srcdir/$pkgname-${pkgver/_/-}"
+ export CFLAGS+=" -fcommon" # Fix build with GCC 10m
./configure --prefix=/usr
make
}
Added: format-security.patch
===================================================================
--- format-security.patch (rev 0)
+++ format-security.patch 2022-03-11 21:01:52 UTC (rev 1148741)
@@ -0,0 +1,21 @@
+diff -ru netwatch-1.3.1-2.orig/dispdata.c netwatch-1.3.1-2/dispdata.c
+--- netwatch-1.3.1-2.orig/dispdata.c 2022-03-11 21:56:12.752986724 +0100
++++ netwatch-1.3.1-2/dispdata.c 2022-03-11 21:57:36.180151654 +0100
+@@ -1488,7 +1488,7 @@
+ fprintf (fpspeclog, "%s\n", ttt);
+ else
+ //!!mvprintw (yact, xleft, "%s",ttt);
+- mvprintw (yact, xleft, ttt);
++ mvprintw (yact, xleft, "%s", ttt);
+ attron (col4);
+ if (current->update)
+ {
+@@ -1736,7 +1736,7 @@
+ fprintf (fpspeclog, "%s\n", ttt);
+ else
+ //!!mvprintw (yact, xright,"%s", ttt);
+- mvprintw (yact, xright, ttt);
++ mvprintw (yact, xright, "%s", ttt);
+ attron (col4);
+ if (current->update)
+ {
More information about the arch-commits
mailing list