Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310589 - ncurses has nonprefixed shebangs that cause emerge to fail
Summary: ncurses has nonprefixed shebangs that cause emerge to fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: IA64 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 310587 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-21 19:19 UTC by Guilherme Amadio
Modified: 2010-03-23 07:38 UTC (History)
1 user (show)

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


Attachments
patch to ncurses-5.7-r3.ebuild (ncurses_fix_shebang.patch,454 bytes, text/plain)
2010-03-21 19:23 UTC, Guilherme Amadio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2010-03-21 19:19:53 UTC
Nonprefixed shebang for ncurses-config cause emerge ncurses to fail

This is in an early bootstrap system... maybe later things will work better.

Just adding the line below to src_compile of the ebuild fixed the problem:

sed -i -e "s/\/bin\/sh/${EPREFIX//\//\\/}\/bin\/sh/;" misc/ncurses-config
Comment 1 Guilherme Amadio gentoo-dev 2010-03-21 19:23:33 UTC
Created attachment 224577 [details]
patch to ncurses-5.7-r3.ebuild
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-22 03:30:57 UTC
Bah, this issue showed up in bug 309825. That was tested and considered fixed when I (unknowingly) did emerge --oneshot --nodeps bash in my test routine. I didn't know that ncurses exhibited this same issue at the time.

Assuming it is possible and safe to do so (does bash work well enough without ncurses??), I suggest to modify the bootstrapping instructions to reflect this.
Comment 3 Fabian Groffen gentoo-dev 2010-03-22 07:58:40 UTC
yes, we MUST emerge --nodeps --oneshot bash as first thing now.
Comment 4 Fabian Groffen gentoo-dev 2010-03-22 07:59:18 UTC
*** Bug 310587 has been marked as a duplicate of this bug. ***
Comment 5 Fabian Groffen gentoo-dev 2010-03-23 07:38:30 UTC
I updated the bootstrap docs accordingly