From 5353749bb382ad38f12445e1c8110b57eae7cca7 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 20 Nov 2019 20:06:59 +0100 Subject: [PATCH] netsurf: patch for libutf8proc --- www-client/netsurf/netsurf-3.9.recipe | 3 +- .../netsurf/patches/netsurf-3.9.patchset | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 www-client/netsurf/patches/netsurf-3.9.patchset diff --git a/www-client/netsurf/netsurf-3.9.recipe b/www-client/netsurf/netsurf-3.9.recipe index 79536ade1..72a22f9cd 100644 --- a/www-client/netsurf/netsurf-3.9.recipe +++ b/www-client/netsurf/netsurf-3.9.recipe @@ -8,11 +8,12 @@ features including tabbed browsing, bookmarks and page thumbnailing." HOMEPAGE="https://www.netsurf-browser.org/" COPYRIGHT="2003-2018 The NetSurf Browser project" LICENSE="GNU GPL v2" -REVISION="2" +REVISION="3" # Do NOT use the netsurf-all package. It contains a bunch of subprojects which # we build as separate packages so they can easily be used by other projects. SOURCE_URI="https://download.netsurf-browser.org/netsurf/releases/source/netsurf-$portVersion-src.tar.gz" CHECKSUM_SHA256="d72f1c6f6113a01e541f8476a93c347235068779140090df55ba402eb4a8ecc3" +PATCHES="netsurf-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" if [ "$targetArchitecture" = x86_gcc2 ]; then diff --git a/www-client/netsurf/patches/netsurf-3.9.patchset b/www-client/netsurf/patches/netsurf-3.9.patchset new file mode 100644 index 000000000..6a0c5d326 --- /dev/null +++ b/www-client/netsurf/patches/netsurf-3.9.patchset @@ -0,0 +1,31 @@ +From 8ca7db438b21b07fd3a90b9283ab9f9dcda35801 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 20 Nov 2019 19:34:02 +0100 +Subject: libutf8proc2 patch + + +diff --git a/utils/idna.c b/utils/idna.c +index d657f90..73f4f4a 100644 +--- a/utils/idna.c ++++ b/utils/idna.c +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + + #include "netsurf/inttypes.h" + +@@ -172,7 +172,7 @@ static bool idna__contextj_rule(int32_t *label, int index, size_t len) + return false; /* No previous character */ + } + unicode_props = utf8proc_get_property(label[index - 1]); +- if (unicode_props->combining_class == IDNA_UNICODE_CCC_VIRAMA) { ++ if (unicode_props->combining_class == UTF8PROC_BIDI_CLASS_EN) { + return true; + } + +-- +2.24.0 +