<?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>9250</bug_id>
          
          <creation_ts>2016-03-14 15:07:30 +0000</creation_ts>
          <short_desc>Failing to create npm packages when modules has special characters in their names</short_desc>
          <delta_ts>2016-04-21 15:29:28 +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>devtools / tool chain</component>
          <version>2.1</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sudarsana Nagineni">sudarsana.nagineni</reporter>
          <assigned_to name="Brendan Le Foll">brendan.le.foll</assigned_to>
          <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59942</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni">sudarsana.nagineni</who>
    <bug_when>2016-03-14 15:07:30 +0000</bug_when>
    <thetext>Some of the node modules have &apos;_&apos; in their names (e.g. string_decoder) and causing the following failure when creating npm packages with bitbake.

| Packaged contents of coap-readable-stream-process-nextick-args into /dev/image/build/tmp-glibc/work/corei7-64-ostro-linux/coap/0.14.0-r0/deploy-ipks/corei7-64/coap-readable-stream-process-nextick-args_1.0.6-r0_corei7-64.ipk

| coap-readable-stream-string_decoder
| *** Error: Package name  contains illegal characters, (other than [a-z0-9.+-])

| 
| opkg-build: Please fix the above errors and try again.
| DEBUG: Python function do_package_ipk finished
| DEBUG: Python function do_package_write_ipk finished
| ERROR: Function failed: opkg-build execution failed

To reproduce the issue, try with the &apos;coap&apos; module which is dependent on string_decoder - https://www.npmjs.com/package/coap</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61512</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-04-21 15:29:28 +0000</bug_when>
    <thetext>Seems to be fixed.


commit 69e20cade69af6b7563581a6f03e95667ab09c43
Author: Brendan Le Foll &lt;brendan.le.foll@intel.com&gt;
Date:   Tue Apr 12 10:58:39 2016 +0100

    npm.bbclass: Stop packagenames containing underscores from being generated
    
    Package names cannot contain underscores yet some npm modules use them as part
    of the name, replace them with hyphens in the package name.
    
    (From OE-Core rev: fea932c79c8201e3e7649f4443874ea540e33461)
    
    Signed-off-by: Brendan Le Foll &lt;brendan.le.foll@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>