From 55957998126ce4c97a29c253aaadab866e3fafb1 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Thu, 28 Jan 2021 08:04:35 +0100 Subject: [PATCH] package/gdk-pixbuf: link with lintl if needed Fixes: - http://autobuild.buildroot.org/results/4dc94dadbc17e06a214478644f29877fe205f93d Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- ...eson.build-link-with-lintl-if-needed.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/gdk-pixbuf/0001-meson.build-link-with-lintl-if-needed.patch diff --git a/package/gdk-pixbuf/0001-meson.build-link-with-lintl-if-needed.patch b/package/gdk-pixbuf/0001-meson.build-link-with-lintl-if-needed.patch new file mode 100644 index 0000000000..08a3a681cf --- /dev/null +++ b/package/gdk-pixbuf/0001-meson.build-link-with-lintl-if-needed.patch @@ -0,0 +1,45 @@ +From 65c8bc8ec4ae8dd140b0205a61d0d216fa45d819 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Thu, 28 Jan 2021 07:50:44 +0100 +Subject: [PATCH] meson.build: link with lintl if needed + +Link with -lintl to avoid the following build failure: + +/home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: gdk-pixbuf/libgdk_pixbuf-2.0.so.0.4200.2.p/gdk-pixbuf-util.c.o: in function `_gdk_pixbuf_init_gettext': +gdk-pixbuf-util.c:(.text+0xbc0): undefined reference to `libintl_bindtextdomain' +/home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: gdk-pixbuf-util.c:(.text+0xbc8): undefined reference to `libintl_bindtextdomain' + +Fixes: + - http://autobuild.buildroot.org/results/894359558100ea9637feba16deaf99923805d0f2 + +Signed-off-by: Fabrice Fontaine +[Upstream status: +https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/101] +--- + meson.build | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 1cef125a3..973948108 100644 +--- a/meson.build ++++ b/meson.build +@@ -93,6 +93,7 @@ if cc.has_function('lrint', dependencies: mathlib_dep) + gdk_pixbuf_conf.set('HAVE_LRINT', 1) + endif + ++intl_dep = cc.find_library('intl', required: false) + if cc.has_function('bind_textdomain_codeset', prefix: '#include ') + gdk_pixbuf_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1) + endif +@@ -212,7 +213,7 @@ if medialib_dep.found() + endif + + gdk_pixbuf_deps = [ mathlib_dep, glib_dep, gobject_dep, gmodule_dep, gio_dep, +- shared_mime_dep, medialib_dep ] ++ shared_mime_dep, medialib_dep, intl_dep ] + + # Check if we can build shared modules + if gmodule_dep.type_name() == 'pkgconfig' +-- +2.29.2 + -- 2.30.2