Bug 11965

Summary: autogen-native: /bin/sh: bad interpreter: Permission denied
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Berger <pokylinux>
Component: devtools / tool chainAssignee: Yi Zhao <yi.zhao>
Status: RESOLVED OBSOLETE QA Contact:
Severity: major    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, yi.zhao
Version: 2.3.1   
Target Milestone: 2.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Berger 2017-08-23 08:11:03 UTC
1) pyro (I guess all versions)

2) remove SSTATE MIRROR and SSTATE cache

3) bitbake -c cleansstate autogen-native && 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't work when the path is longer than BINPRM_BUF_SIZE which is 128 usually. So use "/bin/sh" instead.

Proposed patch: 

https://github.com/RobertBerger/poky/commit/92a17c9074538a38d3d11c063be624f6c62a6352
Comment 1 Yi Zhao 2017-11-16 00:24:49 UTC
The autogen-native recipe had been removed in 2.4 with commit: 765fec2f363aeb0540970c57217a2ea1aab8e088