commit:     88534051b733404af8dd28783a7e7d02ede98c4d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 31 22:40:23 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 31 22:40:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88534051

www-client/elinks: add missing patches

Bug: https://bugs.gentoo.org/797427
Fixes: 032ff4acf3b23136f91f857252ff14abbf724aef
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/elinks-0.16.0-fix-build-mujs.patch       | 47 ++++++++++++++++++++++
 .../elinks/files/elinks-0.16.0-fix-tests.patch     | 19 +++++++++
 2 files changed, 66 insertions(+)

diff --git a/www-client/elinks/files/elinks-0.16.0-fix-build-mujs.patch 
b/www-client/elinks/files/elinks-0.16.0-fix-build-mujs.patch
new file mode 100644
index 000000000000..030280c61f1e
--- /dev/null
+++ b/www-client/elinks/files/elinks-0.16.0-fix-build-mujs.patch
@@ -0,0 +1,47 @@
+https://github.com/rkd77/elinks/issues/204
+https://github.com/rkd77/elinks/pull/205
+
+From 5cb602191830737531f8c715f47f7429959b2471 Mon Sep 17 00:00:00 2001
+From: Sam James <s...@gentoo.org>
+Date: Sat, 31 Dec 2022 21:06:57 +0000
+Subject: [PATCH] Fix build failures with mujs
+
+Closes: https://github.com/rkd77/elinks/issues/204
+Signed-off-by: Sam James <s...@gentoo.org>
+--- a/src/document/html/parser/general.c
++++ b/src/document/html/parser/general.c
+@@ -41,6 +41,9 @@
+ /* Unsafe macros */
+ #include "document/html/internal.h"
+ 
++#if defined(CONFIG_ECMASCRIPT_SMJS) || defined(CONFIG_QUICKJS) || 
defined(CONFIG_MUJS)
++#include "ecmascript/ecmascript.h"
++#endif
+ 
+ void
+ html_span(struct html_context *html_context, char *a,
+--- a/src/document/html/parser/stack.c
++++ b/src/document/html/parser/stack.c
+@@ -27,6 +27,10 @@
+ /* Unsafe macros */
+ #include "document/html/internal.h"
+ 
++#if defined(CONFIG_ECMASCRIPT_SMJS) || defined(CONFIG_QUICKJS) || 
defined(CONFIG_MUJS)
++#include "ecmascript/ecmascript.h"
++#endif
++
+ #if 0 //def CONFIG_XML
+ #include <libxml++/libxml++.h>
+ #endif
+--- a/src/ecmascript/ecmascript.h
++++ b/src/ecmascript/ecmascript.h
+@@ -5,6 +5,8 @@
+ /* In the future you will get DOM, a complete ECMAScript interface and free
+  * plasm displays for everyone. */
+ 
++#include <stdbool.h>
++
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
+

diff --git a/www-client/elinks/files/elinks-0.16.0-fix-tests.patch 
b/www-client/elinks/files/elinks-0.16.0-fix-tests.patch
new file mode 100644
index 000000000000..6b46b63afcdd
--- /dev/null
+++ b/www-client/elinks/files/elinks-0.16.0-fix-tests.patch
@@ -0,0 +1,19 @@
+https://github.com/rkd77/elinks/issues/203
+https://github.com/rkd77/elinks/commit/aa8d7989815d48b6afdc3e321bd859f4453bacf2
+
+From aa8d7989815d48b6afdc3e321bd859f4453bacf2 Mon Sep 17 00:00:00 2001
+From: Witold Filipczyk <wite...@poczta.onet.pl>
+Date: Fri, 30 Dec 2022 09:35:41 +0100
+Subject: [PATCH] [test] Strange endif . Refs #203
+
+--- a/src/dom/test/meson.build
++++ b/src/dom/test/meson.build
+@@ -28,7 +28,6 @@ meson.source_root()+'/src/dom/sgml/xbel/xbel.c',
+ testdeps,
+ c_args:['-DHAVE_CONFIG_H'], cpp_args:['-DHAVE_CONFIG_H'], 
include_directories:['.', '../..', '../../..'],
+ build_by_default:false)
+-endif
+ 
+ test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'})
+ 
+

Reply via email to