summaryrefslogtreecommitdiff
path: root/net-libs/libdom
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-03 17:44:31 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-03 17:44:31 +0000
commitc44123f79f40edf5fe3d4b0d211d6aa68542abd2 (patch)
tree838edea4b7f78b425eacf44f29775ffd0bc671e3 /net-libs/libdom
parent79e5685b8db7602719212510574962664af2b036 (diff)
gentoo auto-resync : 03:02:2024 - 17:44:31
Diffstat (limited to 'net-libs/libdom')
-rw-r--r--net-libs/libdom/Manifest3
-rw-r--r--net-libs/libdom/files/libdom-0.4.2-musl.patch29
-rw-r--r--net-libs/libdom/libdom-0.4.2.ebuild2
3 files changed, 33 insertions, 1 deletions
diff --git a/net-libs/libdom/Manifest b/net-libs/libdom/Manifest
index 47a3eb8061dc..b852804a52a5 100644
--- a/net-libs/libdom/Manifest
+++ b/net-libs/libdom/Manifest
@@ -1,4 +1,5 @@
+AUX libdom-0.4.2-musl.patch 905 BLAKE2B 1c3b8383c34729307b0cd1deb6fc94bee31e4570f731baa5c0ebbaec9b2b97b4c34a810e6c2ae1dc8526d526513dd7fd30c4dee24d765ffe30eefdcb5f77199a SHA512 403815420b292c4aca219b5dd5583f5ee1a63535afff07c160173b712d89c7851868e9f7bbf8cc4d66a4abad32fd6cf18f616318bcbe1995d3a62629a5cb9641
DIST libdom-0.4.2-src.tar.gz 878706 BLAKE2B 2a320452b50c3da719ef76683e133582bb0f657ceb8552a252204bbab89d85076af596cd615770dd357aaa9dbec31fabf39b2946019d004352b2273585134914 SHA512 85ce95a545c48af2cc082896d8153f016f7452315c67390884181cde19c999c7122c913846d404e40957d07abedc22c5ef8342d69eee139309e7c221d0580bb6
-EBUILD libdom-0.4.2.ebuild 1123 BLAKE2B 437448b444a0071d404c59a77f4099150cc5929b9c86e1f0092c725b276dcab362d948ede6e12106137eba1d0160e06ca8f37b420a9f1d8078c4e9af4b99bd41 SHA512 f972b0a1436d1ee899c737cb87e041568ba75c864b3139cbe557240cb39e157a82e62616f31ef6330bff9f90ab7a65212f7537efc1da9fcff988725c07d91456
+EBUILD libdom-0.4.2.ebuild 1174 BLAKE2B 61eef1044163610724de90f7bbcb22b6d495f853865b3f1576369aef3c5a011e3ec6f58c31f8c039e83c62ae27b7f70c10e07564902d7c1b631e42d411f5d50d SHA512 843ab81eb6d7ce458db5daeb78a5a5bca010f72037ad3366b759deeeeb9ae5320824a53f9da2f5099a00813affa4f190a2aac1beb85e53f217120ce856592f14
EBUILD libdom-9999.ebuild 1057 BLAKE2B e4a16dd3a69026580795eb3cc76b79a94efa9aed1c4232c43e6e05505f9a4927637f058c67eb62a9e56dabdf693e5b9bd67342079d48eead594c8229dad403be SHA512 2905ab7d38888f0593bf4b25ededd160d91f3fa674796326325e76dcfc228b6045804b6c1bf2bb52a5be0b10a3faac15185cea90c62bddfdf6d63d7b880f9e59
MISC metadata.xml 253 BLAKE2B 63a51cab94d3e978d2c7dd1d124efd1c9e11c5ae277806a1f12359b2db370c37382fc1947e85940f6b0a439e3d49eecdd8d9bfb96587352d6a83803d2fd40bb6 SHA512 8da7cfe0cd26a54c106f2c029bbde93abf77576835e4fa66bc538dcf12fd41160f7cc2dd843a221962bb9a6f965311c076a1557caa38d503f371569b84841e33
diff --git a/net-libs/libdom/files/libdom-0.4.2-musl.patch b/net-libs/libdom/files/libdom-0.4.2-musl.patch
new file mode 100644
index 000000000000..61a84d3293b4
--- /dev/null
+++ b/net-libs/libdom/files/libdom-0.4.2-musl.patch
@@ -0,0 +1,29 @@
+From 15898de03539ad2376cca591c39c60134a7d4a12 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Sat, 3 Feb 2024 08:05:34 -0500
+Subject: [PATCH 1/1] bindings/xml/libxml_xmlparser.c: add stdlib.h include
+
+This file uses malloc() but does not include stdlib.h directly. With
+glibc, that apparently works out just fine... but with musl, it leads
+to implicit declaration warnings/errors, most likely because musl does
+not include stdlib.h transitively via any of the other headers used by
+this file.
+---
+ bindings/xml/libxml_xmlparser.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/bindings/xml/libxml_xmlparser.c b/bindings/xml/libxml_xmlparser.c
+index e4a6d80..28aadf1 100644
+--- a/bindings/xml/libxml_xmlparser.c
++++ b/bindings/xml/libxml_xmlparser.c
+@@ -6,6 +6,7 @@
+ */
+
+ #include <stdbool.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+
+--
+2.43.0
+
diff --git a/net-libs/libdom/libdom-0.4.2.ebuild b/net-libs/libdom/libdom-0.4.2.ebuild
index 547bc6cbbf23..ac1c7fd3df91 100644
--- a/net-libs/libdom/libdom-0.4.2.ebuild
+++ b/net-libs/libdom/libdom-0.4.2.ebuild
@@ -36,6 +36,8 @@ BDEPEND="
REQUIRED_USE="test? ( xml )"
+PATCHES=( "${FILESDIR}/libdom-0.4.2-musl.patch" )
+
_emake() {
netsurf_define_makeconf
emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared \