<?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>11965</bug_id>
          
          <creation_ts>2017-08-23 08:11:03 +0000</creation_ts>
          <short_desc>autogen-native: /bin/sh: bad interpreter: Permission denied</short_desc>
          <delta_ts>2017-11-16 00:24:49 +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.3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Yi Zhao">yi.zhao</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yi.zhao</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>76075</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-08-23 08:11:03 +0000</bug_when>
    <thetext>1) pyro (I guess all versions)

2) remove SSTATE MIRROR and SSTATE cache

3) bitbake -c cleansstate autogen-native &amp;&amp; bitbake autogen-native

...

/bin/sh: ../autoopts/tpl/texi2mdoc: /tmp/yocto-autobuilder/yocto-autobuilder/
yocto-worker/res-custom-pyro-multi-: bad interpreter: Permission denied

...

The problem boils down to the the fact, that the variable POSIX_SHELL as shebang doesn&apos;t work when the path is longer than BINPRM_BUF_SIZE which is 128 usually. So use &quot;/bin/sh&quot; instead.

Proposed patch: 

https://github.com/RobertBerger/poky/commit/92a17c9074538a38d3d11c063be624f6c62a6352</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78228</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-11-16 00:24:49 +0000</bug_when>
    <thetext>The autogen-native recipe had been removed in 2.4 with commit: 765fec2f363aeb0540970c57217a2ea1aab8e088</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>