Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522636 - emerge ignores the value of PORTDIR
Summary: emerge ignores the value of PORTDIR
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-12 10:40 UTC by Agostino Sarubbo
Modified: 2014-09-12 11:50 UTC (History)
0 users

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 Agostino Sarubbo gentoo-dev 2014-09-12 10:40:26 UTC
I'm trying to overwrite the value of a variable before launching emerge, so:

willoughby ~ # PKGDIR="" emerge --info | grep PKGDIR
PKGDIR=""

it works.


It does not work while I try with PORTDIR:

willoughby ~ # PORTDIR="/foo" emerge --info | grep PORTDIR
PORTDIR="/usr/portage"



so If I try to do PORTDIR="/foo" emerge --sync, it sync in /usr/portage.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-09-12 11:50:04 UTC
PORTDIR is deprecated and will be fully unsupported in the future.

As documented in `man portage`:
"repos.conf
    Specifies site-specific repository configuration information.
    Configuration specified in repos.conf can be overriden by
    PORTAGE_REPOSITORIES environmental variable, which has the same format
    as repos.conf."


Example usage:

PORTAGE_REPOSITORIES=$'[gentoo]\nlocation = /foo\nsync-type = rsync\nsync-uri = rsync://rsync.gentoo.org/gentoo-portage' emerge --sync