Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673408 - dev-ruby/rdoc fails to install in Prefix due to QA concerns: invalid shebangs found
Summary: dev-ruby/rdoc fails to install in Prefix due to QA concerns: invalid shebangs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-19 05:00 UTC by Sammy Pfeiffer
Modified: 2021-01-11 20:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 1 Fabian Groffen gentoo-dev 2021-01-11 20:05:33 UTC
This sed is in the latest ebuilds now, thanks