aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-11-25 16:24:50 +0800
committervs <vs@FreeBSD.org>2005-11-25 16:24:50 +0800
commitcfb742deb5575e791612ef599509827a6e959bb7 (patch)
tree943e0c7542f50d78257b6631e6ad51611e846d53
parent24ad7937c8eddefc5a428eef4982a80a7b355e60 (diff)
downloadfreebsd-ports-gnome-cfb742deb5575e791612ef599509827a6e959bb7.tar.gz
freebsd-ports-gnome-cfb742deb5575e791612ef599509827a6e959bb7.tar.zst
freebsd-ports-gnome-cfb742deb5575e791612ef599509827a6e959bb7.zip
Fix crashes with large lines in INDEX
PR: ports/89513 Submitted by: maintainer
-rw-r--r--ports-mgmt/bpm/Makefile3
-rw-r--r--ports-mgmt/bpm/files/patch-src::refresh.c10
-rw-r--r--sysutils/bpm/Makefile3
-rw-r--r--sysutils/bpm/files/patch-src::refresh.c10
4 files changed, 16 insertions, 10 deletions
diff --git a/ports-mgmt/bpm/Makefile b/ports-mgmt/bpm/Makefile
index ae81e6f90783..e1fe77bca462 100644
--- a/ports-mgmt/bpm/Makefile
+++ b/ports-mgmt/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/ports-mgmt/bpm/files/patch-src::refresh.c b/ports-mgmt/bpm/files/patch-src::refresh.c
index d5a05c3de215..619e8f024972 100644
--- a/ports-mgmt/bpm/files/patch-src::refresh.c
+++ b/ports-mgmt/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;
diff --git a/sysutils/bpm/Makefile b/sysutils/bpm/Makefile
index ae81e6f90783..e1fe77bca462 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 d5a05c3de215..619e8f024972 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;