Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mike Crowe <mac@mcrowe.com>
To: openembedded-core@lists.openembedded.org
Cc: Mike Crowe <mac@mcrowe.com>
Subject: [PATCH] glib-networking: Support building with USE_NLS=no
Date: Tue, 30 Jul 2019 12:00:35 +0100	[thread overview]
Message-ID: <20190730110035.4806-1-mac@mcrowe.com> (raw)

As reported in
http://lists.openembedded.org/pipermail/openembedded-core/2019-February/279344.html
, glib-networking no longer configures successfully if USE_NLS="no":

| po/meson.build:1:5: ERROR:  Can not do gettext because xgettext is not installed.

In the current absence of anything better, it seems that this can be
overcome by telling Meson not to look in the po/ directory.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 .../glib-networking/glib-networking_2.60.2.bb          | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-core/glib-networking/glib-networking_2.60.2.bb b/meta/recipes-core/glib-networking/glib-networking_2.60.2.bb
index 4d4fe64916..fa7fddfe44 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.60.2.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.60.2.bb
@@ -30,3 +30,13 @@ FILES_${PN} += "\
                 "
 FILES_${PN}-dev += "${libdir}/gio/modules/libgio*.la"
 FILES_${PN}-staticdev += "${libdir}/gio/modules/libgio*.a"
+
+# meson lacks support for --disable-nls.
+disable_nls() {
+    sed -i "/subdir('po')/d" ${S}/meson.build
+}
+
+do_unpack_append() {
+    if d.getVar('USE_NLS') == 'no':
+        bb.build.exec_func('disable_nls', d)
+}
-- 
2.20.1



             reply	other threads:[~2019-07-30 11:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 11:00 Mike Crowe [this message]
     [not found] ` <ea261419-94c4-7dc1-92d0-c38ef6228bd6@intel.com>
     [not found]   ` <20190730130316.GA17561@mcrowe.com>
2019-07-30 13:06     ` [PATCH] glib-networking: Support building with USE_NLS=no Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190730110035.4806-1-mac@mcrowe.com \
    --to=mac@mcrowe.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox