[packages/php/PHP_7_2] add missing includes to fix build with libxml2 >= 2.12

atler atler at pld-linux.org
Sun Nov 26 22:29:18 CET 2023


commit 369f945c0b4f3f583679ed4a44dcb06b901df23a
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 23 22:02:54 2023 +0100

    add missing includes to fix build with libxml2 >= 2.12

 missing-includes.patch | 22 ++++++++++++++++++++++
 php.spec               |  2 ++
 2 files changed, 24 insertions(+)
---
diff --git a/php.spec b/php.spec
index 99bb476..3bc3ed6 100644
--- a/php.spec
+++ b/php.spec
@@ -223,6 +223,7 @@ Patch72:	phar-hash-shared.patch
 Patch73:	icu69.patch
 Patch74:	openssl.patch
 Patch75:	icu70.patch
+Patch76:	missing-includes.patch
 URL:		https://www.php.net/
 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:	Firebird-devel >= 1.0.2.908-2}}
 %{?with_pspell:BuildRequires:	aspell-devel >= 2:0.50.0}
@@ -2050,6 +2051,7 @@ cp -p php.ini-production php.ini
 %patch73 -p1
 %patch74 -p1
 %patch75 -p1
+%patch76 -p1
 
 sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
       run-tests.php
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..1ffb854
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,22 @@
+diff -ur php-8.2.12.orig/ext/dom/document.c php-8.2.12/ext/dom/document.c
+--- php-8.2.12.orig/ext/dom/document.c	2023-10-24 21:22:16.000000000 +0200
++++ php-8.2.12/ext/dom/document.c	2023-11-23 21:35:57.407063192 +0100
+@@ -23,6 +23,7 @@
+ #if HAVE_LIBXML && HAVE_DOM
+ #include "php_dom.h"
+ #include <libxml/SAX.h>
++#include <libxml/xmlsave.h>
+ #ifdef LIBXML_SCHEMAS_ENABLED
+ #include <libxml/relaxng.h>
+ #include <libxml/xmlschemas.h>
+diff -ur php-8.2.12.orig/ext/libxml/php_libxml.h php-8.2.12/ext/libxml/php_libxml.h
+--- php-8.2.12.orig/ext/libxml/php_libxml.h	2023-10-24 21:22:16.000000000 +0200
++++ php-8.2.12/ext/libxml/php_libxml.h	2023-11-23 21:35:57.407063192 +0100
+@@ -34,6 +34,7 @@
+ #endif
+ 
+ #include "zend_smart_str.h"
++#include <libxml/parser.h>
+ #include <libxml/tree.h>
+ 
+ #define LIBXML_SAVE_NOEMPTYTAG 1<<2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/369f945c0b4f3f583679ed4a44dcb06b901df23a



More information about the pld-cvs-commit mailing list