Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/squid: fix build with libxml2-2.12
@ 2023-12-04 21:16 Bernd Kuhls
  2023-12-04 21:16 ` [Buildroot] [PATCH 2/3] package/xmlstarlet: Fix " Bernd Kuhls
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bernd Kuhls @ 2023-12-04 21:16 UTC (permalink / raw)
  To: buildroot; +Cc: Pierre-Jean Texier

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 ...0001-ESI-Fix-build-with-libxml2-2.12.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/squid/0001-ESI-Fix-build-with-libxml2-2.12.patch

diff --git a/package/squid/0001-ESI-Fix-build-with-libxml2-2.12.patch b/package/squid/0001-ESI-Fix-build-with-libxml2-2.12.patch
new file mode 100644
index 0000000000..c369651aba
--- /dev/null
+++ b/package/squid/0001-ESI-Fix-build-with-libxml2-2.12.patch
@@ -0,0 +1,36 @@
+From c50e5fd11744eb2cdfb90fb7e8180880160927c3 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 25 Nov 2023 13:44:49 +0100
+Subject: [PATCH] ESI: Fix build with libxml2-2.12
+
+libxml2 recently made it a const return.
+
+Fixes build error
+
+Libxml2Parser.cc:147:40: error: invalid conversion from 'const xmlError*'
+ {aka 'const _xmlError*'} to 'xmlErrorPtr' {aka '_xmlError*'}
+ [-fpermissive]
+
+Upstream: https://github.com/squid-cache/squid/pull/1600
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/esi/Libxml2Parser.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/esi/Libxml2Parser.cc b/src/esi/Libxml2Parser.cc
+index f03752885..73def2dbf 100644
+--- a/src/esi/Libxml2Parser.cc
++++ b/src/esi/Libxml2Parser.cc
+@@ -144,7 +144,7 @@ ESILibxml2Parser::lineNumber() const
+ char const *
+ ESILibxml2Parser::errorString() const
+ {
+-    xmlErrorPtr error = xmlGetLastError();
++    const xmlError *error = xmlGetLastError();
+ 
+     if (error == nullptr)
+         return nullptr;
+-- 
+2.39.2
+
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-23 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 21:16 [Buildroot] [PATCH 1/3] package/squid: fix build with libxml2-2.12 Bernd Kuhls
2023-12-04 21:16 ` [Buildroot] [PATCH 2/3] package/xmlstarlet: Fix " Bernd Kuhls
2023-12-23 20:36   ` Thomas Petazzoni via buildroot
2023-12-04 21:16 ` [Buildroot] [PATCH 3/3] package/libxml2: bump version to 2.12.1 Bernd Kuhls
2023-12-23 20:37   ` Thomas Petazzoni via buildroot
2023-12-23 20:35 ` [Buildroot] [PATCH 1/3] package/squid: fix build with libxml2-2.12 Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox