From 0884c9c6b390dd3fb8f94b2a74029aa422801907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= <bernhard.rosenkraenzer.ext@huawei.com> Date: Thu, 2 Sep 2021 20:47:37 +0200 Subject: [PATCH] gettext: Don't use internal copies of libxml, libcroco and friends MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use system libraries - it's better for code size as well as security (fix bugs in one place). Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com> --- .../recipes-core/gettext/gettext_%.bbappend | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-ohos-core/recipes-core/gettext/gettext_%.bbappend diff --git a/meta-ohos-core/recipes-core/gettext/gettext_%.bbappend b/meta-ohos-core/recipes-core/gettext/gettext_%.bbappend new file mode 100644 index 00000000..484f4e55 --- /dev/null +++ b/meta-ohos-core/recipes-core/gettext/gettext_%.bbappend @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +# Use system libraries instead of internal bundled copies. +# It's better for code size and security (fix bugs in one place), +# and startup time of something only run on a developer machine +# hardly matters. + +DEPENDS += "libxml2 libcroco glib-2.0" + +do_configure:prepend () { + # Get rid of forcing bundled library versions + sed -i -e 's,gl_LIBXML(\[yes\]),gl_LIBXML([no]),g' -e 's,gl_LIBCROCO(\[yes\]),gl_LIBCROCO([no]),g' -e 's,gl_LIBGLIB(\[yes\]),gl_LIBGLIB([no]),g' ${S}/libtextstyle/gnulib-m4/gnulib-comp.m4 + sed -i -e 's,force_included=yes,force_included=no,g' ${S}/configure ${S}/*/configure +} -- GitLab