annotate src/gnuplot-1-fixes.patch @ 4443:6aa7dd77d82c

gnuplot: update to v5.0.6 * src/gnuplot-1-fixes.patch: update patch * src/gnuplot.mk: update version, checksum
author John D
date Wed, 09 Aug 2017 12:26:08 -0400
parents 16d2b997c31b
children c615db675618
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
1 diff -ur gnuplot-5.0.6.orig/config/mingw/Makefile gnuplot-5.0.6/config/mingw/Makefile
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
2 --- gnuplot-5.0.6.orig/config/mingw/Makefile 2017-08-03 15:33:24.088765021 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
3 +++ gnuplot-5.0.6/config/mingw/Makefile 2017-08-03 15:39:44.802747844 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
4 @@ -102,18 +102,19 @@
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
5 # Uncomment the following lines to compile it.
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
6 #WXT=1
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
7 #CAIROLIBS=1
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
8 +WX_CONFIG ?= wx-config
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
9
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
10 # Build qt terminal?
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
11 #QT = 1
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
12 # specify QT installation directory
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
13 #QT_DIR = /c/Qt/5.2.1/mingw48_32
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
14 ifndef MINGW64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
15 -QT_DIR = /d/Source/Qt-5.2.1-mingw/5.2.1/mingw48_32
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
16 +QT_DIR ?= /d/Source/Qt-5.2.1-mingw/5.2.1/mingw48_32
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
17 else
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
18 ifdef M32
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
19 -QT_DIR = /mingw32
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
20 +QT_DIR ?= /mingw32
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
21 else
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
22 -QT_DIR = /mingw64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
23 +QT_DIR ?= /mingw64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
24 endif
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
25 endif
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
26
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
27 @@ -131,7 +132,7 @@
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
28
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
29 # Uncomment if you have libcerf
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
30 # http://sourceforge.net/projects/libcerf/
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
31 -CERF=1
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
32 +#CERF=1
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
33
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
34 # Below you can adapt paths according to your software setup:
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
35
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
36 @@ -160,6 +161,7 @@
4191
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
37
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
38 # Do you want some special optimization / flags?
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
39 #CFLAGS +=
4191
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
40 +CFLAGS += -DDISABLE_SPACE_RAISES_CONSOLE
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
41 CWFLAGS += -Wno-unused-function
4191
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
42 ifdef CLANG
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
43 CFLAGS += -fcolor-diagnostics -fansi-escape-codes
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
44 @@ -177,8 +179,8 @@
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
45 # http://go.microsoft.com/fwlink/?LinkId=154968
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
46 # We need to explicitly set the correct path here since we also need
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
47 # adjust the include and library paths.
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
48 -HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 -HHC = $(HHWPATH)hhc
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
50 +#HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
51 +#HHC = $(HHWPATH)hhc
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
53 # Choose which resource compiler you want to use (GNU windres or MS rc):
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 GNU_RC = 1
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
55 @@ -194,7 +196,7 @@
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
56 # get it from: http://www.jrsoftware.org/isdl.php
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
57 # Use unicode version of Inno Setup Compiler but not Standard version
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
58 # because the setup file of gnuplot installer is now encoded utf-8 with BOM.
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
59 -ISCC = $(PROGRAMFILES32)/Inno\ Setup\ 5/iscc
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
60 +#ISCC = $(PROGRAMFILES32)/Inno\ Setup\ 5/iscc
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
61
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
62 # Directory that might contain extra files to be shipped with the installer.
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
63 # This should include dependencies like DLLs, but also fontconfig configuration files.
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
64 @@ -445,9 +447,9 @@
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
65
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
66 ifdef WXT
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
67 CFLAGS += -DWXWIDGETS
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
68 - WXT_CXXFLAGS := $(shell wx-config --cxxflags)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
69 + WXT_CXXFLAGS := $(shell $(WX_CONFIG) --cxxflags)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
70 CXXFLAGS += $(WXT_CXXFLAGS)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
71 - WX_LIBS := $(shell wx-config --libs | sed -e "s+-Wl,--subsystem,windows++g" -e "s+-mwindows++g")
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
72 + WX_LIBS := $(shell $(WX_CONFIG) --libs | sed -e "s+-Wl,--subsystem,windows++g" -e "s+-mwindows++g")
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
73 WX_OBJS = wxt_gui.$(O)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
74 endif
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
75
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
76 @@ -537,7 +539,7 @@
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
77 FULLVERSION := $(MAINVERSION) patchlevel $(PATCHLEVEL)
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
78
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
79
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
80 -default: $(TARGET) $(MENUFILE) support
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
81 +default: $(TARGET) $(MENUFILE) #support
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
82
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
83 console:
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
84 $(MAKE) TARGET=gnuplot.exe default
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
85 @@ -579,8 +581,8 @@
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
86 $(CC) -c $(CFLAGS) $(CFLAGSEXTRA) -MMD -MT '$*.$$(O)' -MF $*.d -o $@ $<
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
87
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
88 LDLIBS = -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lmsimg32 -lgdiplus
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
89 -LDLIBS += -lhtmlhelp
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
90 -LDFLAGS2 += -L$(HHWPATH)lib
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
91 +#LDLIBS += -lhtmlhelp
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
92 +#LDFLAGS2 += -L$(HHWPATH)lib
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
93 ifdef MINGW64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
94 LDFLAGS2 += -L.
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
95 endif
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
96 diff -ur gnuplot-5.0.6.orig/src/command.c gnuplot-5.0.6/src/command.c
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
97 --- gnuplot-5.0.6.orig/src/command.c 2017-08-03 15:33:24.065752872 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
98 +++ gnuplot-5.0.6/src/command.c 2017-08-03 15:41:32.160423062 -0400
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
99 @@ -125,7 +125,7 @@
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
100 # endif
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
101 #endif /* _Windows */
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
102
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
103 -#ifdef _Windows
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
104 +#ifdef IGNORE_Windows
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
105 # include <windows.h>
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
106 # ifdef __MSC__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
107 # include <malloc.h>
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
108 @@ -2543,6 +2543,7 @@
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
109 void
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
110 help_command()
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
111 {
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
112 +#ifndef __MINGW32__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
113 HWND parent;
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
114
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
115 c_token++;
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
116 @@ -2578,6 +2579,7 @@
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
117 link.fIndexOnFail = TRUE;
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
118 HtmlHelp(parent, winhelpname, HH_KEYWORD_LOOKUP, (DWORD_PTR)&link);
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
119 }
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
120 +#endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
121 }
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
122 #else /* !_Windows */
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
123 #ifndef VMS
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
124 diff -ur gnuplot-5.0.6.orig/src/internal.c gnuplot-5.0.6/src/internal.c
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
125 --- gnuplot-5.0.6.orig/src/internal.c 2017-08-03 15:33:24.074757626 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
126 +++ gnuplot-5.0.6/src/internal.c 2017-08-03 15:41:59.832031188 -0400
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
127 @@ -47,7 +47,7 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
128
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
129 #include <math.h>
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
130
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
131 -#ifndef _WIN64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
132 +#if !defined(__MINGW64_VERSION_MAJOR)
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
133 /*
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
134 * FIXME: This is almost certainly out of date on linux, since the matherr
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
135 * mechanism has been replaced by math_error() and supposedly is only
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
136 diff -ur gnuplot-5.0.6.orig/src/syscfg.h gnuplot-5.0.6/src/syscfg.h
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
137 --- gnuplot-5.0.6.orig/src/syscfg.h 2017-08-03 15:33:24.068754457 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
138 +++ gnuplot-5.0.6/src/syscfg.h 2017-08-03 15:44:56.806457805 -0400
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
139 @@ -345,7 +345,11 @@
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
140 #endif
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
141
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
142 #ifndef GP_MATHERR
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
143 -# define GP_MATHERR matherr
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
144 +# if __MINGW32__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
145 +# define GP_MATHERR _matherr
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
146 +#else
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
147 +# define GP_MATHERR matherr
4443
6aa7dd77d82c gnuplot: update to v5.0.6
John D
parents: 4343
diff changeset
148 +# endif
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
149 #endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
150
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
151 #ifdef HAVE_STRUCT_EXCEPTION_IN_MATH_H