pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/slony1 Fix building on systems where alloca....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e1a32aab31a1
branches:  trunk
changeset: 358981:e1a32aab31a1
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Feb 24 22:07:34 2017 +0000

description:
Fix building on systems where alloca.h does not exists, like NetBSD.

diffstat:

 databases/slony1/distinfo                           |   8 ++++--
 databases/slony1/patches/patch-aa                   |  12 ----------
 databases/slony1/patches/patch-ab                   |  13 -----------
 databases/slony1/patches/patch-config.h.in          |  13 +++++++++++
 databases/slony1/patches/patch-configure            |  24 +++++++++++++++++++++
 databases/slony1/patches/patch-src_slonik_slonik.c  |  24 +++++++++++++++++++++
 databases/slony1/patches/patch-tools_start__slon.sh |  15 +++++++++++++
 7 files changed, 81 insertions(+), 28 deletions(-)

diffs (142 lines):

diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/distinfo
--- a/databases/slony1/distinfo Fri Feb 24 21:54:51 2017 +0000
+++ b/databases/slony1/distinfo Fri Feb 24 22:07:34 2017 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.18 2017/01/01 15:17:03 adam Exp $
+$NetBSD: distinfo,v 1.19 2017/02/24 22:07:34 adam Exp $
 
 SHA1 (slony1-2.2.5.tar.bz2) = 2d44227509f94b93e2f26261fabc5481a367b862
 RMD160 (slony1-2.2.5.tar.bz2) = 0a36003db4fcd4faa21054eb8e02d8771152d588
 SHA512 (slony1-2.2.5.tar.bz2) = 06c5d8c136b1560aa6a3b1b7bfbad09fb6bbff7e3c530ceaf0279d4564dd1518c69647368deac9eb19ea5059a2d78fef26f62bd34315f5f3415ca0f5cb0992aa
 Size (slony1-2.2.5.tar.bz2) = 1466439 bytes
-SHA1 (patch-aa) = 4d384c712e1ba42564eb13ef6a3d08b7360e2298
-SHA1 (patch-ab) = 8937bed61506b48fb15ba76ea30dcd06aa6bd760
+SHA1 (patch-config.h.in) = 7348475c942c06d8d668f8b1a5d4fc4a03189017
+SHA1 (patch-configure) = 67eba0a1a45ef1f68a5a62627deb9e68f967b012
+SHA1 (patch-src_slonik_slonik.c) = 301e6a401b9f0158e3c6f471d294dbd910f8897b
+SHA1 (patch-tools_start__slon.sh) = 449e381de530cd9485e48e780cab0990d9fef6f4
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-aa
--- a/databases/slony1/patches/patch-aa Fri Feb 24 21:54:51 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-aa,v 1.6 2011/11/26 11:49:51 adam Exp $
-
---- configure.orig     2009-05-08 22:10:34.000000000 +0000
-+++ configure
-@@ -2010,6 +2010,7 @@ case $host_os in
-   darwin*) template=darwin ;;
-     dgux*) template=dgux ;;
-  freebsd*) template=freebsd ;;
-+ dragonfly*) template=dragonfly ;;
-     hpux*) template=hpux ;;
-     irix*) template=irix ;;
-    linux*|gnu*|k*bsd*-gnu)
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-ab
--- a/databases/slony1/patches/patch-ab Fri Feb 24 21:54:51 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2011/11/26 11:49:51 adam Exp $
-
---- tools/start_slon.sh.orig   2011-10-11 20:20:52.000000000 +0000
-+++ tools/start_slon.sh
-@@ -16,7 +16,7 @@ test -r "$SLON_CONF" || (echo "No slon c
- 
- PID_LINE=`grep pid_file $SLON_CONF | cut -d "#" -f 1 | grep "^[[:space:]]*pid_file='.*'"`
- PID_FILE=`echo $PID_LINE | cut -d "=" -f 2 | cut -d "'" -f 2`
--if [ "x$PID_FILE" == "x" ]; then
-+if [ "x$PID_FILE" = "x" ]; then
-     echo "pid_file not found in slon conf file - $SLON_CONF"
-     exit 1
- else
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-config.h.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/slony1/patches/patch-config.h.in        Fri Feb 24 22:07:34 2017 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-config.h.in,v 1.1 2017/02/24 22:07:34 adam Exp $
+
+Define HAVE_ALLOCA_H.
+
+--- config.h.in.orig   2017-02-24 21:58:27.000000000 +0000
++++ config.h.in
+@@ -79,4 +79,6 @@
+ 
+ #undef HAS_LOOKUPEXPLICITNAMESPACE_2
+ 
++#undef HAVE_ALLOCA_H
++
+ #endif /* SLONY_I_CONFIG_H */
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/slony1/patches/patch-configure  Fri Feb 24 22:07:34 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure,v 1.1 2017/02/24 22:07:34 adam Exp $
+
+Add DragonFly support.
+Detect presence of alloca.h.
+
+--- configure.orig     2016-05-31 01:56:39.000000000 +0000
++++ configure
+@@ -2409,6 +2409,7 @@ case $host_os in
+   darwin*) template=darwin ;;
+     dgux*) template=dgux ;;
+  freebsd*) template=freebsd ;;
++ dragonfly*) template=dragonfly ;;
+     hpux*) template=hpux ;;
+     irix*) template=irix ;;
+    linux*|gnu*|k*bsd*-gnu)
+@@ -4311,7 +4312,7 @@ fi
+ 
+ # On IRIX 5.3, sys/types and inttypes.h are conflicting.
+ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+-                inttypes.h stdint.h unistd.h
++                inttypes.h stdint.h unistd.h alloca.h
+ do :
+   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-src_slonik_slonik.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/slony1/patches/patch-src_slonik_slonik.c        Fri Feb 24 22:07:34 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_slonik_slonik.c,v 1.1 2017/02/24 22:07:34 adam Exp $
+
+Include alloca.h only when it has been detected.
+
+--- src/slonik/slonik.c.orig   2017-02-24 21:59:57.000000000 +0000
++++ src/slonik/slonik.c
+@@ -22,7 +22,6 @@
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+-#include <alloca.h>
+ #else
+ #include <winsock2.h>
+ #include <windows.h>
+@@ -44,6 +43,9 @@
+ #include "../parsestatements/scanner.h"
+ extern int    STMTS[MAXSTATEMENTS];
+ 
++#ifdef HAVE_ALLOCA_H
++#include <alloca.h>
++#endif
+ 
+ #ifdef HAVE_PGPORT
+ #undef USE_REPL_SNPRINTF
diff -r 20ec5424de99 -r e1a32aab31a1 databases/slony1/patches/patch-tools_start__slon.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/slony1/patches/patch-tools_start__slon.sh       Fri Feb 24 22:07:34 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-tools_start__slon.sh,v 1.1 2017/02/24 22:07:34 adam Exp $
+
+Portability fix.
+
+--- tools/start_slon.sh.orig   2011-10-11 20:20:52.000000000 +0000
++++ tools/start_slon.sh
+@@ -16,7 +16,7 @@ test -r "$SLON_CONF" || (echo "No slon c
+ 
+ PID_LINE=`grep pid_file $SLON_CONF | cut -d "#" -f 1 | grep "^[[:space:]]*pid_file='.*'"`
+ PID_FILE=`echo $PID_LINE | cut -d "=" -f 2 | cut -d "'" -f 2`
+-if [ "x$PID_FILE" == "x" ]; then
++if [ "x$PID_FILE" = "x" ]; then
+     echo "pid_file not found in slon conf file - $SLON_CONF"
+     exit 1
+ else



Home | Main Index | Thread Index | Old Index