<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11285</bug_id>
          
          <creation_ts>2017-04-02 09:09:49 +0000</creation_ts>
          <short_desc>net-tools_1.60-26.bb only works with NLS</short_desc>
          <delta_ts>2017-04-06 12:11:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Holger Freyther">holger</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71996</commentid>
    <comment_count>0</comment_count>
    <who name="Holger Freyther">holger</who>
    <bug_when>2017-04-02 09:09:49 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72007</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-04-03 08:46:23 +0000</bug_when>
    <thetext>Is there an easy way to reproduce this? Google provides 4 (unrelated) hits for &quot;gettext-lite&quot;...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72019</commentid>
    <comment_count>2</comment_count>
    <who name="Holger Freyther">holger</who>
    <bug_when>2017-04-03 11:43:58 +0000</bug_when>
    <thetext>USE_NLS=&quot;no&quot; into your local.conf?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72063</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-04-04 10:25:42 +0000</bug_when>
    <thetext>I&apos;ve sent a patch to mailing list.

Other notes:
* USE_NLS probably should be turned into a DISTRO_FEATURE: it&apos;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=&quot;no&quot;
* 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72070</commentid>
    <comment_count>4</comment_count>
    <who name="Holger Freyther">holger</who>
    <bug_when>2017-04-04 15:42:42 +0000</bug_when>
    <thetext>&quot;poky-tiny&quot; is a user of USE_NLS=&quot;no&quot;. The net-tools error comes from

1st) Not using autotools and unconditionally calling msgfmt
2nd) The new per recipe sysroot that doesn&apos;t install msgfmt (and not picking it from the host environment)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72130</commentid>
    <comment_count>5</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-04-06 12:11:24 +0000</bug_when>
    <thetext>commit a99bb57bba2be693e2519bb4d18da181eb7634f9
Author: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
Date:   Tue Apr 4 11:09:29 2017 +0300

    net-tools: Fix build with USE_NLS=&quot;no&quot;
    
    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 &lt;jussi.kukkonen@intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>