summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-Pg
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2005-01-08 10:42:27 +0000
committerMathieu Arnold <mat@FreeBSD.org>2005-01-08 10:42:27 +0000
commitdf329e9367463108a6fafb758236fc8f4aa37aac (patch)
tree19bc7685ac80f44c97f50cb85877233cb7d5e463 /databases/p5-DBD-Pg
parentIn FreeBSD correct path to pid file is /var/run, not ${PREFIX}/var/run. Bump (diff)
Add a fix for 64 bit arch
Submitted by: Rink Springer <rink@stack.nl>
Notes
Notes: svn path=/head/; revision=125761
Diffstat (limited to 'databases/p5-DBD-Pg')
-rw-r--r--databases/p5-DBD-Pg/Makefile1
-rw-r--r--databases/p5-DBD-Pg/files/patch-dbdimp.c14
-rw-r--r--databases/p5-DBD-Pg/files/patch-quote.c78
3 files changed, 93 insertions, 0 deletions
diff --git a/databases/p5-DBD-Pg/Makefile b/databases/p5-DBD-Pg/Makefile
index cbe0533a378f..5bb6ca8bc53a 100644
--- a/databases/p5-DBD-Pg/Makefile
+++ b/databases/p5-DBD-Pg/Makefile
@@ -7,6 +7,7 @@
PORTNAME= DBD-Pg
PORTVERSION= 1.32
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
diff --git a/databases/p5-DBD-Pg/files/patch-dbdimp.c b/databases/p5-DBD-Pg/files/patch-dbdimp.c
new file mode 100644
index 000000000000..5340bccafb01
--- /dev/null
+++ b/databases/p5-DBD-Pg/files/patch-dbdimp.c
@@ -0,0 +1,14 @@
+diff -ru dbdimp.c~ dbdimp.c
+--- dbdimp.c~ Sun Jan 2 20:01:43 2005
++++ dbdimp.c Sun Jan 2 20:06:16 2005
+@@ -986,7 +986,9 @@
+ int num_fields;
+ char *value;
+ char *p;
+- int i, pg_type, value_len, chopblanks, len;
++ int i, pg_type, chopblanks;
++ size_t value_len;
++ STRLEN len;
+ AV *av;
+ D_imp_dbh_from_sth;
+
diff --git a/databases/p5-DBD-Pg/files/patch-quote.c b/databases/p5-DBD-Pg/files/patch-quote.c
new file mode 100644
index 000000000000..9ce19c0a971c
--- /dev/null
+++ b/databases/p5-DBD-Pg/files/patch-quote.c
@@ -0,0 +1,78 @@
+diff -ru quote.c~ quote.c
+--- quote.c~ Sun Jan 2 20:01:43 2005
++++ quote.c Sun Jan 2 20:04:39 2005
+@@ -9,7 +9,7 @@
+ {
+ const char *source = from;
+ char *target = to;
+- unsigned int remaining = length;
++ unsigned size_t remaining = length;
+
+ while (remaining > 0)
+ {
+@@ -146,9 +146,9 @@
+ unsigned char *
+ PQunescapeBytea2(const unsigned char *strtext, size_t *retbuflen)
+ {
+- size_t strtextlen, buflen;
++ size_t strtextlen, buflen, i, j;
+ unsigned char *buffer, *tmpbuf;
+- int i, j, byte;
++ int byte;
+
+ if (strtext == NULL) {
+ return NULL;
+@@ -393,7 +393,7 @@
+ {
+ char *result;
+ char *dest;
+- int max_len = 0, i;
++ size_t max_len = 0, i;
+
+ /* We are going to retun a quote_bytea() for backwards compat but
+ we warn first */
+@@ -483,7 +483,7 @@
+ void
+ dequote_char(string, retlen)
+ char *string;
+- int *retlen;
++ size_t *retlen;
+ {
+ /* TODO: chop_blanks if requested */
+ *retlen = strlen(string);
+@@ -493,7 +493,7 @@
+ void
+ dequote_varchar (string, retlen)
+ char *string;
+- int *retlen;
++ size_t *retlen;
+ {
+ *retlen = strlen(string);
+ }
+@@ -503,7 +503,7 @@
+ void
+ dequote_bytea(string, retlen)
+ char *string;
+- int *retlen;
++ size_t *retlen;
+ {
+ char *s, *p;
+ int c1,c2,c3;
+@@ -542,7 +542,7 @@
+ void
+ dequote_sql_binary (string, retlen)
+ char *string;
+- int *retlen;
++ size_t *retlen;
+ {
+ /* We are going to retun a dequote_bytea(), JIC */
+ warn("Use of SQL_BINARY invalid in dequote()");
+@@ -556,7 +556,7 @@
+ void
+ dequote_bool (string, retlen)
+ char *string;
+- int *retlen;
++ size_t *retlen;
+ {
+ switch(*string){
+ case 'f': *string = '0'; break;