* [Buildroot] [PATCH 1/1] package/ncmpc: fix build with NLS
@ 2019-04-21 17:27 Fabrice Fontaine
2019-04-22 20:28 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2019-04-21 17:27 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/d53978fb30d77cb4d10921bf721eff3d066567ce
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...eson.build-link-with-lintl-if-needed.patch | 38 +++++++++++++++++++
package/ncmpc/ncmpc.mk | 7 +++-
2 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 package/ncmpc/0002-meson.build-link-with-lintl-if-needed.patch
diff --git a/package/ncmpc/0002-meson.build-link-with-lintl-if-needed.patch b/package/ncmpc/0002-meson.build-link-with-lintl-if-needed.patch
new file mode 100644
index 0000000000..248086fb65
--- /dev/null
+++ b/package/ncmpc/0002-meson.build-link-with-lintl-if-needed.patch
@@ -0,0 +1,38 @@
+From 21ad6bf2bcb0745c25a28637449a72eee883a8e2 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 21 Apr 2019 19:19:10 +0200
+Subject: [PATCH] meson.build: link with lintl if needed
+
+Fixes:
+ - http://autobuild.buildroot.org/results/d53978fb30d77cb4d10921bf721eff3d066567ce
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: not sent as upstream already rejected the first patch
+on atomic: https://github.com/MusicPlayerDaemon/ncmpc/pull/45]
+---
+ meson.build | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/meson.build b/meson.build
+index 2e6defc..28e9d29 100644
+--- a/meson.build
++++ b/meson.build
+@@ -42,6 +42,7 @@ else
+ endif
+ conf.set('ENABLE_NLS', enable_nls)
+ if enable_nls
++ intl_dep = cc.find_library('intl', required: false)
+ conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
+ subdir('po')
+ endif
+@@ -356,6 +357,7 @@ ncmpc = executable('ncmpc',
+ boost_dep,
+ pcre_dep,
+ curses_dep,
++ intl_dep,
+ lirc_dep,
+ libmpdclient_dep,
+ ],
+--
+2.20.1
+
diff --git a/package/ncmpc/ncmpc.mk b/package/ncmpc/ncmpc.mk
index 88cf313249..f0fe3fe374 100644
--- a/package/ncmpc/ncmpc.mk
+++ b/package/ncmpc/ncmpc.mk
@@ -8,7 +8,12 @@ NCMPC_VERSION_MAJOR = 0
NCMPC_VERSION = $(NCMPC_VERSION_MAJOR).34
NCMPC_SOURCE = ncmpc-$(NCMPC_VERSION).tar.xz
NCMPC_SITE = http://www.musicpd.org/download/ncmpc/$(NCMPC_VERSION_MAJOR)
-NCMPC_DEPENDENCIES = boost host-pkgconf libmpdclient ncurses
+NCMPC_DEPENDENCIES = \
+ boost \
+ host-pkgconf \
+ libmpdclient \
+ ncurses \
+ $(TARGET_NLS_DEPENDENCIES)
NCMPC_LICENSE = GPL-2.0+
NCMPC_LICENSE_FILES = COPYING
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/ncmpc: fix build with NLS
2019-04-21 17:27 [Buildroot] [PATCH 1/1] package/ncmpc: fix build with NLS Fabrice Fontaine
@ 2019-04-22 20:28 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-22 20:28 UTC (permalink / raw)
To: buildroot
On Sun, 21 Apr 2019 19:27:16 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/d53978fb30d77cb4d10921bf721eff3d066567ce
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...eson.build-link-with-lintl-if-needed.patch | 38 +++++++++++++++++++
> package/ncmpc/ncmpc.mk | 7 +++-
> 2 files changed, 44 insertions(+), 1 deletion(-)
> create mode 100644 package/ncmpc/0002-meson.build-link-with-lintl-if-needed.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-22 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-21 17:27 [Buildroot] [PATCH 1/1] package/ncmpc: fix build with NLS Fabrice Fontaine
2019-04-22 20:28 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox