Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478444 - sys-apps/portage-2.2.0_alpha190 breaks gentoo-bashcomp
Summary: sys-apps/portage-2.2.0_alpha190 breaks gentoo-bashcomp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 546210
  Show dependency tree
 
Reported: 2013-07-28 08:41 UTC by Ryan Hill (RETIRED)
Modified: 2015-09-28 04:52 UTC (History)
4 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 Ryan Hill (RETIRED) gentoo-dev 2013-07-28 08:41:39 UTC
This commit:
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a5dd8b59

removes PORTDIR from make.globals and breaks gentoo-bashcomp.  Was the deprecation of PORTDIR/PORTDIR_OVERLAY discussed anywhere?  What replaces it and how are people supposed to migrate?
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-07-28 08:45:10 UTC
(In reply to Ryan Hill from comment #0)
> This commit:
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a5dd8b59
> 
> removes PORTDIR from make.globals and breaks gentoo-bashcomp.  Was the
> deprecation of PORTDIR/PORTDIR_OVERLAY discussed anywhere?  What replaces it
> and how are people supposed to migrate?

you can always get it at runtime with

portageq envvar PORTDIR
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2013-07-28 08:55:55 UTC
We've avoided using portageq in the past because it's really really slow.  It adds over 1 sec of delay to every completion, just enough to be annoying.  We might not have a choice now I guess.
Comment 3 Zac Medico gentoo-dev 2013-07-28 09:07:17 UTC
(In reply to Ryan Hill from comment #2)
> We might not have a choice now I guess.

The only alternative would be to parse /usr/share/portage/config/repos.conf and /etc/portage/repos.conf.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2013-07-28 09:36:47 UTC
That won't get us overlays though.  Will people will still have to set PORTDIR_OVERLAY in make.conf or is /etc/portage/repos.conf replacing it?
Comment 5 Martin Väth 2013-07-28 09:46:50 UTC
With current eix, you can use
eix --print PORTDIR_OVERLAY
which outputs the combined result of PORTDIR_OVERLAY and of parsing repos.conf
Comment 6 Zac Medico gentoo-dev 2013-07-28 09:47:43 UTC
/etc/portage/repos.conf is replacing PORTDIR_OVERLAY (for compatibility, `portageq envvar PORTDIR_OVERLAY` returns a value generated from repos.conf).
Comment 7 Arfrever Frehtes Taifersar Arahesis 2013-07-28 15:15:55 UTC
The recommened, non-deprecated way of getting configuration of all repositories (configured either in repos.conf or PORTDIR/PORTDIR_OVERLAY) is one of the following:
  portageq repositories_configuration "${EROOT}"
  portageq repos_config "${EROOT}"
  portageq envvar PORTAGE_REPOSITORIES
  eval "$(portageq envvar -v PORTAGE_REPOSITORIES)"

The last command allows to easily detect older version of Portage:
eval "$(portageq envvar -v PORTAGE_REPOSITORIES)"
if [[ -n ${PORTAGE_REPOSITORIES} ]]; then
    # New Portage
    parse_PORTAGE_REPOSITORIES
else
    # Old Portage
    parse_make.globals_and_make.conf
Comment 8 shinydoofy 2013-08-02 06:40:11 UTC
Might just be me, but it also breaks app-portage/gentoolkit-0.3.0.7-r2 for me:
# euse -i -g gtk
ERROR: $PORTDIR couldn't be determined
Comment 9 Zac Medico gentoo-dev 2013-08-02 07:04:03 UTC
(In reply to shinydoofy from comment #8)
> Might just be me, but it also breaks app-portage/gentoolkit-0.3.0.7-r2 for
> me:
> # euse -i -g gtk
> ERROR: $PORTDIR couldn't be determined

Yeah, that's reported in bug #474574.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2013-08-04 19:36:12 UTC
Fixed in gentoo-bashcomp-20130804.
Comment 12 is 2014-04-10 09:37:45 UTC
This report is about 9 months old, will this enter the portage tree? 

I have app-shells/gentoo-bashcomp-20121024 as the latest version (synced today).
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2014-04-10 23:41:04 UTC
Someone masked it, then removed it, then I gave up.
Comment 14 Zac Medico gentoo-dev 2014-10-10 19:18:26 UTC
(In reply to is from comment #12)
> This report is about 9 months old, will this enter the portage tree? 
> 
> I have app-shells/gentoo-bashcomp-20121024 as the latest version (synced
> today).

gentoo-bashcomp-20140911 is in the tree now, though it still has unstable KEYWORDS. You can unmask it like this:

echo "=app-shells/gentoo-bashcomp-20140911 ~*" >> \ /etc/portage/package.accept_keywords