summaryrefslogtreecommitdiffstats
path: root/package/netsurf/0001-avoid-system-perl-dependencies.patch
blob: 979ddafc89dd0b03b218ca9a1a83984a37a30451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From b42e4b5bfca030965dcfca993a47a6ddaa941287 Mon Sep 17 00:00:00 2001
From: Francois Perrad <francois.perrad@gadz.org>
Date: Sun, 25 Nov 2018 18:27:54 +0100
Subject: [PATCH] avoid system perl dependencies

this subroutine format is used for android target.
with eval the load of HTML::Entities is deferred.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 netsurf/utils/split-messages.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netsurf/utils/split-messages.pl b/netsurf/utils/split-messages.pl
index 4b50dde..e47dded 100644
--- a/netsurf/utils/split-messages.pl
+++ b/netsurf/utils/split-messages.pl
@@ -311,7 +311,7 @@ TXT
     sub footer { qq|</resources>| }
     sub format
     {
-	use HTML::Entities qw(encode_entities);
+	eval q|use HTML::Entities qw(encode_entities);|;
 	my $escaped = encode_entities( $_[1], '<>&"' );
 	qq|  <string name="$_[0]">$escaped</string>\n|;
     }
-- 
2.17.1

OpenPOWER on IntegriCloud