Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474574 - app-portage/gentoolkit-0.3.0.7-r2: euse incompatible with /etc/portage/repos.conf
Summary: app-portage/gentoolkit-0.3.0.7-r2: euse incompatible with /etc/portage/repos....
Status: RESOLVED DUPLICATE of bug 505160
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: Lowest enhancement
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 546210 505160
  Show dependency tree
 
Reported: 2013-06-24 07:37 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2016-10-24 21:53 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
euse -i natspec (euse -i natspec,1.00 KB, text/plain)
2016-01-18 13:07 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-06-24 07:37:23 UTC
/etc/portage/repos.conf is the new way of configuring repositories for Portage.
PORTDIR and PORTDIR_OVERLAY variables in /etc/portage/make.conf are deprecated.
euse should use portageq (or Portage's Python API) to get paths of repositories.

$ euse
ERROR: /usr/portage/profiles does not exist or is not a directory
$ cat /etc/portage/repos.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/repositories/gentoo-x86

[local]
location = /var/repositories/local
priority = 0
$ grep PORTDIR /etc/portage/make.conf
$ portageq portdir
/var/repositories/gentoo-x86
$ portageq get_repos /
local gentoo
$ portageq get_repo_path / gentoo
/var/repositories/gentoo-x86
$ portageq get_repo_path / local
/var/repositories/local
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2013-06-24 08:07:42 UTC
I know repos.conf has been around for a few years. BUT!  I have seen no deprecation notice for the old variables in either gentoo-portage-dev or gentoo-dev mail lists announcing the plan to deprecate them.

There are many more tools out there that depend on those old variables.  They are long established variables.  Some tools modify those variables.  It cannot just disappear without adequate notice and suitable replacement api's in place. Or a great many users systems/tools will break.

I need more info about this plan, it's usability and api's before any work is done.


Zac what is the plan for this?  If this is to take place.  I would think that a move such as this would require a 1 year minimum for tools to migrate to the new system, possibly longer.

In my opinion this bug is premature.  Downgrading to enhancement
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-06-24 10:35:16 UTC
(In reply to Brian Dolbec from comment #1)

Old variables are currently only deprecated. There is no plan to make them stop working soon.
Deprecation notice for old variables could be announced when tools like euse, eix and layman are made compatible with repos.conf-only configuration.
Comment 3 Zac Medico gentoo-dev 2013-06-24 20:02:02 UTC
(In reply to Brian Dolbec from comment #1)
> Zac what is the plan for this?  If this is to take place.  I would think
> that a move such as this would require a 1 year minimum for tools to migrate
> to the new system, possibly longer.

Yes, there's plenty of time.

Anyway, I think it would be good for euse to migrate to using portageq instead of parsing make.conf itself. Portage automatically generates PORTDIR and PORTDIR_OVERLAY variables from repos.conf settings (accessible with 'portageq envvar' command). Meanwhile, the problem with euse it that its get_portdir() function tries to parse the value from make.conf instead of using portageq, even though it already uses portageq for other things.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2013-07-25 09:13:03 UTC
I will create a patch, which will also make euse faster with new versions of Portage (by using `portageq envvar -v EPREFIX PORTAGE_REPOSITORIES USE` instead of 4 calls to portageq).
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-30 11:57:08 UTC
This is now quite annoying since >=portage-2.2_alpha189 made repos.conf the default:

# euse -i natspec
ERROR: $PORTDIR couldn't be determined
Comment 6 Zac Medico gentoo-dev 2013-07-30 17:03:18 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #5)
> This is now quite annoying since >=portage-2.2_alpha189 made repos.conf the
> default:
> 
> # euse -i natspec
> ERROR: $PORTDIR couldn't be determined

As a workaround, set PORTDIR="/usr/portage" in make.conf.
Comment 7 Sergey Popov (RETIRED) gentoo-dev 2015-01-30 11:10:46 UTC
*** Bug 505160 has been marked as a duplicate of this bug. ***
Comment 8 charles17 2016-01-18 13:07:21 UTC
Created attachment 423280 [details]
euse -i natspec

(In reply to Zac Medico from comment #6)
> (In reply to Lars Wendler (Polynomial-C) from comment #5)
> > This is now quite annoying since >=portage-2.2_alpha189 made repos.conf the
> > default:
> > 
> > # euse -i natspec
> > ERROR: $PORTDIR couldn't be determined
> 
> As a workaround, set PORTDIR="/usr/portage" in make.conf.

WFM (see attachment) with =sys-apps/portage without that hack in make.conf

This bug should be closed.
Comment 9 Thomas Bettler 2016-10-24 21:34:06 UTC
should be closed, WFM
Comment 10 Zac Medico gentoo-dev 2016-10-24 21:53:28 UTC

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