pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/postgresql93 Fix build under NetBSD 7.99.4 w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/947c8f9bf1b8
branches:  trunk
changeset: 644987:947c8f9bf1b8
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Jan 20 13:16:02 2015 +0000

description:
Fix build under NetBSD 7.99.4 with strtoi(3). Workaround.

diffstat:

 databases/postgresql93/distinfo                                                |   4 ++-
 databases/postgresql93/patches/patch-src_backend_utils_adt_datetime.c          |  14 +++++++++
 databases/postgresql93/patches/patch-src_interfaces_ecpg_pgtypeslib_interval.c |  15 ++++++++++
 3 files changed, 32 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r c741e3b41ef1 -r 947c8f9bf1b8 databases/postgresql93/distinfo
--- a/databases/postgresql93/distinfo   Tue Jan 20 12:19:33 2015 +0000
+++ b/databases/postgresql93/distinfo   Tue Jan 20 13:16:02 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2014/07/25 22:14:56 adam Exp $
+$NetBSD: distinfo,v 1.9 2015/01/20 13:16:02 ryoon Exp $
 
 SHA1 (postgresql-9.3.5.tar.bz2) = e011da16cb8a99c5ce6204898ddb898a8b3fbca4
 RMD160 (postgresql-9.3.5.tar.bz2) = 5ccbe27e602acfe99956bf837c7f2bcdb5b87ba0
@@ -11,6 +11,8 @@
 SHA1 (patch-src_Makefile.global.in) = 53e29e000d7fb71e2625aacd32324e9d7001b5b2
 SHA1 (patch-src_Makefile.shlib) = 69f980184fd8dbd821221a1c6ac3a88408f2c4cf
 SHA1 (patch-src_backend_Makefile) = deba6bc07ba2e4b8ef8f04f20efb2bdd54cb917e
+SHA1 (patch-src_backend_utils_adt_datetime.c) = cb404b369b39f7e55765a490f8448b870f237511
+SHA1 (patch-src_interfaces_ecpg_pgtypeslib_interval.c) = 606aeea232784ae07f4051ff93b6e352da2178b7
 SHA1 (patch-src_interfaces_libpq_Makefile) = 0066301bc8b31b9e26c79153427537bc3865ef4d
 SHA1 (patch-src_makefiles_Makefile.solaris) = 0168f5bc105ffc89d5db40907a08966d8465f5a0
 SHA1 (patch-src_pl_plperl_GNUmakefile) = 6ee3e431f46ce5c2a94df499504b2b8bd458bbef
diff -r c741e3b41ef1 -r 947c8f9bf1b8 databases/postgresql93/patches/patch-src_backend_utils_adt_datetime.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql93/patches/patch-src_backend_utils_adt_datetime.c     Tue Jan 20 13:16:02 2015 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_backend_utils_adt_datetime.c,v 1.1 2015/01/20 13:16:02 ryoon Exp $
+
+--- src/backend/utils/adt/datetime.c.orig      2014-07-21 19:10:42.000000000 +0000
++++ src/backend/utils/adt/datetime.c
+@@ -31,6 +31,9 @@
+ #include "utils/memutils.h"
+ #include "utils/tzparser.h"
+ 
++#if defined(__NetBSD__)
++#define strtoi pg_strtoi
++#endif
+ 
+ static int DecodeNumber(int flen, char *field, bool haveTextMonth,
+                        int fmask, int *tmask,
diff -r c741e3b41ef1 -r 947c8f9bf1b8 databases/postgresql93/patches/patch-src_interfaces_ecpg_pgtypeslib_interval.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql93/patches/patch-src_interfaces_ecpg_pgtypeslib_interval.c    Tue Jan 20 13:16:02 2015 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_interfaces_ecpg_pgtypeslib_interval.c,v 1.1 2015/01/20 13:16:02 ryoon Exp $
+
+--- src/interfaces/ecpg/pgtypeslib/interval.c.orig     2014-07-21 19:10:42.000000000 +0000
++++ src/interfaces/ecpg/pgtypeslib/interval.c
+@@ -14,6 +14,10 @@
+ #include "pgtypes_error.h"
+ #include "pgtypes_interval.h"
+ 
++#if defined(__NetBSD__)
++#define strtoi pg_strtoi
++#endif
++
+ /* copy&pasted from .../src/backend/utils/adt/datetime.c */
+ static int
+ strtoi(const char *nptr, char **endptr, int base)



Home | Main Index | Thread Index | Old Index