Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC

Bug 673408

Summary: dev-ruby/rdoc fails to install in Prefix due to QA concerns: invalid shebangs found
Product: Gentoo/Alt Reporter: Sammy Pfeiffer <sammypfeiffer>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: normal CC: egorov_egor
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sammy Pfeiffer 2018-12-19 05:00:54 UTC
Trying to emerge ruby dependencies for a package dev-ruby/rdoc fails to emerge due to:

 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 *   tmp/gentoo/usr/bin/rdoc24:/usr/bin/ruby24 (explicit EPREFIX but target not found)
 *   tmp/gentoo/usr/bin/rdoc23:/usr/bin/ruby23 (explicit EPREFIX but target not found)
 *   tmp/gentoo/usr/bin/ri25:/usr/bin/ruby25 (explicit EPREFIX but target not found)
 *   tmp/gentoo/usr/bin/ri23:/usr/bin/ruby23 (explicit EPREFIX but target not found)
 *   tmp/gentoo/usr/bin/ri24:/usr/bin/ruby24 (explicit EPREFIX but target not found)
 *   tmp/gentoo/usr/bin/rdoc25:/usr/bin/ruby25 (explicit EPREFIX but target not found)
 * ERROR: dev-ruby/rdoc-6.0.4::gentoo failed:
 *   Aborting due to QA concerns: invalid shebangs found

I found a fix, to change in the ebuild:
sed -i -e "1s/env ruby/ruby${version}/" \
"${ED}/usr/bin/${bin}${version}" || die

To:

sed -i -e "1s@/usr/bin/env ruby@${EPREFIX}/usr/bin/ruby${version}@" \
"${ED}/usr/bin/${bin}${version}" || die



Reproducible: Always

Steps to Reproduce:
1. On a Gentoo Prefix installation (you can use a pre-compiled one from here: https://github.com/awesomebytes/gentoo_prefix_ci)
2. emerge dev-ruby/rdoc
3.
Actual Results:  
Fails to emerge

Expected Results:  
Emerges successfully