comparison src/of-database-1-cross-fixes.patch @ 4109:07a298959dc3

of-database: update to 2.4.1 * of-database-1-cross-fixes.patch: update cross compile patch * src/of-database.mk: update version, checksum
author John Donoghue <john.donoghue@ieee.org>
date Sun, 20 Mar 2016 07:28:02 -0400
parents b42e8f913ddc
children 9ded338051db
comparison
equal deleted inserted replaced
4108:6a33c32796b2 4109:07a298959dc3
1 diff -ur database-2.3.1.orig/src/configure database-2.3.1/src/configure 1 # HG changeset patch
2 --- database-2.3.1.orig/src/configure 2015-04-09 14:43:58.349514050 -0400 2 # User John Donoghue <john.donoghue@ieee.org>
3 +++ database-2.3.1/src/configure 2015-04-09 14:55:44.447432890 -0400 3 # Date 1458419460 14400
4 @@ -591,6 +591,7 @@ 4 # Sat Mar 19 16:31:00 2016 -0400
5 CFLAGS 5 # Node ID ff3a96a08ec915983ef9a1c189404578b00d2db4
6 CC 6 # Parent 8e13dd6c295b004fb3e8df97b4ef6438b61bcf19
7 PG_CONFIG 7 Check mingw hosttype via octave config (Bug #44795)
8 +OCTAVE_CONFIG 8
9 MKOCTFILE 9 * src/Makefile.in: get CANONICAL_HOST_TYPE from octave-config to check target OS for using ws2_32
10 OCTAVE 10
11 OBJEXT 11 diff -r 8e13dd6c295b -r ff3a96a08ec9 src/Makefile.in
12 @@ -2407,6 +2408,43 @@ 12 --- a/src/Makefile.in Sat Mar 19 08:20:47 2016 +0100
13 else 13 +++ b/src/Makefile.in Sat Mar 19 16:31:00 2016 -0400
14 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14 @@ -17,9 +17,12 @@
15 $as_echo "no" >&6; } 15
16 +fi 16 MKOCTFILE ?= @MKOCTFILE@
17 PG_CONFIG ?= @PG_CONFIG@
18 +OCTAVE_CONFIG ?= @OCTAVE_CONFIG@
17 + 19 +
18 + 20 +CANONICAL_HOST_TYPE := $(shell $(OCTAVE_CONFIG) -p CANONICAL_HOST_TYPE))
19 +# Extract the first word of "octave-config", so it can be a program name with args.
20 +set dummy octave-config; ac_word=$2
21 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22 +$as_echo_n "checking for $ac_word... " >&6; }
23 +if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
24 + $as_echo_n "(cached) " >&6
25 +else
26 + if test -n "$OCTAVE_CONFIG"; then
27 + ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
28 +else
29 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30 +for as_dir in $PATH
31 +do
32 + IFS=$as_save_IFS
33 + test -z "$as_dir" && as_dir=.
34 + for ac_exec_ext in '' $ac_executable_extensions; do
35 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36 + ac_cv_prog_OCTAVE_CONFIG="octave-config"
37 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38 + break 2
39 + fi
40 +done
41 + done
42 +IFS=$as_save_IFS
43 +
44 +fi
45 +fi
46 +OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
47 +if test -n "$OCTAVE_CONFIG"; then
48 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
49 +$as_echo "$OCTAVE_CONFIG" >&6; }
50 +else
51 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52 +$as_echo "no" >&6; }
53 fi
54 21
55
56 diff -ur database-2.3.1.orig/src/configure.ac database-2.3.1/src/configure.ac
57 --- database-2.3.1.orig/src/configure.ac 2015-04-09 14:43:58.346513991 -0400
58 +++ database-2.3.1/src/configure.ac 2015-04-09 14:49:01.101482292 -0400
59 @@ -13,6 +13,7 @@
60
61 AC_CHECK_PROG(OCTAVE, octave, octave)
62 AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile)
63 +AC_CHECK_PROG(OCTAVE_CONFIG, octave-config, octave-config)
64 AC_CHECK_PROG(PG_CONFIG, pg_config, pg_config)
65 if test -z "$PG_CONFIG"; then
66 AC_MSG_ERROR([pg_config not found], 1);
67 diff -ur database-2.3.1.orig/src/Makefile.in database-2.3.1/src/Makefile.in
68 --- database-2.3.1.orig/src/Makefile.in 2015-04-09 14:43:58.348514031 -0400
69 +++ database-2.3.1/src/Makefile.in 2015-04-09 14:51:59.623001539 -0400
70 @@ -1,8 +1,10 @@
71 # We rely on g++ features, configure assures CXX=g++.
72 CXX := @CXX@
73
74 +CANONICAL_HOST_TYPE := $(shell $(OCTAVE_CONFIG) -p CANONICAL_HOST_TYPE))
75 +
76 EXTRALIBS = 22 EXTRALIBS =
77 -ifeq ($(OS),Windows_NT) 23 -ifeq ($(OS),Windows_NT)
78 +ifneq (,$(findstring mingw,$(CANONICAL_HOST_TYPE))) 24 +ifneq (,$(findstring mingw,$(CANONICAL_HOST_TYPE)))
79 EXTRALIBS = -lws2_32 25 EXTRALIBS = -lws2_32
80 endif 26 endif