* [Buildroot] [PATCH 1/2] util-linux: fix BR2_PACKAGE_UTIL_LINUX_UUIDD option
2011-08-08 11:58 [Buildroot] util-linux compile problems Sven Neumann
@ 2011-08-08 11:58 ` Sven Neumann
2011-08-08 18:06 ` Peter Korsgaard
2011-08-08 11:58 ` [Buildroot] [PATCH 2/2] util-linux: disable NLS Sven Neumann
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Sven Neumann @ 2011-08-08 11:58 UTC (permalink / raw)
To: buildroot
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
package/util-linux/util-linux.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 570a1d1..d34759b 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -35,7 +35,7 @@ UTIL_LINUX_CONF_OPT += \
$(if $(BR2_PACKAGE_UTIL_LINUX_FSCK),,--disable-fsck) \
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),,--disable-libmount) \
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBUUID),,--disable-libuuid) \
- $(if $(BR2_PACKAGE_UTIL_LINUX_UUID),,--disable-uuid) \
+ $(if $(BR2_PACKAGE_UTIL_LINUX_UUIDD),,--disable-uuidd) \
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),,--disable-libblkid) \
$(if $(BR2_PACKAGE_UTIL_LINUX_AGETTY),,--disable-agetty) \
$(if $(BR2_PACKAGE_UTIL_LINUX_CRAMFS),,--disable-cramfs) \
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 2/2] util-linux: disable NLS
2011-08-08 11:58 [Buildroot] util-linux compile problems Sven Neumann
2011-08-08 11:58 ` [Buildroot] [PATCH 1/2] util-linux: fix BR2_PACKAGE_UTIL_LINUX_UUIDD option Sven Neumann
@ 2011-08-08 11:58 ` Sven Neumann
2011-08-08 12:13 ` [Buildroot] util-linux compile problems Yegor Yefremov
2011-08-08 18:05 ` Peter Korsgaard
3 siblings, 0 replies; 12+ messages in thread
From: Sven Neumann @ 2011-08-08 11:58 UTC (permalink / raw)
To: buildroot
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
package/util-linux/util-linux.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index d34759b..9f9d2a8 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -11,7 +11,7 @@ UTIL_LINUX_AUTORECONF = YES
UTIL_LINUX_INSTALL_STAGING = YES
UTIL_LINUX_DEPENDENCIES = host-pkg-config
-UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown
+UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown --disable-nls
# If both util-linux and busybox are selected, make certain util-linux
# wins the fight over who gets to have their utils actually installed
--
1.7.4.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-08 11:58 [Buildroot] util-linux compile problems Sven Neumann
2011-08-08 11:58 ` [Buildroot] [PATCH 1/2] util-linux: fix BR2_PACKAGE_UTIL_LINUX_UUIDD option Sven Neumann
2011-08-08 11:58 ` [Buildroot] [PATCH 2/2] util-linux: disable NLS Sven Neumann
@ 2011-08-08 12:13 ` Yegor Yefremov
2011-08-08 12:24 ` Sven Neumann
2011-08-08 18:05 ` Peter Korsgaard
3 siblings, 1 reply; 12+ messages in thread
From: Yegor Yefremov @ 2011-08-08 12:13 UTC (permalink / raw)
To: buildroot
Hi Sven,
> after updating buildroot we are getting compile errors from building
> util-linux. First the linker was complaining that it couldn't find
> libintl_gettext and related symbols. I was able to fix that by
> passing --disable-nls to the configure script (patch follows).
I've tried the 2.20-rc1 and also found this problem, that I didn't see before. I got rid of it by selecting libintl and adding it to build dependencies. Could you try this?
> Now I am getting errors all over the place because
> program_invocation_short_name is not defined. This is correct
> and there's a configure check to test for this. Based on this check
> a fallback is provided by include/c.h. However this file is not
> included from all places that use program_invocation_short_name.
>
> Now I wonder if this would best be fixed by patching all affected
> source files in util-linux or if UCLIBC_HAS_PROGRAM_INVOCATION_NAME
> should be selected when util-linux is selected.
Yegor
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-08 12:13 ` [Buildroot] util-linux compile problems Yegor Yefremov
@ 2011-08-08 12:24 ` Sven Neumann
0 siblings, 0 replies; 12+ messages in thread
From: Sven Neumann @ 2011-08-08 12:24 UTC (permalink / raw)
To: buildroot
On Mon, 2011-08-08 at 14:13 +0200, Yegor Yefremov wrote:
> Hi Sven,
>
> > after updating buildroot we are getting compile errors from building
> > util-linux. First the linker was complaining that it couldn't find
> > libintl_gettext and related symbols. I was able to fix that by
> > passing --disable-nls to the configure script (patch follows).
>
> I've tried the 2.20-rc1 and also found this problem, that I didn't see
> before. I got rid of it by selecting libintl and adding it to build
> dependencies. Could you try this?
Well, I don't think that libintl should be selected only because a few
tools from util-linux gain native language support then. But I agree
that it might be better only to use --disable-nls if libintl is not
selected already.
Sven
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-08 11:58 [Buildroot] util-linux compile problems Sven Neumann
` (2 preceding siblings ...)
2011-08-08 12:13 ` [Buildroot] util-linux compile problems Yegor Yefremov
@ 2011-08-08 18:05 ` Peter Korsgaard
2011-08-08 19:16 ` Peter Korsgaard
3 siblings, 1 reply; 12+ messages in thread
From: Peter Korsgaard @ 2011-08-08 18:05 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Sven> Hi,
Sven> after updating buildroot we are getting compile errors from building
Sven> util-linux. First the linker was complaining that it couldn't find
Sven> libintl_gettext and related symbols. I was able to fix that by
Sven> passing --disable-nls to the configure script (patch follows).
Sven> Now I am getting errors all over the place because
Sven> program_invocation_short_name is not defined. This is correct
Sven> and there's a configure check to test for this. Based on this check
Sven> a fallback is provided by include/c.h. However this file is not
Sven> included from all places that use program_invocation_short_name.
Sven> Now I wonder if this would best be fixed by patching all affected
Sven> source files in util-linux or if UCLIBC_HAS_PROGRAM_INVOCATION_NAME
Sven> should be selected when util-linux is selected.
We got rid of the BR2_PROGRAM_INVOCATION option back on the 27/7, as the
dependencies got quite messy and it only adds ~100 bytes to uClibc, so
check your uclibc .config.
We already pass --disable-nls unless you have locales enabled, so
perhaps it needs similar handling as libglib2 for uClibc (select
LIBINTIL if BR2_NEEDS_GETTEXT). Thomas also mentioned something about
that, but I haven't done a locale build lately to test. Will do so now.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 12+ messages in thread* [Buildroot] util-linux compile problems
2011-08-08 18:05 ` Peter Korsgaard
@ 2011-08-08 19:16 ` Peter Korsgaard
2011-08-09 9:50 ` Sven Neumann
0 siblings, 1 reply; 12+ messages in thread
From: Peter Korsgaard @ 2011-08-08 19:16 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes:
Hi,
Peter> We already pass --disable-nls unless you have locales enabled,
Peter> so perhaps it needs similar handling as libglib2 for uClibc
Peter> (select LIBINTIL if BR2_NEEDS_GETTEXT). Thomas also mentioned
Peter> something about that, but I haven't done a locale build lately
Peter> to test. Will do so now.
It seems to work fine here with:
BR2_arm=y
BR2_arm926t=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_PACKAGE_UTIL_LINUX=y
BR2_PACKAGE_UTIL_LINUX_MOUNT=y
BR2_PACKAGE_UTIL_LINUX_FSCK=y
BR2_PACKAGE_UTIL_LINUX_LIBMOUNT=y
BR2_PACKAGE_UTIL_LINUX_UUIDD=y
BR2_PACKAGE_UTIL_LINUX_AGETTY=y
BR2_PACKAGE_UTIL_LINUX_CRAMFS=y
BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT=y
BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT=y
BR2_PACKAGE_UTIL_LINUX_FALLOCATE=y
BR2_PACKAGE_UTIL_LINUX_UNSHARE=y
BR2_PACKAGE_UTIL_LINUX_RENAME=y
BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS=y
BR2_PACKAGE_UTIL_LINUX_WALL=y
BR2_PACKAGE_UTIL_LINUX_ARCH=y
BR2_PACKAGE_UTIL_LINUX_INIT=y
BR2_PACKAGE_UTIL_LINUX_KILL=y
BR2_PACKAGE_UTIL_LINUX_LAST=y
BR2_PACKAGE_UTIL_LINUX_MESG=y
BR2_PACKAGE_UTIL_LINUX_PARTX=y
BR2_PACKAGE_UTIL_LINUX_RAW=y
BR2_PACKAGE_UTIL_LINUX_RESET=y
BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS=y
BR2_PACKAGE_UTIL_LINUX_WRITE=y
E.G. locale support and all util-linux options enabled, but no
gettext/libintl.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-08 19:16 ` Peter Korsgaard
@ 2011-08-09 9:50 ` Sven Neumann
2011-08-09 14:18 ` Peter Korsgaard
0 siblings, 1 reply; 12+ messages in thread
From: Sven Neumann @ 2011-08-09 9:50 UTC (permalink / raw)
To: buildroot
Hi,
On Mon, 2011-08-08 at 21:16 +0200, Peter Korsgaard wrote:
> >>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes:
>
> Hi,
>
> Peter> We already pass --disable-nls unless you have locales enabled,
> Peter> so perhaps it needs similar handling as libglib2 for uClibc
> Peter> (select LIBINTIL if BR2_NEEDS_GETTEXT). Thomas also mentioned
> Peter> something about that, but I haven't done a locale build lately
> Peter> to test. Will do so now.
>
> It seems to work fine here with:
>
> BR2_arm=y
> BR2_arm926t=y
> BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
> BR2_PACKAGE_UTIL_LINUX=y
> BR2_PACKAGE_UTIL_LINUX_MOUNT=y
> BR2_PACKAGE_UTIL_LINUX_FSCK=y
> BR2_PACKAGE_UTIL_LINUX_LIBMOUNT=y
> BR2_PACKAGE_UTIL_LINUX_UUIDD=y
> BR2_PACKAGE_UTIL_LINUX_AGETTY=y
> BR2_PACKAGE_UTIL_LINUX_CRAMFS=y
> BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT=y
> BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT=y
> BR2_PACKAGE_UTIL_LINUX_FALLOCATE=y
> BR2_PACKAGE_UTIL_LINUX_UNSHARE=y
> BR2_PACKAGE_UTIL_LINUX_RENAME=y
> BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS=y
> BR2_PACKAGE_UTIL_LINUX_WALL=y
> BR2_PACKAGE_UTIL_LINUX_ARCH=y
> BR2_PACKAGE_UTIL_LINUX_INIT=y
> BR2_PACKAGE_UTIL_LINUX_KILL=y
> BR2_PACKAGE_UTIL_LINUX_LAST=y
> BR2_PACKAGE_UTIL_LINUX_MESG=y
> BR2_PACKAGE_UTIL_LINUX_PARTX=y
> BR2_PACKAGE_UTIL_LINUX_RAW=y
> BR2_PACKAGE_UTIL_LINUX_RESET=y
> BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS=y
> BR2_PACKAGE_UTIL_LINUX_WRITE=y
>
> E.G. locale support and all util-linux options enabled, but no
> gettext/libintl.
Well, it works for me in that configuration as well. But it doesn't work
for the configuration that has locale support enabled and
gettext/libintl:
BR2_ENABLE_LOCALE=y
BR2_NEEDS_GETTEXT=y
BR2_NEEDS_GETTEXT_IF_LOCALE=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_PACKAGE_GETTEXT=y
BR2_PACKAGE_LIBINTL=y
I've tried the following patch, but it doesn't seem to help:
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 816130d..ed0ba8b 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -1,5 +1,7 @@
config BR2_PACKAGE_UTIL_LINUX
bool "util-linux"
+ select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
+ select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
depends on BR2_LARGEFILE
depends on BR2_USE_WCHAR
help
diff --git a/package/util-linux/util-linux.mk
b/package/util-linux/util-linux.mk
index d34759b..c124256 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -9,7 +9,7 @@ UTIL_LINUX_SOURCE =
util-linux-$(UTIL_LINUX_VERSION).tar.bz2
UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v
$(UTIL_LINUX_VER
UTIL_LINUX_AUTORECONF = YES
UTIL_LINUX_INSTALL_STAGING = YES
-UTIL_LINUX_DEPENDENCIES = host-pkg-config
+UTIL_LINUX_DEPENDENCIES = host-pkg-config $(if
$(BR2_NEEDS_GETTEXT_IF_LOCALE),g
UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] util-linux compile problems
2011-08-09 9:50 ` Sven Neumann
@ 2011-08-09 14:18 ` Peter Korsgaard
2011-08-11 7:56 ` Sven Neumann
0 siblings, 1 reply; 12+ messages in thread
From: Peter Korsgaard @ 2011-08-09 14:18 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Hi,
Sven> Well, it works for me in that configuration as well. But it
Sven> doesn't work for the configuration that has locale support
Sven> enabled and gettext/libintl:
Sven> BR2_ENABLE_LOCALE=y
Sven> BR2_NEEDS_GETTEXT=y
Sven> BR2_NEEDS_GETTEXT_IF_LOCALE=y
Sven> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
Sven> BR2_PACKAGE_GETTEXT=y
Sven> BR2_PACKAGE_LIBINTL=y
Sven> I've tried the following patch, but it doesn't seem to help:
Ahh, ok - That's easy to fix, similar to how we do it E.G. with
avahi. I've committed a fix doing that.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-09 14:18 ` Peter Korsgaard
@ 2011-08-11 7:56 ` Sven Neumann
2011-08-12 8:28 ` Peter Korsgaard
0 siblings, 1 reply; 12+ messages in thread
From: Sven Neumann @ 2011-08-11 7:56 UTC (permalink / raw)
To: buildroot
Hi,
On Tue, 2011-08-09 at 16:18 +0200, Peter Korsgaard wrote:
> Sven> Well, it works for me in that configuration as well. But it
> Sven> doesn't work for the configuration that has locale support
> Sven> enabled and gettext/libintl:
>
> Sven> BR2_ENABLE_LOCALE=y
> Sven> BR2_NEEDS_GETTEXT=y
> Sven> BR2_NEEDS_GETTEXT_IF_LOCALE=y
> Sven> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
> Sven> BR2_PACKAGE_GETTEXT=y
> Sven> BR2_PACKAGE_LIBINTL=y
>
> Sven> I've tried the following patch, but it doesn't seem to help:
>
> Ahh, ok - That's easy to fix, similar to how we do it E.G. with
> avahi. I've committed a fix doing that.
That fix seems to do the trick. But now the build fails when it tries to
install the translations:
Making install in po
make[2]: Entering directory
`/home/sven/git/buildroot/output/build/util-linux-2.19.1/po'
/bin/sh
@MKINSTALLDIRS@ /home/sven/git/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/share
/bin/sh: Can't open @MKINSTALLDIRS@
make[2]: *** [install-data-yes] Error 127
Sven
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] util-linux compile problems
2011-08-11 7:56 ` Sven Neumann
@ 2011-08-12 8:28 ` Peter Korsgaard
0 siblings, 0 replies; 12+ messages in thread
From: Peter Korsgaard @ 2011-08-12 8:28 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Sven> That fix seems to do the trick. But now the build fails when it tries to
Sven> install the translations:
Sven> Making install in po
Sven> make[2]: Entering directory
Sven> `/home/sven/git/buildroot/output/build/util-linux-2.19.1/po'
Sven> /bin/sh
Sven> @MKINSTALLDIRS@ /home/sven/git/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/share
Sven> /bin/sh: Can't open @MKINSTALLDIRS@
Sven> make[2]: *** [install-data-yes] Error 127
Ahh, see it now. I've fixed it in git. The problem is that util-linux
use mkinstalldirs to install .po files, and it gets the definition of it
from a custom nls.m4 (based on the one from gettext). If you have
gettext enabled, then we end up using that one instead when we
autoreconf util-linux.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 12+ messages in thread