From: Simon Arlott Date: Tue, 2 Jun 2020 22:02:09 +0000 (+0100) Subject: Fix build on Fedora 32 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/cea3ff331a11649790f6810ee420b7af705f53c5?ds=sidebyside Fix build on Fedora 32 perl-XML-LibXML stopped loading HTML entities by default at 2.0202, and f32 has v2.0205 --- 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);