Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485088 - app-portage/gentoolkit - euse fails to detect $PORTDIR
Summary: app-portage/gentoolkit - euse fails to detect $PORTDIR
Status: RESOLVED DUPLICATE of bug 505160
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 546210 478318
  Show dependency tree
 
Reported: 2013-09-16 10:43 UTC by Yuri Shatroff
Modified: 2016-10-24 21:46 UTC (History)
2 users (show)

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 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 ***