annotate src/gnuplot-1-fixes.patch @ 4343:16d2b997c31b

gnuplot: update t 5.0.5 * src/gnuplot-1-fixes.patch: update patch * src/gnuplot.mk: update version, checksum
author John D
date Fri, 20 Jan 2017 12:15:15 -0500
parents 8f864b4ea93b
children 6aa7dd77d82c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
1 diff -ur gnuplot-5.0.5.orig/config/mingw/Makefile gnuplot-5.0.5/config/mingw/Makefile
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
2 --- gnuplot-5.0.5.orig/config/mingw/Makefile 2017-01-20 12:00:04.522364256 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
3 +++ gnuplot-5.0.5/config/mingw/Makefile 2017-01-20 12:10:38.856621795 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
4 @@ -101,15 +101,16 @@
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
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
18 -QT_DIR = /mingw64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
19 +QT_DIR ?= /mingw64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
20 endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
21
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
22 # Uncomment the following line to select the lua/tikz terminal
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
23 @@ -119,14 +120,14 @@
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
24 # Requires libcaca version 0.99.beta15 or newer. A post-beta18
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
25 # svn version is recommended since it contains an improved
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
26 # win32 backend.
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
27 -CACA=1
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
28 +#CACA=1
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
30 # Uncomment if you have libiconv
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
31 ICONV=1
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
32
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
33 # Uncomment if you have libcerf
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
34 # http://sourceforge.net/projects/libcerf/
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
35 -CERF=1
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
36 +#CERF=1
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
37
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
38 # Below you can adapt paths according to your software setup:
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
39
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
40 @@ -155,7 +156,7 @@
4191
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
41 DESTDIR = "$(PROGRAMFILES)/gnuplot"
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
42
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
43 # Do you want some special optimization / flags?
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
44 -#CFLAGS +=
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
45 +CFLAGS += -DDISABLE_SPACE_RAISES_CONSOLE
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
46 ifdef CLANG
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
47 CFLAGS += -fcolor-diagnostics -fansi-escape-codes
851b9f4a6b1c Disable space raise console gnuplot for windows (bug #48696)
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 4177
diff changeset
48 CFLAGS += -Wno-error=incompatible-ms-struct -Wno-ignored-attributes
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
49 @@ -171,8 +172,8 @@
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
50 # 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
51 # 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
52 # adjust the include and library paths.
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
53 -HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 -HHC = $(HHWPATH)hhc
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
55 +#HHWPATH = $(PROGRAMFILES32)/HTML\ Help\ Workshop/
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
56 +#HHC = $(HHWPATH)hhc
2891
848118c648ae Include gnuplot as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57
3945
a397ccee4b57 Bump up gnuplot version to 4.6.7
Tatsuro Matsuoka <tmacchant@yahoo.co.jp>
parents: 3281
diff changeset
58 # 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
59 GNU_RC = 1
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
60 @@ -186,7 +187,7 @@
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 # Inno Setup Compiler
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
63 # get it from: http://www.jrsoftware.org/isdl.php
4177
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
64 -ISCC = $(PROGRAMFILES32)/Inno\ Setup\ 5/iscc
16b2ee1a1b5d gnuplot: update for 5.0.4
"lostbard" <john.donoghue@ieee.org>
parents: 4151
diff changeset
65 +#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
66
4151
717e989767e3 gnuplot: update to 5.0.3
John Donoghue
parents: 3945
diff changeset
67 # 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
68 # This should include dependencies like DLLs, but also fontconfig configuration files.
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
69 @@ -422,9 +423,9 @@
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
70
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
71 ifdef WXT
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
72 CFLAGS += -DWXWIDGETS
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
73 - WXT_CXXFLAGS := $(shell wx-config --cxxflags)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
74 + WXT_CXXFLAGS := $(shell $(WX_CONFIG) --cxxflags)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
75 CXXFLAGS += $(WXT_CXXFLAGS)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
76 - 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
77 + 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
78 WX_OBJS = wxt_gui.$(O)
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
79 endif
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
80
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
81 @@ -514,7 +515,7 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
82 FULLVERSION := $(MAINVERSION) patchlevel $(PATCHLEVEL)
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
83
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
84
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
85 -default: $(TARGET) $(MENUFILE) support
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
86 +default: $(TARGET) $(MENUFILE) #support
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 console:
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
89 $(MAKE) TARGET=gnuplot.exe default
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
90 @@ -556,8 +557,8 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
91 $(CC) -c $(CFLAGS) $(CFLAGSEXTRA) -MMD -MT '$*.$$(O)' -MF $*.d -o $@ $<
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
92
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
93 LDLIBS = -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lmsimg32 -lgdiplus
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
94 -LDLIBS += -lhtmlhelp
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
95 -LDFLAGS2 += -L$(HHWPATH)lib
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
96 +#LDLIBS += -lhtmlhelp
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
97 +#LDFLAGS2 += -L$(HHWPATH)lib
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
98 ifdef MINGW64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
99 LDFLAGS2 += -L.
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
100 endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
101 diff -ur gnuplot-5.0.5.orig/src/command.c gnuplot-5.0.5/src/command.c
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
102 --- gnuplot-5.0.5.orig/src/command.c 2017-01-20 12:00:04.431361673 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
103 +++ gnuplot-5.0.5/src/command.c 2017-01-20 12:04:46.221964530 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
104 @@ -125,7 +125,7 @@
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
105 # endif
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
106 #endif /* _Windows */
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
107
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
108 -#ifdef _Windows
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
109 +#ifdef IGNORE_Windows
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
110 # include <windows.h>
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
111 # ifdef __MSC__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
112 # include <malloc.h>
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
113 @@ -2537,6 +2537,7 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
114 void
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
115 help_command()
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
116 {
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
117 +#ifndef __MINGW32__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
118 HWND parent;
4297
8f864b4ea93b gnuplot: enable wx terminal type
John D
parents: 4191
diff changeset
119
4343
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
120 c_token++;
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
121 @@ -2572,6 +2573,7 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
122 link.fIndexOnFail = TRUE;
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
123 HtmlHelp(parent, winhelpname, HH_KEYWORD_LOOKUP, (DWORD_PTR)&link);
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
124 }
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
125 +#endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
126 }
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
127 #else /* !_Windows */
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
128 #ifndef VMS
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
129 diff -ur gnuplot-5.0.5.orig/src/internal.c gnuplot-5.0.5/src/internal.c
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
130 --- gnuplot-5.0.5.orig/src/internal.c 2017-01-20 12:00:04.456279047 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
131 +++ gnuplot-5.0.5/src/internal.c 2017-01-20 12:05:51.920459353 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
132 @@ -47,7 +47,7 @@
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 #include <math.h>
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
135
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
136 -#ifndef _WIN64
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
137 +#if !defined(__MINGW64_VERSION_MAJOR)
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
138 /*
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
139 * 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
140 * mechanism has been replaced by math_error() and supposedly is only
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
141 diff -ur gnuplot-5.0.5.orig/src/syscfg.h gnuplot-5.0.5/src/syscfg.h
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
142 --- gnuplot-5.0.5.orig/src/syscfg.h 2017-01-20 12:00:04.441111950 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
143 +++ gnuplot-5.0.5/src/syscfg.h 2017-01-20 12:06:54.955043738 -0500
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
144 @@ -346,6 +346,11 @@
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
145
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
146 #ifndef GP_MATHERR
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
147 # define GP_MATHERR matherr
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
148 +# if __MINGW32__
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
149 +# define GP_MATHERR _matherr
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
150 +#else
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
151 +# define GP_MATHERR matherr
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
152 +#endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
153 #endif
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
154
16d2b997c31b gnuplot: update t 5.0.5
John D
parents: 4297
diff changeset
155 #ifdef HAVE_STRUCT_EXCEPTION_IN_MATH_H