Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 904055

Summary: ruby-utils.eclass: add ruby_fix_shebangs function to fix shebangs (like python_fix_shebangs)
Product: Gentoo Linux Reporter: Sam James <sam>
Component: EclassesAssignee: Gentoo Ruby Team <ruby>
Status: CONFIRMED ---    
Severity: normal CC: pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=771744
Whiteboard:
Package list:
Runtime testing required: ---

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-09 04:47:50 UTC
Sometimes we need to fix shebangs from e.g. '#!/usr/bin/env ruby' -> '#!${RUBY}' (this came up in bug 771744).

We should add a ruby_fix_shebangs like Python's python_fix_shebangs from python-utils-r1.eclass.