Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239146 - missed @GENTOO_PORTAGE_EPREFIX@ replacement in revdep-rebuild
Summary: missed @GENTOO_PORTAGE_EPREFIX@ replacement in revdep-rebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
: 240336 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-30 12:56 UTC by Bernhard
Modified: 2008-10-13 14:54 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 Bernhard 2008-09-30 12:56:00 UTC
Attempting to run revdep-rebuild gives the following error:

bash: /gentoo/usr/bin/revdep-rebuild: @GENTOO_PORTAGE_EPREFIX@/bin/bash: bad interpreter: No such file or directory


Explicitly calling the correct version of bash gives:

~ $ /gentoo/bin/bash /gentoo/usr/bin/revdep-rebuild 
/gentoo/usr/bin/revdep-rebuild: line 276: /etc/init.d/functions.sh: No such file or directory
/gentoo/usr/bin/revdep-rebuild: line 434: ewarn: command not found
/gentoo/usr/bin/revdep-rebuild: line 973: einfo: command not found
/gentoo/usr/bin/revdep-rebuild: line 234: eerror: command not found

Reproducible: Always

Steps to Reproduce:
1. emerge app-portage/gentoolkit-0.2.4.1
2. run revdep-rebuild
3.

Actual Results:  
bash: /gentoo/usr/bin/revdep-rebuild: @GENTOO_PORTAGE_EPREFIX@/bin/bash: bad interpreter: No such file or directory

Expected Results:  
run reverse dependancy rebuilder

it appears that some variable substitution mechanism is not working or being bypassed:

First line of the revdep-rebuild script:
#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-02 13:47:25 UTC
I'm not too sure that revdep-rebuild works in prefix yet even if it didn't have this bug. I think grobian can confirm.
Comment 2 Markus Duft (RETIRED) gentoo-dev 2008-10-02 14:31:16 UTC
(In reply to comment #1)
> I'm not too sure that revdep-rebuild works in prefix yet even if it didn't have
> this bug. I think grobian can confirm.

some while ago i ported it to interix, and back then it worked... haven't tried in a while though...
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-07 00:46:08 UTC
*** Bug 240336 has been marked as a duplicate of this bug. ***
Comment 4 Fabian Groffen gentoo-dev 2008-10-12 12:33:36 UTC
can someone just run eprefixify on the right file, please, thx
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-13 14:54:30 UTC
finally fixed. Sorry it took so long. I made it a rev bump so everyone will get a fixed copy and won't hit this bug again.