Fix webkitgtk3, groff and m4

This commit is contained in:
Wildan M 2026-05-22 07:33:27 +07:00
parent 29e2c72584
commit 1efb396faa
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
4 changed files with 47 additions and 17 deletions

View File

@ -1,9 +1,4 @@
#TODO incomplete port
#TODO Complied, works for basic use cases. pthread mutexes compiled in, but not working.
#TODO Calls triggering mutexes yield the following errors:
#relibc getrlimit(7, 0x7ffffffffc38): not implemented
#relibc getgroups(65536, 0x14920): not implemented
#Runtime error near line 1: disk I/O error (10)
#TODO need testing
[source]
tar = "https://sqlite.org/2025/sqlite-autoconf-3490200.tar.gz"
blake3 = "96e071dc4f964311882334e927f017d8383915b1b140adcf308957dff213aa8c"
@ -11,4 +6,16 @@ script = """
autotools_recursive_regenerate
"""
[build]
template = "configure"
template = "custom"
script = """
DYNAMIC_INIT
# don't limit the malloc, we'll use in memory a lot
export CPPFLAGS="$CPPFLAGS -DSQLITE_MALLOC_SOFT_LIMIT=0"
# remapping doesn't work (crashing firefox at startup)
export CPPFLAGS="$CPPFLAGS -DSQLITE_MAX_MMAP_SIZE=0"
# redoxfs has race condition issues
export CPPFLAGS="$CPPFLAGS -DSQLITE_THREADSAFE=1"
# our /tmp is slow
export CPPFLAGS="$CPPFLAGS -DSQLITE_TEMP_STORE=3"
cookbook_configure
"""

View File

@ -1,7 +1,7 @@
#TODO compiled but not tested
[source]
tar = "https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz"
blake3 = "22f5754f80b347b525eb1ad89e8ef84312ec80432b79110c7f0161e2185bdc06"
blake3 = "eadd696d929b0359bf7bd17390c2bcc3ad1cbf36126854eb545a50b86ca97e9e"
patches = [ "redox.patch" ]
[build]
template = "configure"

View File

@ -1,19 +1,19 @@
diff -ruwN source/lib/fseterr.c source-new/lib/fseterr.c
--- source/lib/fseterr.c 2026-03-08 20:32:36.000000000 +0700
+++ source-new/lib/fseterr.c 2026-05-20 10:00:55.592770876 +0700
--- source/lib/fseterr.c 2026-03-08 14:32:36.000000000 +0100
+++ source-new/lib/fseterr.c 2026-05-22 02:26:26.702378190 +0200
@@ -53,7 +53,7 @@
#elif defined EPLAN9 /* Plan9 */
if (fp->state != 0 /* CLOSED */)
fp->state = 5 /* ERR */;
-#elif 0 /* unknown */
+#elif defined __redox__ /* unknown */
+#elif defined __redox__ /* unknown */
/* Portable fallback, based on an idea by Rich Felker.
Wow! 6 system calls for something that is just a bit operation!
Not activated on any system, because there is no way to repair FP when
diff -ruwN source/Makefile.in source-new/Makefile.in
--- source/Makefile.in 2026-05-20 10:25:52.529450320 +0700
+++ source-new/Makefile.in 2026-05-20 10:23:19.309839883 +0700
@@ -5875,7 +5875,6 @@
--- source/Makefile.in 2026-03-14 08:53:46.000000000 +0100
+++ source-new/Makefile.in 2026-05-22 02:22:50.090427159 +0200
@@ -5877,7 +5877,6 @@
#
# Use '-K utf8', not '-k', in case 'configure' didn't find uchardet.
MOMPDFMOM = \
@ -21,7 +21,7 @@ diff -ruwN source/Makefile.in source-new/Makefile.in
GROFF_COMMAND_PREFIX= \
GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
$(PDFMOMBIN) $(FFLAG) $(MFLAG) -M$(mom_srcdir) -K utf8 -p -e -t \
@@ -6018,7 +6017,6 @@
@@ -6020,7 +6019,6 @@
@HAVE_URW_FONTS_TRUE@pdfmomoption = -P-W
@HAVE_URW_FONTS_TRUE@groffmanpagesoption = -P-e
DOC_PDFMOM = \
@ -29,7 +29,7 @@ diff -ruwN source/Makefile.in source-new/Makefile.in
GROFF_COMMAND_PREFIX= \
GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
$(PDFMOMBIN) $(MFLAG) $(FFLAG) -ww -b $(pdfmomoption) --roff
@@ -6086,7 +6084,7 @@
@@ -6088,7 +6086,7 @@
PROCESSEDFILES_DEPS_PS = groff troff grops tmac/ps.tmac \
font/devps/stamp
@ -38,7 +38,7 @@ diff -ruwN source/Makefile.in source-new/Makefile.in
font/devpdf/stamp
PROCESSEDFILES_DEPS_TXT = groff troff grotty tmac/tty.tmac \
@@ -19226,7 +19224,7 @@
@@ -19229,7 +19227,7 @@
&& LC_ALL=C $(MOMPDFMOM) $< >$@
$(MOMPROCESSEDEXAMPLEFILES): $(MOMNORMALFILES) \

View File

@ -238,6 +238,29 @@ diff -ruwN source/Source/JavaScriptCore/runtime/MachineContext.h source-new/Sour
#if CPU(X86_64)
return reinterpret_cast<void*&>((uintptr_t&) machineContext.r8);
#else
diff -ruwN source/Source/JavaScriptCore/runtime/Options.cpp source-new/Source/JavaScriptCore/runtime/Options.cpp
--- source/Source/JavaScriptCore/runtime/Options.cpp 2025-03-20 18:07:59.015023500 +0100
+++ source-new/Source/JavaScriptCore/runtime/Options.cpp 2026-05-22 01:21:58.011957922 +0200
@@ -36,6 +36,7 @@
#include <mutex>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <wtf/ASCIICType.h>
#include <wtf/BitSet.h>
#include <wtf/Compiler.h>
diff -ruwN source/Source/JavaScriptCore/yarr/YarrPattern.cpp source-new/Source/JavaScriptCore/yarr/YarrPattern.cpp
--- source/Source/JavaScriptCore/yarr/YarrPattern.cpp 2025-03-07 12:11:01.486010300 +0100
+++ source-new/Source/JavaScriptCore/yarr/YarrPattern.cpp 2026-05-22 01:28:48.678618215 +0200
@@ -2639,7 +2639,7 @@
return;
out.print(" {", quantityMinCount.value());
if (quantityMinCount != quantityMaxCount) {
- if (quantityMaxCount == UINT_MAX)
+ if (quantityMaxCount == (uint32_t)UINT_MAX)
out.print(",...");
else
out.print(",", quantityMaxCount.value());
diff -ruwN source/Source/ThirdParty/ANGLE/GLESv2.cmake source-new/Source/ThirdParty/ANGLE/GLESv2.cmake
--- source/Source/ThirdParty/ANGLE/GLESv2.cmake 2025-02-17 19:59:58.567796700 +0700
+++ source-new/Source/ThirdParty/ANGLE/GLESv2.cmake 2025-09-09 09:08:03.495986361 +0700