<?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>13691</bug_id>
          
          <creation_ts>2019-12-07 13:40:57 +0000</creation_ts>
          <short_desc>Building Poky with MUSL results in xterm not working</short_desc>
          <delta_ts>2020-02-13 16:09:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>with backport</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>anon2313</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>akuster</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>85763</commentid>
    <comment_count>0</comment_count>
    <who name="">anon2313</who>
    <bug_when>2019-12-07 13:40:57 +0000</bug_when>
    <thetext>The setup I am trying to use is:
Poky Zeus and meta-openembedded Zeus

Add these lines to local.conf:
MACHINE = &quot;genericx86-64&quot;
IMAGE_INSTALL_append = &quot; xterm&quot;
TCLIBC = &quot;musl&quot;

Then build core-image-x11 and run it on a regular PC.

When starting xterm it will print to the console an endless loop of I/O errors.
&quot;open ttydev:  I/O error&quot;

This works correctly if you don&apos;t set TCLIBC when building the system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85776</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-12-10 11:19:55 +0000</bug_when>
    <thetext>Khem, seen this before?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85785</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2019-12-10 18:31:42 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Khem, seen this before?

Not directly. core-image-x11 worked fine. xterm might be a different story can you try this patch

https://gist.github.com/kraj/d30b2a07b7e2255420a024afb77a1a95</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85789</commentid>
    <comment_count>3</comment_count>
    <who name="">anon2313</who>
    <bug_when>2019-12-10 23:21:05 +0000</bug_when>
    <thetext>Thanks, that fixed it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85810</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-12-12 16:00:18 +0000</bug_when>
    <thetext>Khem, can you submit this patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85822</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2019-12-12 20:23:47 +0000</bug_when>
    <thetext>patch sent for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86425</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-02-13 16:07:46 +0000</bug_when>
    <thetext>Khem, merged?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86426</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-02-13 16:09:48 +0000</bug_when>
    <thetext>Yes it can be closed I think</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>