@pheem49/mint 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/Cargo.lock +3 -3
  2. package/Cargo.toml +1 -1
  3. package/README.md +0 -17
  4. package/Release_Note.md +137 -58
  5. package/bin/mint +0 -0
  6. package/crates/mint-cli/src/agent.rs +150 -45
  7. package/crates/mint-cli/src/image.rs +8 -8
  8. package/crates/mint-cli/src/main.rs +929 -412
  9. package/crates/mint-cli/src/onboard.rs +108 -108
  10. package/crates/mint-cli/src/setup.rs +143 -143
  11. package/crates/mint-core/src/agent_loop.rs +1 -0
  12. package/crates/mint-core/src/api_server.rs +108 -52
  13. package/crates/mint-core/src/browser.rs +56 -1
  14. package/crates/mint-core/src/channels.rs +1 -0
  15. package/crates/mint-core/src/chat.rs +126 -8
  16. package/crates/mint-core/src/code_tools.rs +18 -20
  17. package/crates/mint-core/src/config.rs +245 -17
  18. package/crates/mint-core/src/image_gen.rs +5 -5
  19. package/crates/mint-core/src/lib.rs +16 -2
  20. package/crates/mint-core/src/memory.rs +6 -1
  21. package/crates/mint-core/src/orchestration.rs +260 -72
  22. package/crates/mint-core/src/pictures.rs +3 -4
  23. package/crates/mint-core/src/semantic.rs +1 -1
  24. package/crates/mint-core/src/shell.rs +1 -1
  25. package/crates/mint-core/src/skills.rs +46 -19
  26. package/crates/mint-core/src/tts.rs +3 -1
  27. package/flatpak/com.pheem49.mint.desktop +9 -0
  28. package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
  29. package/flatpak/com.pheem49.mint.yaml +52 -0
  30. package/package.json +1 -1
  31. package/shared-modules/.github/workflows/ci.yml +120 -0
  32. package/shared-modules/.github/workflows/update.yaml +28 -0
  33. package/shared-modules/CODEOWNERS +23 -0
  34. package/shared-modules/README.md +79 -0
  35. package/shared-modules/SDL/README.md +3 -0
  36. package/shared-modules/SDL/SDL-1.2.15.json +51 -0
  37. package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
  38. package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
  39. package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
  40. package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
  41. package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
  42. package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
  43. package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
  44. package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
  45. package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
  46. package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
  47. package/shared-modules/SDL/sdl12-compat.json +22 -0
  48. package/shared-modules/SDL2/SDL2_image.json +27 -0
  49. package/shared-modules/SDL2/SDL2_ttf.json +29 -0
  50. package/shared-modules/cld2/CMakeLists.txt +157 -0
  51. package/shared-modules/cld2/cld2.json +24 -0
  52. package/shared-modules/clutter/clutter.json +72 -0
  53. package/shared-modules/dbus-glib/dbus-glib.json +29 -0
  54. package/shared-modules/glew/glew.json +36 -0
  55. package/shared-modules/glu/glu-9.json +12 -0
  56. package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
  57. package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
  58. package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
  59. package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
  60. package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
  61. package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
  62. package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
  63. package/shared-modules/gtk2/gtk2.json +120 -0
  64. package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
  65. package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
  66. package/shared-modules/gtk2/readme.md +10 -0
  67. package/shared-modules/intltool/intltool-0.51.json +20 -0
  68. package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
  69. package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
  70. package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
  71. package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
  72. package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
  73. package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
  74. package/shared-modules/lame/lame-3.99.5.json +32 -0
  75. package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
  76. package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
  77. package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
  78. package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
  79. package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
  80. package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
  81. package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
  82. package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
  83. package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
  84. package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
  85. package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
  86. package/shared-modules/libcanberra/libcanberra.json +44 -0
  87. package/shared-modules/libmad/libmad.json +19 -0
  88. package/shared-modules/libsecret/libsecret.json +23 -0
  89. package/shared-modules/libsoup/libsoup-2.4.json +14 -0
  90. package/shared-modules/libusb/libusb.json +27 -0
  91. package/shared-modules/linux-audio/dssi.json +31 -0
  92. package/shared-modules/linux-audio/fftw3f-static.json +44 -0
  93. package/shared-modules/linux-audio/fftw3f.json +42 -0
  94. package/shared-modules/linux-audio/fluidsynth2-static.json +36 -0
  95. package/shared-modules/linux-audio/fluidsynth2.json +25 -0
  96. package/shared-modules/linux-audio/ladspa.json +26 -0
  97. package/shared-modules/linux-audio/lash.json +35 -0
  98. package/shared-modules/linux-audio/libinstpatch.json +16 -0
  99. package/shared-modules/linux-audio/liblo-static.json +22 -0
  100. package/shared-modules/linux-audio/liblo.json +17 -0
  101. package/shared-modules/linux-audio/lilv-static.json +94 -0
  102. package/shared-modules/linux-audio/lilv.json +89 -0
  103. package/shared-modules/linux-audio/lrdf.json +57 -0
  104. package/shared-modules/linux-audio/lv2.json +20 -0
  105. package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
  106. package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
  107. package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
  108. package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
  109. package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
  110. package/shared-modules/linux-audio/stk.json +28 -0
  111. package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
  112. package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
  113. package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
  114. package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
  115. package/shared-modules/lua5.3/lua.pc.in +8 -0
  116. package/shared-modules/lua5.3/luaconf.patch +47 -0
  117. package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
  118. package/shared-modules/lua5.4/lua-5.4.json +41 -0
  119. package/shared-modules/lua5.4/lua.pc.in +8 -0
  120. package/shared-modules/lua5.4/luaconf.patch +34 -0
  121. package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
  122. package/shared-modules/luajit/luajit.json +30 -0
  123. package/shared-modules/lzo/lzo.json +27 -0
  124. package/shared-modules/mac/mac.json +18 -0
  125. package/shared-modules/physfs/physfs.json +26 -0
  126. package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
  127. package/shared-modules/pygame/cython-fixes.patch +34 -0
  128. package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
  129. package/shared-modules/pygame/glib.patch +25 -0
  130. package/shared-modules/pygame/pygame1-python2.json +157 -0
  131. package/shared-modules/pygtk/pygtk-c99.patch +15 -0
  132. package/shared-modules/pygtk/pygtk.json +117 -0
  133. package/shared-modules/pygtk/pygtk.patch +39 -0
  134. package/shared-modules/python2.7/python-2.7.json +48 -0
  135. package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
  136. package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
  137. package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
  138. package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
  139. package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
  140. package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
  141. package/shared-modules/update-checker.sh +50 -0
  142. package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
  143. package/shared-modules/vorbisgain/0002-errno.patch +33 -0
  144. package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
  145. package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
  146. package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
  147. package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
  148. package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
  149. package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
  150. package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
  151. package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
  152. package/shared-modules/vorbisgain/README.md +23 -0
  153. package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
  154. package/src/renderer/shared/agentProgress.ts +145 -0
  155. package/src/renderer/shared/calculator.ts +52 -0
  156. package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
  157. package/src/renderer/shared/components/AgentActivityTable.tsx +85 -0
  158. package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
  159. package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
  160. package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
  161. package/src/renderer/shared/constants/models.ts +91 -0
  162. package/src/renderer/shared/platform.ts +82 -0
  163. package/src/renderer/shared/types.ts +140 -0
  164. package/src/renderer/shared/utils/agentActivity.ts +187 -0
  165. package/src/renderer/shared/utils/approval.ts +1 -0
  166. package/src/renderer/shared/utils/approval.tsx +64 -0
  167. package/src/renderer/shared/utils/fileIcons.ts +135 -0
  168. package/src/renderer/shared/utils/markdown.tsx +347 -0
  169. package/src/renderer/shared/utils/providers.ts +36 -0
  170. package/src/renderer/shared/utils/speech.ts +216 -0
  171. package/src/renderer/shared/utils/ui.ts +147 -0
  172. package/src/renderer/src/agentProgress.ts +11 -39
  173. package/src/renderer/src/calculator.ts +3 -46
  174. package/src/renderer/src/components/ChatPanel.tsx +219 -1308
  175. package/src/renderer/src/components/MintDashboard.tsx +67 -170
  176. package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
  177. package/src/renderer/src/components/Settings/AgentsTab.tsx +381 -0
  178. package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
  179. package/src/renderer/src/components/Settings/GeneralTab.tsx +256 -2
  180. package/src/renderer/src/components/SettingsWindow.tsx +120 -3
  181. package/src/renderer/src/components/WorkspacePanel.tsx +7 -125
  182. package/src/renderer/src/css/styles.css +100 -0
  183. package/src/renderer/src/tauri.ts +128 -143
  184. package/src/renderer/src-web/agentProgress.ts +11 -39
  185. package/src/renderer/src-web/calculator.ts +3 -46
  186. package/src/renderer/src-web/components/ChatPanel.tsx +219 -1306
  187. package/src/renderer/src-web/components/MintDashboard.tsx +42 -170
  188. package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
  189. package/src/renderer/src-web/components/Settings/AgentsTab.tsx +381 -0
  190. package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
  191. package/src/renderer/src-web/components/Settings/GeneralTab.tsx +254 -3
  192. package/src/renderer/src-web/components/SettingsWindow.tsx +127 -3
  193. package/src/renderer/src-web/css/styles.css +100 -0
  194. package/src/renderer/src-web/tauri.ts +180 -102
  195. package/src-tauri/src/desktop.rs +18 -16
  196. package/src-tauri/src/discord_rpc.rs +1 -1
  197. package/src-tauri/src/lib.rs +168 -40
  198. package/src-tauri/src/webhooks.rs +1 -0
  199. package/src-tauri/src/workflows.rs +1 -0
  200. package/src-tauri/tauri.conf.json +1 -1
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "SDL_mixer",
3
+ "config-opts": ["--disable-static"],
4
+ "cleanup": [
5
+ "/include",
6
+ "/lib/pkgconfig",
7
+ "/lib/*.la"
8
+ ],
9
+ "rm-configure": true,
10
+ "sources": [
11
+ {
12
+ "type": "archive",
13
+ "url": "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz",
14
+ "sha256": "1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
15
+ },
16
+ {
17
+ "type": "script",
18
+ "dest-filename": "autogen.sh",
19
+ "commands": [
20
+ "rm acinclude/libtool.m4",
21
+ "rm acinclude/lt*",
22
+ "AUTOMAKE=\"automake --foreign\" autoreconf -vfi -I acinclude",
23
+ "cp -p /usr/share/automake-*/config.{sub,guess} build-scripts"
24
+ ]
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "SDL_net",
3
+ "config-opts": ["--disable-static"],
4
+ "rm-configure": true,
5
+ "sources": [
6
+ {
7
+ "type": "archive",
8
+ "url": "https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz",
9
+ "sha256": "5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4"
10
+ },
11
+ {
12
+ "type": "script",
13
+ "dest-filename": "autogen.sh",
14
+ "commands": [
15
+ "AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
16
+ ]
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "SDL_pango",
3
+ "config-opts": ["--disable-static"],
4
+ "rm-configure": true,
5
+ "build-options":{
6
+ "cflags": "-Wno-implicit-function-declaration"
7
+ },
8
+ "sources": [
9
+ {
10
+ "type": "archive",
11
+ "url": "https://downloads.sourceforge.net/project/sdlpango/SDL_Pango/0.1.2/SDL_Pango-0.1.2.tar.gz",
12
+ "sha256": "7f75d3b97acf707c696ea126424906204ebfa07660162de925173cdd0257eba4"
13
+ },
14
+ {
15
+ "type": "patch",
16
+ "path": "SDL_Pango-0.1.2-API-adds.patch"
17
+ },
18
+ {
19
+ "type": "script",
20
+ "dest-filename": "autogen.sh",
21
+ "commands": [
22
+ "autoreconf -vfi"
23
+ ]
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "SDL_ttf",
3
+ "config-opts": ["--disable-static"],
4
+ "rm-configure": true,
5
+ "config-opts": [
6
+ "ac_cv_path_FREETYPE_CONFIG=pkg-config freetype2"
7
+ ],
8
+ "cleanup": [
9
+ "/include",
10
+ "/lib/pkgconfig",
11
+ "*.la",
12
+ "*.a"
13
+ ],
14
+ "sources": [
15
+ {
16
+ "type": "archive",
17
+ "url": "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz",
18
+ "sha256": "724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7"
19
+ },
20
+ {
21
+ "type": "script",
22
+ "dest-filename": "autogen.sh",
23
+ "commands": [
24
+ "AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
25
+ ]
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,316 @@
1
+ https://github.com/libsdl-org/SDL-1.2/pull/869
2
+ https://github.com/libsdl-org/SDL-1.2/commit/ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe
3
+ https://github.com/libsdl-org/SDL-1.2/commit/e738cfffced8a006094d55337d917386582ada47
4
+
5
+ From ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe Mon Sep 17 00:00:00 2001
6
+ From: orbea <orbea@riseup.net>
7
+ Date: Sat, 15 Oct 2022 14:35:38 -0700
8
+ Subject: [PATCH 1/2] Xxf86vm: Fix function definitions without a prototype
9
+
10
+ This is not supported with the upcoming clang 16.
11
+
12
+ error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
13
+
14
+ reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
15
+ ---
16
+ src/video/Xext/Xxf86vm/XF86VMode.c | 128 +++++++++++++++--------------
17
+ 1 file changed, 65 insertions(+), 63 deletions(-)
18
+
19
+ diff --git a/src/video/Xext/Xxf86vm/XF86VMode.c b/src/video/Xext/Xxf86vm/XF86VMode.c
20
+ index 5cb21905a..c3bd26716 100644
21
+ --- a/src/video/Xext/Xxf86vm/XF86VMode.c
22
+ +++ b/src/video/Xext/Xxf86vm/XF86VMode.c
23
+ @@ -102,9 +102,11 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86vidmode_info)
24
+ *****************************************************************************/
25
+
26
+ Bool
27
+ -SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep)
28
+ - Display *dpy;
29
+ - int *event_basep, *error_basep;
30
+ +SDL_NAME(XF86VidModeQueryExtension)(
31
+ + Display *dpy,
32
+ + int *event_basep,
33
+ + int *error_basep
34
+ +)
35
+ {
36
+ XExtDisplayInfo *info = find_display (dpy);
37
+
38
+ @@ -118,10 +120,11 @@ SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep)
39
+ }
40
+
41
+ Bool
42
+ -SDL_NAME(XF86VidModeQueryVersion)(dpy, majorVersion, minorVersion)
43
+ - Display* dpy;
44
+ - int* majorVersion;
45
+ - int* minorVersion;
46
+ +SDL_NAME(XF86VidModeQueryVersion)(
47
+ + Display *dpy,
48
+ + int *majorVersion,
49
+ + int *minorVersion
50
+ +)
51
+ {
52
+ XExtDisplayInfo *info = find_display (dpy);
53
+ xXF86VidModeQueryVersionReply rep;
54
+ @@ -215,11 +218,12 @@ SDL_NAME(XF86VidModeGetGamma)(Display *dpy, int screen, SDL_NAME(XF86VidModeGamm
55
+ }
56
+
57
+ Bool
58
+ -SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline)
59
+ - Display* dpy;
60
+ - int screen;
61
+ - int* dotclock;
62
+ - SDL_NAME(XF86VidModeModeLine)* modeline;
63
+ +SDL_NAME(XF86VidModeGetModeLine)(
64
+ + Display *dpy,
65
+ + int screen,
66
+ + int *dotclock,
67
+ + SDL_NAME(XF86VidModeModeLine) *modeline
68
+ +)
69
+ {
70
+ XExtDisplayInfo *info = find_display (dpy);
71
+ xXF86VidModeGetModeLineReply rep;
72
+ @@ -292,11 +296,12 @@ SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline)
73
+ }
74
+
75
+ Bool
76
+ -SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr)
77
+ - Display* dpy;
78
+ - int screen;
79
+ - int* modecount;
80
+ - SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr;
81
+ +SDL_NAME(XF86VidModeGetAllModeLines)(
82
+ + Display *dpy,
83
+ + int screen,
84
+ + int *modecount,
85
+ + SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr
86
+ +)
87
+ {
88
+ XExtDisplayInfo *info = find_display (dpy);
89
+ xXF86VidModeGetAllModeLinesReply rep;
90
+ @@ -456,11 +461,12 @@ SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr)
91
+ #endif
92
+
93
+ Bool
94
+ -SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline)
95
+ - Display *dpy;
96
+ - int screen;
97
+ - SDL_NAME(XF86VidModeModeInfo)* newmodeline;
98
+ - SDL_NAME(XF86VidModeModeInfo)* aftermodeline;
99
+ +SDL_NAME(XF86VidModeAddModeLine)(
100
+ + Display *dpy,
101
+ + int screen,
102
+ + SDL_NAME(XF86VidModeModeInfo) *newmodeline,
103
+ + SDL_NAME(XF86VidModeModeInfo) *aftermodeline
104
+ +)
105
+ {
106
+ XExtDisplayInfo *info = find_display (dpy);
107
+ xXF86VidModeAddModeLineReq *req;
108
+ @@ -569,10 +575,11 @@ SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline)
109
+ }
110
+
111
+ Bool
112
+ -SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline)
113
+ - Display *dpy;
114
+ - int screen;
115
+ - SDL_NAME(XF86VidModeModeInfo)* modeline;
116
+ +SDL_NAME(XF86VidModeDeleteModeLine)(
117
+ + Display *dpy,
118
+ + int screen,
119
+ + SDL_NAME(XF86VidModeModeInfo) *modeline
120
+ +)
121
+ {
122
+ XExtDisplayInfo *info = find_display (dpy);
123
+ xXF86VidModeDeleteModeLineReq *req;
124
+ @@ -633,10 +640,11 @@ SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline)
125
+ }
126
+
127
+ Bool
128
+ -SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline)
129
+ - Display *dpy;
130
+ - int screen;
131
+ - SDL_NAME(XF86VidModeModeLine)* modeline;
132
+ +SDL_NAME(XF86VidModeModModeLine)(
133
+ + Display *dpy,
134
+ + int screen,
135
+ + SDL_NAME(XF86VidModeModeLine) *modeline
136
+ +)
137
+ {
138
+ XExtDisplayInfo *info = find_display (dpy);
139
+ xXF86VidModeModModeLineReq *req;
140
+ @@ -695,10 +703,11 @@ SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline)
141
+ }
142
+
143
+ Status
144
+ -SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline)
145
+ - Display *dpy;
146
+ - int screen;
147
+ - SDL_NAME(XF86VidModeModeInfo)* modeline;
148
+ +SDL_NAME(XF86VidModeValidateModeLine)(
149
+ + Display *dpy,
150
+ + int screen,
151
+ + SDL_NAME(XF86VidModeModeInfo) *modeline
152
+ +)
153
+ {
154
+ XExtDisplayInfo *info = find_display (dpy);
155
+ xXF86VidModeValidateModeLineReq *req;
156
+ @@ -766,10 +775,7 @@ SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline)
157
+ }
158
+
159
+ Bool
160
+ -SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom)
161
+ - Display* dpy;
162
+ - int screen;
163
+ - int zoom;
164
+ +SDL_NAME(XF86VidModeSwitchMode)(Display *dpy, int screen, int zoom)
165
+ {
166
+ XExtDisplayInfo *info = find_display (dpy);
167
+ xXF86VidModeSwitchModeReq *req;
168
+ @@ -788,10 +794,11 @@ SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom)
169
+ }
170
+
171
+ Bool
172
+ -SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline)
173
+ - Display* dpy;
174
+ - int screen;
175
+ - SDL_NAME(XF86VidModeModeInfo)* modeline;
176
+ +SDL_NAME(XF86VidModeSwitchToMode)(
177
+ + Display *dpy,
178
+ + int screen,
179
+ + SDL_NAME(XF86VidModeModeInfo) *modeline
180
+ +)
181
+ {
182
+ XExtDisplayInfo *info = find_display (dpy);
183
+ xXF86VidModeSwitchToModeReq *req;
184
+ @@ -877,10 +884,7 @@ SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline)
185
+ }
186
+
187
+ Bool
188
+ -SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock)
189
+ - Display* dpy;
190
+ - int screen;
191
+ - int lock;
192
+ +SDL_NAME(XF86VidModeLockModeSwitch)(Display *dpy, int screen, int lock)
193
+ {
194
+ XExtDisplayInfo *info = find_display (dpy);
195
+ xXF86VidModeLockModeSwitchReq *req;
196
+ @@ -899,10 +903,11 @@ SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock)
197
+ }
198
+
199
+ Bool
200
+ -SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor)
201
+ - Display* dpy;
202
+ - int screen;
203
+ - SDL_NAME(XF86VidModeMonitor)* monitor;
204
+ +SDL_NAME(XF86VidModeGetMonitor)(
205
+ + Display *dpy,
206
+ + int screen,
207
+ + SDL_NAME(XF86VidModeMonitor) *monitor
208
+ +)
209
+ {
210
+ XExtDisplayInfo *info = find_display (dpy);
211
+ xXF86VidModeGetMonitorReply rep;
212
+ @@ -1000,10 +1005,7 @@ SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor)
213
+ }
214
+
215
+ Bool
216
+ -SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y)
217
+ - Display* dpy;
218
+ - int screen;
219
+ - int *x, *y;
220
+ +SDL_NAME(XF86VidModeGetViewPort)(Display *dpy, int screen, int *x, int *y)
221
+ {
222
+ XExtDisplayInfo *info = find_display (dpy);
223
+ xXF86VidModeGetViewPortReply rep;
224
+ @@ -1053,10 +1055,7 @@ SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y)
225
+ }
226
+
227
+ Bool
228
+ -SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y)
229
+ - Display* dpy;
230
+ - int screen;
231
+ - int x, y;
232
+ +SDL_NAME(XF86VidModeSetViewPort)(Display *dpy, int screen, int x, int y)
233
+ {
234
+ XExtDisplayInfo *info = find_display (dpy);
235
+ xXF86VidModeSetViewPortReq *req;
236
+ @@ -1077,11 +1076,14 @@ SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y)
237
+ }
238
+
239
+ Bool
240
+ -SDL_NAME(XF86VidModeGetDotClocks)(dpy, screen,
241
+ - flagsPtr, numclocksPtr, maxclocksPtr, clocksPtr)
242
+ - Display* dpy;
243
+ - int screen;
244
+ - int *flagsPtr, *numclocksPtr, *maxclocksPtr, *clocksPtr[];
245
+ +SDL_NAME(XF86VidModeGetDotClocks)(
246
+ + Display *dpy,
247
+ + int screen,
248
+ + int *flagsPtr,
249
+ + int *numclocksPtr,
250
+ + int *maxclocksPtr,
251
+ + int *clocksPtr[]
252
+ +)
253
+ {
254
+ XExtDisplayInfo *info = find_display (dpy);
255
+ xXF86VidModeGetDotClocksReply rep;
256
+
257
+ From e738cfffced8a006094d55337d917386582ada47 Mon Sep 17 00:00:00 2001
258
+ From: orbea <orbea@riseup.net>
259
+ Date: Sat, 15 Oct 2022 15:10:48 -0700
260
+ Subject: [PATCH 2/2] Xext: Fix function declarations without a prototype
261
+
262
+ This is not supported with the upcoming clang 16.
263
+
264
+ error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Werror,-Wdeprecated-non-prototype]
265
+
266
+ reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
267
+ ---
268
+ src/video/Xext/XME/xme.c | 2 +-
269
+ src/video/Xext/Xinerama/Xinerama.c | 3 ++-
270
+ src/video/Xext/Xv/Xv.c | 6 +++---
271
+ 3 files changed, 6 insertions(+), 5 deletions(-)
272
+
273
+ diff --git a/src/video/Xext/XME/xme.c b/src/video/Xext/XME/xme.c
274
+ index 2cead35ad..bb8d04d48 100644
275
+ --- a/src/video/Xext/XME/xme.c
276
+ +++ b/src/video/Xext/XME/xme.c
277
+ @@ -206,7 +206,7 @@ static char *xigmisc_extension_name = XIGMISC_PROTOCOL_NAME;
278
+ /*
279
+ * find_display - locate the display info block
280
+ */
281
+ -static int XiGMiscCloseDisplay();
282
+ +static int XiGMiscCloseDisplay(Display*, XExtCodes*);
283
+
284
+ static XExtensionHooks xigmisc_extension_hooks = {
285
+ NULL, /* create_gc */
286
+ diff --git a/src/video/Xext/Xinerama/Xinerama.c b/src/video/Xext/Xinerama/Xinerama.c
287
+ index 4ff42ebfe..57f64b9c3 100644
288
+ --- a/src/video/Xext/Xinerama/Xinerama.c
289
+ +++ b/src/video/Xext/Xinerama/Xinerama.c
290
+ @@ -50,7 +50,8 @@ static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME;
291
+ #define PanoramiXSimpleCheckExtension(dpy,i) \
292
+ XextSimpleCheckExtension (dpy, i, panoramiX_extension_name)
293
+
294
+ -static int close_display();
295
+ +static int close_display(Display*, XExtCodes*);
296
+ +
297
+ static /* const */ XExtensionHooks panoramiX_extension_hooks = {
298
+ NULL, /* create_gc */
299
+ NULL, /* copy_gc */
300
+ diff --git a/src/video/Xext/Xv/Xv.c b/src/video/Xext/Xv/Xv.c
301
+ index 7147b9e8c..c254a1dc2 100644
302
+ --- a/src/video/Xext/Xv/Xv.c
303
+ +++ b/src/video/Xext/Xv/Xv.c
304
+ @@ -63,9 +63,9 @@ static char *xv_extension_name = XvName;
305
+ #define XvCheckExtension(dpy, i, val) \
306
+ XextCheckExtension(dpy, i, xv_extension_name, val)
307
+
308
+ -static char *xv_error_string();
309
+ -static int xv_close_display();
310
+ -static Bool xv_wire_to_event();
311
+ +static char *xv_error_string(Display*, int, XExtCodes*, char*, int);
312
+ +static int xv_close_display(Display*, XExtCodes*);
313
+ +static Bool xv_wire_to_event(Display*, XEvent*, xEvent*);
314
+
315
+ static XExtensionHooks xv_extension_hooks = {
316
+ NULL, /* create_gc */
@@ -0,0 +1,24 @@
1
+ Description: Do not harness backing store by default
2
+ xorg-server 1.15 enables backing store if composite extension is enabled
3
+ (default settings). Harnessing backing store through compositor leads to
4
+ tearing effect.
5
+ This patch reverts default harnessing backing store to conditional use if
6
+ SDL_VIDEO_X11_BACKINGSTORE environment variable exists.
7
+ Origin: https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/1280665/comments/1
8
+ Bug: https://bugzilla.libsdl.org/show_bug.cgi?id=2383
9
+ Bug-Debian: https://bugs.debian.org/747168
10
+
11
+ --- a/src/video/x11/SDL_x11video.c
12
+ +++ b/src/video/x11/SDL_x11video.c
13
+ @@ -1088,10 +1088,8 @@
14
+ }
15
+ }
16
+
17
+ -#if 0 /* This is an experiment - are the graphics faster now? - nope. */
18
+ if ( SDL_getenv("SDL_VIDEO_X11_BACKINGSTORE") )
19
+ -#endif
20
+ - /* Cache the window in the server, when possible */
21
+ + /* Cache the window in the server when possible, on request */
22
+ {
23
+ Screen *xscreen;
24
+ XSetWindowAttributes a;
@@ -0,0 +1,59 @@
1
+
2
+ # HG changeset patch
3
+ # User Azamat H. Hackimov <azamat.hackimov@gmail.com>
4
+ # Date 1370184533 -21600
5
+ # Node ID 91ad7b43317a6387e115ecdf63a49137f47e42c8
6
+ # Parent f7fd5c3951b9ed922fdf696f7182e71b58a13268
7
+ Fix compilation with libX11 >= 1.5.99.902.
8
+
9
+ These changes fixes bug #1769 for SDL 1.2
10
+ (http://bugzilla.libsdl.org/show_bug.cgi?id=1769).
11
+
12
+ diff -r f7fd5c3951b9 -r 91ad7b43317a configure.in
13
+ --- a/configure.in Wed Apr 17 00:56:53 2013 -0700
14
+ +++ b/configure.in Sun Jun 02 20:48:53 2013 +0600
15
+ @@ -1169,6 +1169,17 @@
16
+ if test x$definitely_enable_video_x11_xrandr = xyes; then
17
+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
18
+ fi
19
+ + AC_MSG_CHECKING(for const parameter to _XData32)
20
+ + have_const_param_xdata32=no
21
+ + AC_TRY_COMPILE([
22
+ + #include <X11/Xlibint.h>
23
+ + extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
24
+ + ],[
25
+ + ],[
26
+ + have_const_param_xdata32=yes
27
+ + AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32)
28
+ + ])
29
+ + AC_MSG_RESULT($have_const_param_xdata32)
30
+ fi
31
+ fi
32
+ }
33
+ diff -r f7fd5c3951b9 -r 91ad7b43317a include/SDL_config.h.in
34
+ --- a/include/SDL_config.h.in Wed Apr 17 00:56:53 2013 -0700
35
+ +++ b/include/SDL_config.h.in Sun Jun 02 20:48:53 2013 +0600
36
+ @@ -283,6 +283,7 @@
37
+ #undef SDL_VIDEO_DRIVER_WINDIB
38
+ #undef SDL_VIDEO_DRIVER_WSCONS
39
+ #undef SDL_VIDEO_DRIVER_X11
40
+ +#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
41
+ #undef SDL_VIDEO_DRIVER_X11_DGAMOUSE
42
+ #undef SDL_VIDEO_DRIVER_X11_DYNAMIC
43
+ #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
44
+ diff -r f7fd5c3951b9 -r 91ad7b43317a src/video/x11/SDL_x11sym.h
45
+ --- a/src/video/x11/SDL_x11sym.h Wed Apr 17 00:56:53 2013 -0700
46
+ +++ b/src/video/x11/SDL_x11sym.h Sun Jun 02 20:48:53 2013 +0600
47
+ @@ -165,7 +165,11 @@
48
+ */
49
+ #ifdef LONG64
50
+ SDL_X11_MODULE(IO_32BIT)
51
+ +#if SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
52
+ +SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
53
+ +#else
54
+ SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
55
+ +#endif
56
+ SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
57
+ #endif
58
+
59
+
@@ -0,0 +1,27 @@
1
+ Origin: https://github.com/libsdl-org/SDL-1.2/commit/447ec3d2c360902aa648bec44b612a040248871e
2
+ From: Ozkan Sezer <sezeroz@gmail.com>
3
+ Description: loadso, dlsym, SDL_LoadFunction: cleanup the underscored name path.
4
+ - strlcpy was passed a wrong buffer length parameter. has worked so
5
+ far by luck.
6
+ - use memcpy instead of strlcpy for simplicity.
7
+ - 'append' has been a typo: should be 'prepend'.
8
+ diff --git a/src/loadso/dlopen/SDL_sysloadso.c b/src/loadso/dlopen/SDL_sysloadso.c
9
+ index 7985ee7f9..56331a1f0 100644
10
+ --- a/src/loadso/dlopen/SDL_sysloadso.c
11
+ +++ b/src/loadso/dlopen/SDL_sysloadso.c
12
+ @@ -45,11 +45,11 @@ void *SDL_LoadFunction(void *handle, const char *name)
13
+ {
14
+ void *symbol = dlsym(handle, name);
15
+ if ( symbol == NULL ) {
16
+ - /* append an underscore for platforms that need that. */
17
+ - size_t len = 1+SDL_strlen(name)+1;
18
+ - char *_name = SDL_stack_alloc(char, len);
19
+ + /* prepend an underscore for platforms that need that. */
20
+ + size_t len = SDL_strlen(name)+1;
21
+ + char *_name = SDL_stack_alloc(char, len+1);
22
+ _name[0] = '_';
23
+ - SDL_strlcpy(&_name[1], name, len);
24
+ + SDL_memcpy(&_name[1], name, len);
25
+ symbol = dlsym(handle, _name);
26
+ SDL_stack_free(_name);
27
+ if ( symbol == NULL ) {
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "sdl12-compat",
3
+ "buildsystem": "cmake-ninja",
4
+ "builddir": true,
5
+ "cleanup": [
6
+ "/bin/sdl-config",
7
+ "/include",
8
+ "/lib/pkgconfig",
9
+ "/share/aclocal",
10
+ "*.a"
11
+ ],
12
+ "sources": [
13
+ {
14
+ "type": "archive",
15
+ "url": "https://github.com/libsdl-org/sdl12-compat/releases/download/release-1.2.74/sdl12-compat-1.2.74.tar.gz",
16
+ "sha256": "86b6cb20387209eb487273834c41424a42c56637635ca6c58722e1031b04bee0"
17
+ }
18
+ ],
19
+ "modules": [
20
+ "../glu/glu-9.json"
21
+ ]
22
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "SDL2_image",
3
+ "config-opts": [
4
+ "-DSDL2IMAGE_DEPS_SHARED=OFF",
5
+ "-DSDL2IMAGE_STRICT=ON"
6
+ ],
7
+ "cleanup": [
8
+ "/include",
9
+ "/lib/cmake",
10
+ "/lib/pkgconfig"
11
+ ],
12
+ "buildsystem": "cmake-ninja",
13
+ "builddir": true,
14
+ "sources": [
15
+ {
16
+ "type": "archive",
17
+ "url": "https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.12/SDL2_image-2.8.12.tar.gz",
18
+ "sha256": "393f5efb50536ec13ca4f4affb69cc9966d3c3f969e6c5e701faddf9f9785381",
19
+ "x-checker-data": {
20
+ "type": "anitya",
21
+ "project-id": 382729,
22
+ "stable-only": true,
23
+ "url-template": "https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-$version.tar.gz"
24
+ }
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "SDL2_ttf",
3
+ "config-opts": [
4
+ "-DSDL2TTF_HARFBUZZ=ON"
5
+ ],
6
+ "cleanup": [
7
+ "/include",
8
+ "/lib/cmake",
9
+ "/lib/pkgconfig"
10
+ ],
11
+ "buildsystem": "cmake-ninja",
12
+ "builddir": true,
13
+ "sources": [
14
+ {
15
+ "type": "archive",
16
+ "url": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.24.0/SDL2_ttf-2.24.0.tar.gz",
17
+ "sha256": "0b2bf1e7b6568adbdbc9bb924643f79d9dedafe061fa1ed687d1d9ac4e453bfd",
18
+ "x-checker-data": {
19
+ "type": "anitya",
20
+ "project-id": 4784,
21
+ "stable-only": true,
22
+ "versions": {
23
+ "<": "3.0.0"
24
+ },
25
+ "url-template": "https://github.com/libsdl-org/SDL_ttf/releases/download/release-$version/SDL2_ttf-$version.tar.gz"
26
+ }
27
+ }
28
+ ]
29
+ }