Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24315 - emerge -C <pkg> while PWD does not exist ...
Summary: emerge -C <pkg> while PWD does not exist ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-11 15:47 UTC by SpanKY
Modified: 2011-10-30 22:18 UTC (History)
0 users

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 SpanKY gentoo-dev 2003-07-11 15:47:34 UTC
simple fix would be at the start of portage do a test on $PWD ... if it fails, chdir to / cause you 
*know* that'll exist ;) 
 
<<<        obj 
/usr/share/games/freedroidRPG/graphics/skill_icons/ExtractTachyonCondensator.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj /usr/share/games/freedroidRPG/graphics/skill_icons/ExtractSuperconductor.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj 
/usr/share/games/freedroidRPG/graphics/skill_icons/ExtractPlasmaTransistor.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj /usr/share/games/freedroidRPG/graphics/skill_icons/ExtractEntropyInverter.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj 
/usr/share/games/freedroidRPG/graphics/skill_icons/ExtractAntimatterConverter.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj /usr/share/games/freedroidRPG/graphics/skill_icons/ExplosionRaySpell.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj /usr/share/games/freedroidRPG/graphics/skill_icons/ExplosionCircleSpell.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj /usr/share/games/freedroidRPG/graphics/skill_icons/DetectItemsSpell.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory 
<<<        obj 
/usr/share/games/freedroidRPG/graphics/skill_icons/ChestAndDeadBodyLoot.png 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such 
file or directory
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 12:56:01 UTC
sometimes you want RESOLVED:SPANKYBUG ;)
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-07-17 23:13:34 UTC
Can anyone reproduce this with a recent version?  It seems to me that the 
getcwd() call in portage.py should fix any problems.  I tried reproducing with 
2.0.51.22-r1 with no luck.

The only oddity being it appears that the getcwd() code was put into portage far 
before this bug was filed.  However, since they didn't post emerge info there is 
no way of knowing what version they were using to check diff's against.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-07-18 07:37:17 UTC
getcwd() is the fix for this.