diff options
author | seanc <seanc@FreeBSD.org> | 2003-02-20 09:14:12 +0800 |
---|---|---|
committer | seanc <seanc@FreeBSD.org> | 2003-02-20 09:14:12 +0800 |
commit | 8116a95e0e7039650b3056f9fd11dd6890132676 (patch) | |
tree | d5944383aeaa90a434c4dc2f7b23d531a47b22ca | |
parent | b627356b921aed98fa14c0bf12baf9bccf7f3ffd (diff) | |
download | freebsd-ports-gnome-8116a95e0e7039650b3056f9fd11dd6890132676.tar.gz freebsd-ports-gnome-8116a95e0e7039650b3056f9fd11dd6890132676.tar.zst freebsd-ports-gnome-8116a95e0e7039650b3056f9fd11dd6890132676.zip |
Add patch for a fix for braindead applications that were depending on
atoi('') (ex: RT and Horde). While I'm here, de-"pkg-comment"-ify. Port
revision bump.
Submitted by: Larry Rosenman <ler@lerctr.org>
Approved by: maintainer
39 files changed, 403 insertions, 13 deletions
diff --git a/databases/postgresql-devel-server/Makefile b/databases/postgresql-devel-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql-devel-server/Makefile +++ b/databases/postgresql-devel-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql-devel-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql-devel-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql-devel-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql-devel-server/pkg-comment b/databases/postgresql-devel-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql-devel-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql7/Makefile +++ b/databases/postgresql7/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql7/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql7/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql7/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql7/pkg-comment b/databases/postgresql7/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql7/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql73-server/Makefile b/databases/postgresql73-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql73-server/Makefile +++ b/databases/postgresql73-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql73-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql73-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql73-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql73-server/pkg-comment b/databases/postgresql73-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql73-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql73/Makefile b/databases/postgresql73/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql73/Makefile +++ b/databases/postgresql73/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql73/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql73/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql73/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql73/pkg-comment b/databases/postgresql73/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql73/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql74-server/Makefile b/databases/postgresql74-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql74-server/Makefile +++ b/databases/postgresql74-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql74-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql74-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql74-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql74-server/pkg-comment b/databases/postgresql74-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql74-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql80-server/Makefile b/databases/postgresql80-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql80-server/Makefile +++ b/databases/postgresql80-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql80-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql80-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql80-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql80-server/pkg-comment b/databases/postgresql80-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql80-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql81-server/Makefile b/databases/postgresql81-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql81-server/Makefile +++ b/databases/postgresql81-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql81-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql81-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql81-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql81-server/pkg-comment b/databases/postgresql81-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql81-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql82-server/Makefile b/databases/postgresql82-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql82-server/Makefile +++ b/databases/postgresql82-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql82-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql82-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql82-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql82-server/pkg-comment b/databases/postgresql82-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql82-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql83-server/Makefile b/databases/postgresql83-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql83-server/Makefile +++ b/databases/postgresql83-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql83-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql83-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql83-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql83-server/pkg-comment b/databases/postgresql83-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql83-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql84-server/Makefile b/databases/postgresql84-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql84-server/Makefile +++ b/databases/postgresql84-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql84-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql84-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql84-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql84-server/pkg-comment b/databases/postgresql84-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql84-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql90-server/Makefile +++ b/databases/postgresql90-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql90-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql90-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql90-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql90-server/pkg-comment b/databases/postgresql90-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql90-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql91-server/Makefile b/databases/postgresql91-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql91-server/Makefile +++ b/databases/postgresql91-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql91-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql91-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql91-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql91-server/pkg-comment b/databases/postgresql91-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql91-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile index 7e10dd3472d1..c204fbcacebe 100644 --- a/databases/postgresql92-server/Makefile +++ b/databases/postgresql92-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql PORTVERSION?= 7.3.2 +PORTREVISION= 1 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -28,6 +29,7 @@ DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER?= girgen@pingpong.net +COMMENT= The most advanced open-source database available anywhere WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} DIST_SUBDIR= postgresql diff --git a/databases/postgresql92-server/files/patch-src::backend::utils::adt::numutils.c b/databases/postgresql92-server/files/patch-src::backend::utils::adt::numutils.c new file mode 100644 index 000000000000..3a9c84d71961 --- /dev/null +++ b/databases/postgresql92-server/files/patch-src::backend::utils::adt::numutils.c @@ -0,0 +1,29 @@ +Index: src/backend/utils/adt/numutils.c +=================================================================== +RCS file: /cvsroot/pgsql-server/src/backend/utils/adt/numutils.c,v +retrieving revision 1.54 +diff -c -c -r1.54 numutils.c +*** src/backend/utils/adt/numutils.c 4 Sep 2002 20:31:28 -0000 1.54 +--- src/backend/utils/adt/numutils.c 19 Dec 2002 17:10:56 -0000 +*************** +*** 70,76 **** + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! elog(ERROR, "pg_atoi: zero-length string"); + else + l = strtol(s, &badp, 10); + +--- 70,80 ---- + if (s == (char *) NULL) + elog(ERROR, "pg_atoi: NULL pointer"); + else if (*s == 0) +! { +! /* 7.3.X workaround for broken apps, bjm 2002-12-19 */ +! elog(WARNING, "pg_atoi: zero-length string"); +! l = (long) 0; +! } + else + l = strtol(s, &badp, 10); + + diff --git a/databases/postgresql92-server/pkg-comment b/databases/postgresql92-server/pkg-comment deleted file mode 100644 index 2f1197a9821f..000000000000 --- a/databases/postgresql92-server/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -The most advanced open-source database available anywhere |