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
sometimes you want RESOLVED:SPANKYBUG ;)
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.
getcwd() is the fix for this.