summaryrefslogtreecommitdiffstats
path: root/package/netsurf/0001-avoid-system-perl-dependencies.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2018-12-05 14:40:40 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-10 21:32:51 +0100
commitf8b2b42efb3ca9bce9f7a86a4dd5801cb12c1e90 (patch)
tree36f9aefe378e5bd4cb0e15e86ede621c792c4992 /package/netsurf/0001-avoid-system-perl-dependencies.patch
parentaf3e16949e2ab21e4148c6d9b13a244bc4ca49b5 (diff)
downloadbuildroot-f8b2b42efb3ca9bce9f7a86a4dd5801cb12c1e90.tar.gz
buildroot-f8b2b42efb3ca9bce9f7a86a4dd5801cb12c1e90.zip
package/netsurf: new package
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [Thomas: - rename BR2_PACKAGE_NETSURF_FRAMEBUFFER to BR2_PACKAGE_NETSURF_SDL, and use "sdl" everywhere instead of "framebuffer", since really SDL can display on something else than the framebuffer - use a "depends on BR2_PACKAGE_LIBGTK2" instead of a "depends on BR2_PACKAGE_XORG7 + many other depends on + select BR2_PACKAGE_LIBGTK2" - use PKG_CONFIG_HOST_BINARY for the pkg-config path] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/netsurf/0001-avoid-system-perl-dependencies.patch')
-rw-r--r--package/netsurf/0001-avoid-system-perl-dependencies.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/netsurf/0001-avoid-system-perl-dependencies.patch b/package/netsurf/0001-avoid-system-perl-dependencies.patch
new file mode 100644
index 0000000000..979ddafc89
--- /dev/null
+++ b/package/netsurf/0001-avoid-system-perl-dependencies.patch
@@ -0,0 +1,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