summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-11-25 08:24:50 +0000
committervs <vs@FreeBSD.org>2005-11-25 08:24:50 +0000
commitcfb742deb5575e791612ef599509827a6e959bb7 (patch)
tree943e0c7542f50d78257b6631e6ad51611e846d53 /sysutils
parent24ad7937c8eddefc5a428eef4982a80a7b355e60 (diff)
downloadFreeBSD-ports-cfb742deb5575e791612ef599509827a6e959bb7.zip
FreeBSD-ports-cfb742deb5575e791612ef599509827a6e959bb7.tar.gz
Fix crashes with large lines in INDEX
PR: ports/89513 Submitted by: maintainer
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bpm/Makefile3
-rw-r--r--sysutils/bpm/files/patch-src::refresh.c10
2 files changed, 8 insertions, 5 deletions
diff --git a/sysutils/bpm/Makefile b/sysutils/bpm/Makefile
index ae81e6f..e1fe77b 100644
--- a/sysutils/bpm/Makefile
+++ b/sysutils/bpm/Makefile
@@ -7,10 +7,11 @@
PORTNAME= bpm
PORTVERSION= 0.4.1b
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= http://www.meowfishies.com/code/bpm/
EXTRACT_SUFX= .tgz
+
MAINTAINER= sethk@meowfishies.com
COMMENT= A graphical BSD ports collection manager
diff --git a/sysutils/bpm/files/patch-src::refresh.c b/sysutils/bpm/files/patch-src::refresh.c
index d5a05c3..619e8f0 100644
--- a/sysutils/bpm/files/patch-src::refresh.c
+++ b/sysutils/bpm/files/patch-src::refresh.c
@@ -1,6 +1,6 @@
---- src/refresh.c.orig Mon Aug 23 22:40:08 2004
-+++ src/refresh.c Fri Dec 10 08:58:03 2004
-@@ -62,7 +62,13 @@
+--- src/refresh.c.orig Mon Aug 23 19:40:08 2004
++++ src/refresh.c Thu Nov 24 15:11:48 2005
+@@ -62,8 +62,14 @@
__RCSID("$Id: refresh.c,v 1.32 2004/08/24 02:40:08 sethk Exp $");
/* XXX use libinstall/lib.h */
@@ -10,10 +10,12 @@
+#define INDEX_FN PORTS_BASE "/INDEX-5"
+#else
#define INDEX_FN PORTS_BASE "/INDEX"
+-#define INDEX_MAXLN 4096
+#endif
- #define INDEX_MAXLN 4096
++#define INDEX_MAXLN 8192
#define DB_DIR "/var/db/pkg"
#define ITER_BYTES (128 * 1024)
+ #define ITER_ENTS 32
@@ -183,10 +189,12 @@
if (*sp == '|')
++i;
OpenPOWER on IntegriCloud