* [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error
@ 2014-10-19 14:49 Bernd Kuhls
2014-10-26 21:09 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2014-10-19 14:49 UTC (permalink / raw)
To: buildroot
ALSA_UTILS_GETTEXTIZE = YES
is also needed to fix
*** error: gettext infrastructure mismatch: using a Makefile.in.in from
gettext version 0.18 but the autoconf macros are from gettext version 0.19
To reproduce the build error make sure gettext is build before alsa-utils
by also applying this patch: http://patchwork.ozlabs.org/patch/400779/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: - english error message (Baruch, Yann)
- add comment why _AUTORECONF/_GETTEXTIZE are needed (Baruch, Yann)
- point out that gettext has to be built before alsa-utils to reproduce the
bug
package/alsa-utils/alsa-utils-0001-libintl.patch | 23 ++++++++++++++++++++++
package/alsa-utils/alsa-utils.mk | 5 +++++
2 files changed, 28 insertions(+)
create mode 100644 package/alsa-utils/alsa-utils-0001-libintl.patch
diff --git a/package/alsa-utils/alsa-utils-0001-libintl.patch b/package/alsa-utils/alsa-utils-0001-libintl.patch
new file mode 100644
index 0000000..0562ce8
--- /dev/null
+++ b/package/alsa-utils/alsa-utils-0001-libintl.patch
@@ -0,0 +1,23 @@
+Link against libintl if needed
+
+When built against a C library that has locale support, but for which
+intl support is provided by an external libintl library, alsamixer
+forgets to link against this library, even though the configure script
+properly checks that.
+
+This patch therefore ensure that we link against libintl when needed,
+thanks to the @LIBINTL@ variable provided by the configure script.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+
+diff -uNr alsa-utils-1.0.28.org/alsamixer/Makefile.am alsa-utils-1.0.28/alsamixer/Makefile.am
+--- alsa-utils-1.0.28.org/alsamixer/Makefile.am 2014-06-13 19:21:05.000000000 +0200
++++ alsa-utils-1.0.28/alsamixer/Makefile.am 2014-10-19 13:13:09.333149017 +0200
+@@ -1,5 +1,5 @@
+ AM_CFLAGS = @CURSES_CFLAGS@ -DCURSESINC="@CURSESINC@"
+-LDADD = @CURSESLIB@
++LDADD = @CURSESLIB@ @LIBINTL@
+
+ bin_PROGRAMS = alsamixer
+ alsamixer_SOURCES = card_select.c card_select.h \
diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index d42d06f..746e36a 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -10,6 +10,11 @@ ALSA_UTILS_SITE = ftp://ftp.alsa-project.org/pub/utils
ALSA_UTILS_LICENSE = GPLv2
ALSA_UTILS_LICENSE_FILES = COPYING
ALSA_UTILS_INSTALL_STAGING = YES
+
+# alsa-utils-0001-libintl.patch patches alsamixer/Makefile.am
+ALSA_UTILS_AUTORECONF = YES
+ALSA_UTILS_GETTEXTIZE = YES
+
ALSA_UTILS_DEPENDENCIES = host-gettext host-pkgconf alsa-lib \
$(if $(BR2_PACKAGE_NCURSES),ncurses)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error
2014-10-19 14:49 [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error Bernd Kuhls
@ 2014-10-26 21:09 ` Thomas Petazzoni
2014-10-27 20:40 ` Bernd Kuhls
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-10-26 21:09 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 19 Oct 2014 16:49:10 +0200, Bernd Kuhls wrote:
> ALSA_UTILS_GETTEXTIZE = YES
>
> is also needed to fix
>
> *** error: gettext infrastructure mismatch: using a Makefile.in.in from
> gettext version 0.18 but the autoconf macros are from gettext version 0.19
>
> To reproduce the build error make sure gettext is build before alsa-utils
> by also applying this patch: http://patchwork.ozlabs.org/patch/400779/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Hum, I've built gettext and then alsa-utils, and I didn't see the
problem. Do you have a defconfig that exhibits the problem?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error
2014-10-26 21:09 ` Thomas Petazzoni
@ 2014-10-27 20:40 ` Bernd Kuhls
2014-10-27 21:07 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2014-10-27 20:40 UTC (permalink / raw)
To: buildroot
Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
@public.gmane.org> wrote in news:20141026220949.28c735c8 at free-electrons.com:
> Dear Bernd Kuhls,
>
> On Sun, 19 Oct 2014 16:49:10 +0200, Bernd Kuhls wrote:
>> ALSA_UTILS_GETTEXTIZE = YES
>>
>> is also needed to fix
>>
>> *** error: gettext infrastructure mismatch: using a Makefile.in.in from
>> gettext version 0.18 but the autoconf macros are from gettext version 0.19
>>
>> To reproduce the build error make sure gettext is build before alsa-utils
>> by also applying this patch: http://patchwork.ozlabs.org/patch/400779/
>>
>> Signed-off-by: Bernd Kuhls <bernd.kuhls-
zqRNUXuvxA0b1SvskN2V4Q@public.gmane.org>
>
> Hum, I've built gettext and then alsa-utils, and I didn't see the
> problem. Do you have a defconfig that exhibits the problem?
Hi,
I can not reproduce it either now, maybe I hit some weird combination during
my allyesconfig testing of the --enable-debug_for_all_packages patch.
I marked my patch[1] as rejected for now, if it is caught by the autobuilders
we can find the patch in the mailinglist archives ;)
Regards, Bernd
[1] http://patchwork.ozlabs.org/patch/400780/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error
2014-10-27 20:40 ` Bernd Kuhls
@ 2014-10-27 21:07 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-10-27 21:07 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Mon, 27 Oct 2014 21:40:25 +0100, Bernd Kuhls wrote:
> I can not reproduce it either now, maybe I hit some weird combination during
> my allyesconfig testing of the --enable-debug_for_all_packages patch.
>
> I marked my patch[1] as rejected for now, if it is caught by the autobuilders
> we can find the patch in the mailinglist archives ;)
Ok, thanks for the feedback. We'll see what happens in the autobuilders
then :)
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-27 21:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19 14:49 [Buildroot] [PATCH v2 1/1] package/alsa-utils: Fix gettext related build error Bernd Kuhls
2014-10-26 21:09 ` Thomas Petazzoni
2014-10-27 20:40 ` Bernd Kuhls
2014-10-27 21:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox