From cea3ff331a11649790f6810ee420b7af705f53c5 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Tue, 2 Jun 2020 23:02:09 +0100 Subject: [PATCH] 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); -- 2.30.2