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
This sed is in the latest ebuilds now, thanks