From ed86b547db5853b40825d3aae6ce073f253c7029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 21 Nov 2018 12:17:09 +0100 Subject: [PATCH] xsel: rebuild for metadata --- srcpkgs/xsel/patches/strncpy.patch | 13 +++++++++++++ srcpkgs/xsel/template | 10 +++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/xsel/patches/strncpy.patch diff --git a/srcpkgs/xsel/patches/strncpy.patch b/srcpkgs/xsel/patches/strncpy.patch new file mode 100644 index 00000000000..7c6f42a5d06 --- /dev/null +++ b/srcpkgs/xsel/patches/strncpy.patch @@ -0,0 +1,13 @@ +diff --git xsel.c xsel.c +index 79cc68b..556585e 100644 +--- xsel.c ++++ xsel.c +@@ -1983,7 +1983,7 @@ main(int argc, char *argv[]) + dont_output = True; + } else if (OPT("--logfile") || OPT("-l")) { + i++; if (i >= argc) goto usage_err; +- strncpy (logfile, argv[i], MAXFNAME); ++ strncpy (logfile, argv[i], MAXFNAME-1); + } else { + goto usage_err; + } diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template index 9a0b62070a1..edc001dba40 100644 --- a/srcpkgs/xsel/template +++ b/srcpkgs/xsel/template @@ -1,12 +1,12 @@ # Template file for 'xsel' pkgname=xsel version=1.2.0 -revision=3 -distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz" -checksum="b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c" +revision=4 build_style="gnu-configure" makedepends="libXt-devel" +short_desc="Command-line getting and setting the contents of the X selection" maintainer="Steven R " +license="custom" homepage="http://www.vergenet.net/~conrad/software/xsel/" -license="Custom" -short_desc="Command-line program for getting and setting the contents of the X selection" +distfiles="http://www.vergenet.net/~conrad/software/xsel/download/xsel-${version}.tar.gz" +checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c