Bug 11285 - net-tools_1.60-26.bb only works with NLS
Summary: net-tools_1.60-26.bb only works with NLS
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jussi Kukkonen
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-04-02 09:09 UTC by Holger Freyther
Modified: 2017-04-06 12:11 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Freyther 2017-04-02 09:09:49 UTC
net-tools will unconditionally use msgfmt which will fail when NLS is not enabled (e.g. only gettext-lite installed):


| msgfmt -o de.mo de.po
| make[1]: msgfmt: Command not found
Comment 1 Jussi Kukkonen 2017-04-03 08:46:23 UTC
Is there an easy way to reproduce this? Google provides 4 (unrelated) hits for "gettext-lite"...
Comment 2 Holger Freyther 2017-04-03 11:43:58 UTC
USE_NLS="no" into your local.conf?
Comment 3 Jussi Kukkonen 2017-04-04 10:25:42 UTC
I've sent a patch to mailing list.

Other notes:
* USE_NLS probably should be turned into a DISTRO_FEATURE: it's currently undocumented and the logic is just difficult to follow
* there are half a dozen other recipes in oe-core that fail to build with USE_NLS="no"
* bug 11239 (native recipes should not care about DISTRO_FEATURES) is semi-related as USE_NLS is alredy working around an issue that would be solved by that bug if NLS was a distro feature
Comment 4 Holger Freyther 2017-04-04 15:42:42 UTC
"poky-tiny" is a user of USE_NLS="no". The net-tools error comes from

1st) Not using autotools and unconditionally calling msgfmt
2nd) The new per recipe sysroot that doesn't install msgfmt (and not picking it from the host environment)
Comment 5 Jussi Kukkonen 2017-04-06 12:11:24 UTC
commit a99bb57bba2be693e2519bb4d18da181eb7634f9
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Tue Apr 4 11:09:29 2017 +0300

    net-tools: Fix build with USE_NLS="no"
    
    The configuration change was already done for -native but
    we really want it when USE_NLS is set.
    
    Fixes [YOCTO #11285].
    
    (From OE-Core rev: 95d6910bb5d9331adb7a693fcb4f7b1271c68cc6)
    
    Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>