summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorrhialto <rhialto@pkgsrc.org>2019-11-16 22:22:45 +0000
committerrhialto <rhialto@pkgsrc.org>2019-11-16 22:22:45 +0000
commitd248ab327d8df987bdaa3c0b8078d0a41597735f (patch)
tree68761a9838667714c37bf28779869ed800f83528 /converters
parent3e074ca563b64c54cd2fb2bb6f8815b60af668f9 (diff)
downloadpkgsrc-d248ab327d8df987bdaa3c0b8078d0a41597735f.tar.gz
Add a patch to fix reading header lines from 511 to 1023 chars.
Diffstat (limited to 'converters')
-rw-r--r--converters/uulib/Makefile4
-rw-r--r--converters/uulib/distinfo3
-rw-r--r--converters/uulib/patches/patch-uulib_uulib.c20
3 files changed, 24 insertions, 3 deletions
diff --git a/converters/uulib/Makefile b/converters/uulib/Makefile
index aa4cdb38e9d..30708b61440 100644
--- a/converters/uulib/Makefile
+++ b/converters/uulib/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.45 2012/10/03 00:20:18 asau Exp $
+# $NetBSD: Makefile,v 1.46 2019/11/16 22:22:45 rhialto Exp $
#
DISTNAME= uudeview-0.5.20
PKGNAME= uulib-0.5.20
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= converters
MASTER_SITES= http://www.fpx.de/fp/Software/UUDeview/download/
diff --git a/converters/uulib/distinfo b/converters/uulib/distinfo
index 4b3d8bc69c3..14c6651b8e7 100644
--- a/converters/uulib/distinfo
+++ b/converters/uulib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2017/07/07 11:19:44 wiz Exp $
+$NetBSD: distinfo,v 1.15 2019/11/16 22:22:45 rhialto Exp $
SHA1 (uudeview-0.5.20.tar.gz) = 2c6ab7d355b545218bd0877d598bd5327d9fd125
RMD160 (uudeview-0.5.20.tar.gz) = 9bb52fa3ad4979383ff16d1e8d8a302c5c794c66
@@ -7,3 +7,4 @@ Size (uudeview-0.5.20.tar.gz) = 261574 bytes
SHA1 (patch-aa) = 2f495c982bb8a96ffd60f1bcd4ce65e6c226083c
SHA1 (patch-ab) = f23ca7945a0697dc8e49ba9c7765bfa655ed8566
SHA1 (patch-ac) = e167fedf6ca5933d027407715c4275d60d1ee795
+SHA1 (patch-uulib_uulib.c) = fcfc3b3450f49a58b827553c8588abf09dfb2310
diff --git a/converters/uulib/patches/patch-uulib_uulib.c b/converters/uulib/patches/patch-uulib_uulib.c
new file mode 100644
index 00000000000..2fa58a8cb8d
--- /dev/null
+++ b/converters/uulib/patches/patch-uulib_uulib.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-uulib_uulib.c,v 1.1 2019/11/16 22:22:45 rhialto Exp $
+
+Use the full length of the buffer to read (potentially long)
+header lines. Patch taken from "nget+uulib v0.27.1 tarball"
+at http://nget.sourceforge.net/.
+
+--- uulib/uulib.c.orig 2003-09-29 23:27:47.000000000 +0000
++++ uulib/uulib.c
+@@ -1103,9 +1103,9 @@ UUInfoFile (uulist *thefile, void *opaqu
+
+ while (!feof (inpfile) &&
+ (uu_fast_scanning || ftell(inpfile) < maxpos)) {
+- if (_FP_fgets (uugen_inbuffer, 511, inpfile) == NULL)
++ if (_FP_fgets (uugen_inbuffer, 1023, inpfile) == NULL)
+ break;
+- uugen_inbuffer[511] = '\0';
++ uugen_inbuffer[1023] = '\0';
+
+ if (ferror (inpfile))
+ break;