Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 485088

Summary: app-portage/gentoolkit - euse fails to detect $PORTDIR
Product: Portage Development Reporter: Yuri Shatroff <yks-uno>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra, mjo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 546210, 478318    

Description Yuri Shatroff 2013-09-16 10:43:32 UTC
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
Comment 1 Michael Orlitzky gentoo-dev 2013-09-16 12:41:28 UTC
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
Comment 2 Yuri Shatroff 2013-09-16 13:16:28 UTC
(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/*.
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2013-11-18 09:45:57 UTC
Same problem for me.
Comment 4 Ondřej Súkup 2013-12-24 12:11:46 UTC
in 155295410d147b88886f7eb65f40dd9668747a9 commit was solved and fixed
Comment 5 charles17 2016-01-18 12:53:24 UTC
PORTDIR is deprecated and euse works well with settings from repos.conf
This bug should be closed as obsolete.
Comment 6 Thomas Bettler 2016-10-24 21:36:29 UTC
should be closed, obsolete
Comment 7 Zac Medico gentoo-dev 2016-10-24 21:46:55 UTC

*** This bug has been marked as a duplicate of bug 505160 ***