<?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>9067</bug_id>
          
          <creation_ts>2016-02-05 11:02:16 +0000</creation_ts>
          <short_desc>make: don&apos;t crash if ttyname fails</short_desc>
          <delta_ts>2016-03-15 22:55:34 +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>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>Need info to backport to Jethro - By Rebecca</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Larsson">alexl</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>anuj.mittal</cc>
    
    <cc>mei.yeen.ng</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>rebecca.swee.fun.chang</cc>
    
    <cc>ross.burton</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>58633</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Larsson">alexl</who>
    <bug_when>2016-02-05 11:02:16 +0000</bug_when>
    <thetext>In some cases ttyname can return NULL, which makes make crash. The typical example of this is when you&apos;re in a chroot or container, and the app tty is not available in /proc/pts/*. 

This was fixed upstream by:
http://git.savannah.gnu.org/cgit/make.git/commit/?id=292da6f6867b75a5af7ddbb639a1feae022f438f

but there is no release with this in yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59779</commentid>
    <comment_count>1</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2016-03-08 05:47:01 +0000</bug_when>
    <thetext>I would like to submit the patch generated from:
http://git.savannah.gnu.org/cgit/make.git/commit/?id=292da6f6867b75a5af7ddbb639a1feae022f438f

to OE-Core master and backport it to Jethro as bug fix.

My implementation in make_4.1.bb would be like this:
SRC_URI += &quot;file://0001-main.c-main-SV-43434-Handle-NULL-returns-from-ttynam.patch&quot;

Any objections/comment before I send my implementation to OE-Core?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59851</commentid>
    <comment_count>2</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2016-03-10 04:04:25 +0000</bug_when>
    <thetext>Implementation submitted to OE-Core.
http://lists.openembedded.org/pipermail/openembedded-core/2016-March/118753.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59918</commentid>
    <comment_count>3</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2016-03-14 06:00:03 +0000</bug_when>
    <thetext>Patch has been merged into OE-Core master branch.
http://git.openembedded.org/openembedded-core/commit/?id=0fe2a4b428b1b9a937914d87ec089b5a64f641eb

What is procedure to get it backport to Jethro? I have used [master][jethro] tag at the Subject when I submit the patch. But it is not merge into jethro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59988</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-15 20:57:06 +0000</bug_when>
    <thetext>Marking as resolved as this is fixed in oe-core 0fe2a4b428b1b9a937914d87ec089b5a64f641eb.

If you want to get this in jethro then submit the patch against origin/jethro to the oe-core list with the [jethro] tag in the subject.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59991</commentid>
    <comment_count>5</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2016-03-15 22:55:34 +0000</bug_when>
    <thetext>Thanks. Robert has staged this patch in his branch for jethro update.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>