Using euse from the latest app-portage/gentoolkit-0.3.0.8-r1, I get the following error: # euse ERROR: $PORTDIR couldn't be determined regardless of arguments supplied to it, unless I manually set PORTDIR in the shell, while `portageq portdir` returns '/usr/portage' and other gentoolkit tools operate correctly. # portageq portdir /usr/portage
This is bug #474574. When upgrading to portage-2.2, if you run etc-update, it should set PORTDIR for you. This gets appended to make.conf: # Set PORTDIR for backward compatibility with various tools: # gentoo-bashcomp - bug #478444 # euse - bug #474574 # euses and ufed - bug #478318
(In reply to Michael Orlitzky from comment #1) > This is bug #474574. > > When upgrading to portage-2.2, if you run etc-update, it should set PORTDIR > for you. This gets appended to make.conf: > > # Set PORTDIR for backward compatibility with various tools: > # gentoo-bashcomp - bug #478444 > # euse - bug #474574 > # euses and ufed - bug #478318 I have upgraded portage recently (a week ago from 2.1.x to 2.2.1, and today to 2.2.6) but neither a usual message ("config files need updating") was shown nor manual run of etc-update did any changes to /etc/make.conf or /etc/portage/*.
Same problem for me.
in 155295410d147b88886f7eb65f40dd9668747a9 commit was solved and fixed
PORTDIR is deprecated and euse works well with settings from repos.conf This bug should be closed as obsolete.
should be closed, obsolete
*** This bug has been marked as a duplicate of bug 505160 ***