dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / app-misc / gpick / files / gpick-libc.patch
blob53fc682501fe268585b706333f57b9399b01da94
1 diff -Naur gpick-0.3-old/CMakeLists.txt gpick-0.3/CMakeLists.txt
2 --- gpick-0.3-old/CMakeLists.txt 2022-05-08 05:20:36.000000000 -0500
3 +++ gpick-0.3/CMakeLists.txt 2023-01-06 22:13:38.778904075 -0600
4 @@ -30,7 +30,7 @@
5 pkg_check_modules(GTK2 gtk+-2.0>=2.24)
6 pkg_check_modules(GioUnix gio-unix-2.0>=2.24)
7 endif()
8 - pkg_search_module(Lua lua5.4-c++>=5.4 lua5-c++>=5.4 lua5.3-c++>=5.3 lua5-c++>=5.3 lua-c++>=5.3 lua5.2-c++>=5.2 lua-c++>=5.2)
9 + pkg_search_module(Lua lua5.4>=5.4 lua5>=5.4 lua5.3>=5.3 lua5>=5.3 lua>=5.3 lua5.2>=5.2 lua>=5.2)
10 pkg_check_modules(Expat expat>=1.0)
11 endif()
12 set(THREADS_PREFER_PTHREAD_FLAG ON)
13 diff -Naur gpick-0.3-old/source/ColorSpaceType.cpp gpick-0.3/source/ColorSpaceType.cpp
14 --- gpick-0.3-old/source/ColorSpaceType.cpp 2022-05-08 05:20:36.000000000 -0500
15 +++ gpick-0.3/source/ColorSpaceType.cpp 2023-01-06 22:13:38.768904076 -0600
16 @@ -22,7 +22,9 @@
17 #include "lua/Color.h"
18 #include "lua/Script.h"
19 #include "lua/Callbacks.h"
20 +extern "C"{
21 #include <lua.h>
23 #include <iostream>
24 using namespace std;
26 diff -Naur gpick-0.3-old/source/Converter.cpp gpick-0.3/source/Converter.cpp
27 --- gpick-0.3-old/source/Converter.cpp 2022-05-08 05:20:36.000000000 -0500
28 +++ gpick-0.3/source/Converter.cpp 2023-01-06 22:13:38.768904076 -0600
29 @@ -33,8 +33,10 @@
30 #include <vector>
31 #include <iostream>
32 #include <functional>
33 +extern "C"{
34 #include <lualib.h>
35 #include <lauxlib.h>
37 using namespace std;
38 Converter::Converter(const char *name, const char *label, lua::Ref &&serialize, lua::Ref &&deserialize):
39 m_name(name),
40 diff -Naur gpick-0.3-old/source/GlobalState.cpp gpick-0.3/source/GlobalState.cpp
41 --- gpick-0.3-old/source/GlobalState.cpp 2022-05-08 05:20:36.000000000 -0500
42 +++ gpick-0.3/source/GlobalState.cpp 2023-01-06 22:13:38.772904075 -0600
43 @@ -37,8 +37,10 @@
44 #include <filesystem>
45 #include <stdlib.h>
46 #include <glib/gstdio.h>
47 +extern "C"{
48 #include <lualib.h>
49 #include <lauxlib.h>
51 #include <fstream>
52 #include <iostream>
53 struct GlobalState::Impl {
54 diff -Naur gpick-0.3-old/source/layout/Layout.cpp gpick-0.3/source/layout/Layout.cpp
55 --- gpick-0.3-old/source/layout/Layout.cpp 2022-05-08 05:20:36.000000000 -0500
56 +++ gpick-0.3/source/layout/Layout.cpp 2023-01-06 22:13:38.771904076 -0600
57 @@ -20,8 +20,10 @@
58 #include "System.h"
59 #include "../lua/Layout.h"
60 #include <iostream>
61 +extern "C"{
62 #include <lualib.h>
63 #include <lauxlib.h>
65 using namespace std;
66 namespace layout
68 diff -Naur gpick-0.3-old/source/lua/Color.cpp gpick-0.3/source/lua/Color.cpp
69 --- gpick-0.3-old/source/lua/Color.cpp 2022-05-08 05:20:36.000000000 -0500
70 +++ gpick-0.3/source/lua/Color.cpp 2023-01-06 22:13:38.771904076 -0600
71 @@ -18,8 +18,10 @@
73 #include "Color.h"
74 #include "../Color.h"
75 +extern "C"{
76 #include <lualib.h>
77 #include <lauxlib.h>
79 namespace lua
81 static int newColor(lua_State *L)
82 diff -Naur gpick-0.3-old/source/lua/ColorObject.cpp gpick-0.3/source/lua/ColorObject.cpp
83 --- gpick-0.3-old/source/lua/ColorObject.cpp 2022-05-08 05:20:36.000000000 -0500
84 +++ gpick-0.3/source/lua/ColorObject.cpp 2023-01-06 22:13:38.771904076 -0600
85 @@ -20,8 +20,10 @@
86 #include "Color.h"
87 #include "Script.h"
88 #include "../ColorObject.h"
89 +extern "C"{
90 #include <lualib.h>
91 #include <lauxlib.h>
93 namespace lua
95 static int newColorObject(lua_State *L)
96 diff -Naur gpick-0.3-old/source/lua/DynvSystem.cpp gpick-0.3/source/lua/DynvSystem.cpp
97 --- gpick-0.3-old/source/lua/DynvSystem.cpp 2022-05-08 05:20:36.000000000 -0500
98 +++ gpick-0.3/source/lua/DynvSystem.cpp 2023-01-06 22:13:38.771904076 -0600
99 @@ -17,8 +17,10 @@
102 #include "DynvSystem.h"
103 +extern "C"{
104 #include <lualib.h>
105 #include <lauxlib.h>
107 namespace lua {
108 dynv::Ref checkDynvSystem(lua_State *L, int index) {
109 void *ud = luaL_checkudata(L, index, "dynvSystem");
110 diff -Naur gpick-0.3-old/source/lua/Extensions.cpp gpick-0.3/source/lua/Extensions.cpp
111 --- gpick-0.3-old/source/lua/Extensions.cpp 2022-05-08 05:20:36.000000000 -0500
112 +++ gpick-0.3/source/lua/Extensions.cpp 2023-01-06 22:13:38.771904076 -0600
113 @@ -31,8 +31,10 @@
114 #include "../Converters.h"
115 #include "../Converter.h"
116 #include "version/Version.h"
117 +extern "C"{
118 #include <lualib.h>
119 #include <lauxlib.h>
121 namespace lua
123 static void checkArgumentIsFunctionOrNil(lua_State *L, int index)
124 diff -Naur gpick-0.3-old/source/lua/GlobalState.cpp gpick-0.3/source/lua/GlobalState.cpp
125 --- gpick-0.3-old/source/lua/GlobalState.cpp 2022-05-08 05:20:36.000000000 -0500
126 +++ gpick-0.3/source/lua/GlobalState.cpp 2023-01-06 22:13:38.771904076 -0600
127 @@ -18,8 +18,10 @@
129 #include "GlobalState.h"
130 #include "../GlobalState.h"
131 +extern "C"{
132 #include <lualib.h>
133 #include <lauxlib.h>
135 namespace lua
137 void setGlobalState(lua_State *L, GlobalState &global_state)
138 diff -Naur gpick-0.3-old/source/lua/I18N.cpp gpick-0.3/source/lua/I18N.cpp
139 --- gpick-0.3-old/source/lua/I18N.cpp 2022-05-08 05:20:36.000000000 -0500
140 +++ gpick-0.3/source/lua/I18N.cpp 2023-01-06 22:13:38.771904076 -0600
141 @@ -18,8 +18,10 @@
143 #include "I18N.h"
144 #include "../I18N.h"
145 +extern "C"{
146 #include <lualib.h>
147 #include <lauxlib.h>
149 namespace lua
151 int getText(lua_State *L)
152 diff -Naur gpick-0.3-old/source/lua/Layout.cpp gpick-0.3/source/lua/Layout.cpp
153 --- gpick-0.3-old/source/lua/Layout.cpp 2022-05-08 05:20:36.000000000 -0500
154 +++ gpick-0.3/source/lua/Layout.cpp 2023-01-06 22:13:38.770904076 -0600
155 @@ -23,8 +23,10 @@
156 #include "../layout/Box.h"
157 #include "../layout/System.h"
158 #include "../layout/Layout.h"
159 +extern "C"{
160 #include <lualib.h>
161 #include <lauxlib.h>
163 #include <typeinfo>
164 #include <iostream>
165 using namespace std;
166 diff -Naur gpick-0.3-old/source/lua/Ref.cpp gpick-0.3/source/lua/Ref.cpp
167 --- gpick-0.3-old/source/lua/Ref.cpp 2022-05-08 05:20:36.000000000 -0500
168 +++ gpick-0.3/source/lua/Ref.cpp 2023-01-06 22:13:38.770904076 -0600
169 @@ -17,8 +17,10 @@
172 #include "Ref.h"
173 +extern "C"{
174 #include <lualib.h>
175 #include <lauxlib.h>
177 namespace lua
179 Ref::Ref():
180 diff -Naur gpick-0.3-old/source/lua/Script.cpp gpick-0.3/source/lua/Script.cpp
181 --- gpick-0.3-old/source/lua/Script.cpp 2022-05-08 05:20:36.000000000 -0500
182 +++ gpick-0.3/source/lua/Script.cpp 2023-01-06 22:13:38.771904076 -0600
183 @@ -18,8 +18,10 @@
185 #include "Script.h"
186 #include <sstream>
187 +extern "C"{
188 #include <lualib.h>
189 #include <lauxlib.h>
191 #include <iostream>
192 using namespace std;
193 namespace lua
194 diff -Naur gpick-0.3-old/source/test/Script.cpp gpick-0.3/source/test/Script.cpp
195 --- gpick-0.3-old/source/test/Script.cpp 2022-05-08 05:20:36.000000000 -0500
196 +++ gpick-0.3/source/test/Script.cpp 2023-01-06 22:13:38.769904076 -0600
197 @@ -19,8 +19,10 @@
198 #include <boost/test/unit_test.hpp>
199 #include "lua/Script.h"
200 #include "common/Scoped.h"
201 +extern "C"{
202 #include <lualib.h>
203 #include <lauxlib.h>
205 using namespace lua;
206 static int test(lua_State *L) {
207 lua_pushstring(L, "ok");
208 diff -Naur gpick-0.3-old/source/uiDialogOptions.cpp gpick-0.3/source/uiDialogOptions.cpp
209 --- gpick-0.3-old/source/uiDialogOptions.cpp 2022-05-08 05:20:36.000000000 -0500
210 +++ gpick-0.3/source/uiDialogOptions.cpp 2023-01-06 22:13:38.776904075 -0600
211 @@ -28,8 +28,10 @@
212 #include "lua/Callbacks.h"
213 #include <string>
214 #include <iostream>
215 +extern "C"{
216 #include <lualib.h>
217 #include <lauxlib.h>
219 using namespace std;
220 static const struct{
221 const char *label;