Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771186 - app-portage/elt-patches-20170815: /usr/bin/eltpatch uses #!/bin/bash which breaks under Gentoo Prefix
Summary: app-portage/elt-patches-20170815: /usr/bin/eltpatch uses #!/bin/bash which br...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 01:46 UTC by Nathan Shearer
Modified: 2021-08-28 08:41 UTC (History)
3 users (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 Nathan Shearer 2021-02-18 01:46:44 UTC
/usr/bin/eltpatch belongs to app-portage/elt-patches-20170815 and it installs with a shebang of #!/bin/bash even if installed inside a Gentoo Prefix. My prefix is on a system where the bash interpreter is inside the prefix only.

Reproducible: Always

Steps to Reproduce:
1. emerge app-portage/elt-patches
2. head /usr/bin/eltpatch



Expected Results:  
The shebang should respect the actual location of bash if it is not at /bin/bash

When I manually fix the shebang with my actual bash location in my Gentoo Prefix, then lots of other things inside the Gentoo Prefix begin to work such as simple tasks like "emerge vim".
Comment 1 Fabian Groffen gentoo-dev 2021-08-28 08:41:41 UTC
eltpatch from 20210827 uses bash from EPREFIX (and looks in EPREFIX for patches)