[exim-cvs] Fix build on Fedora 32

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Fix build on Fedora 32
Gitweb: https://git.exim.org/exim-website.git/commitdiff/cea3ff331a11649790f6810ee420b7af705f53c5
Commit:     cea3ff331a11649790f6810ee420b7af705f53c5
Parent:     9acc0767ada1ac2c30e8e2bd1cf753a4b744072c
Author:     Simon Arlott <simon@???>
AuthorDate: Tue Jun 2 23:02:09 2020 +0100
Committer:  Jeremy Harris <jgh@???>
CommitDate: Tue Jun 2 23:02:09 2020 +0100


    Fix build on Fedora 32


    perl-XML-LibXML stopped loading HTML entities by default at 2.0202,
    and f32 has v2.0205
---
 script/gen | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/script/gen b/script/gen
index 84657e7..91af773 100755
--- a/script/gen
+++ b/script/gen
@@ -131,7 +131,7 @@ sub do_doc {
     my ( $type, $xml_path ) = @_;


     ## Read and validate the XML file
-    my $xml = XML::LibXML->new()->parse_file($xml_path) or die $!;
+    my $xml = XML::LibXML->new(expand_entities => 1)->parse_file($xml_path) or die $!;


     ## Get the version number
     my $version = do {
@@ -419,7 +419,7 @@ sub transform {
     $xml->documentElement()->appendTextChild( 'old_versions', $_ ) foreach old_docs_versions();


     ## Parse the ".xsl" file as XML
-    my $xsl = XML::LibXML->new()->parse_file($xsl_path) or die $!;
+    my $xsl = XML::LibXML->new(expand_entities => 1)->parse_file($xsl_path) or die $!;


     ## Generate a stylesheet from the ".xsl" XML.
     my $stylesheet = XML::LibXSLT->new()->parse_stylesheet($xsl);