Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405375 - PORTAGE_BINHOST in /etc/portage/env ignored
Summary: PORTAGE_BINHOST in /etc/portage/env ignored
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 06:37 UTC by Rodion
Modified: 2012-02-23 19:11 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 Rodion 2012-02-23 06:37:32 UTC
emerge ignores the setting of the variable PORTAGE_BINHOST installed in the /etc/portage/env, /etc/portage/package.env. If you override it directly in the line run emerge, then the variable is set.

Reproducible: Always

Steps to Reproduce:
1. Create /etc/portage/env/binhost.conf and fill the required variables:
  PORTAGE_BINHOST="http://mirror.cnet.kz/calculate/CLDX/grp/i686"
2. Create /etc/portage/package.env and pointing it to my desired package:
  media-gfx/gimp binhost.conf
3. Еry to execute the command. Preset variable is ignored.
4. PORTAGE_BINHOST="http://mirror.cnet.kz/calculate/CLDX/grp/i686" emerge www-client/chromium - perform the installation of binhost
Actual Results:  
Preset variable is ignored.
Comment 1 Zac Medico gentoo-dev 2012-02-23 16:50:31 UTC
The usage that you're suggesting will probably never be supported. The closest thing that you can do now is have one global PORTAGE_BINHOST setting that lists multiple hosts, and `emerge --getbinpkg atom::repo` to install a package from a particular repo. The repo atom will be recorded in your world file, in order to save your repo preference for that atom.
Comment 2 Rodion 2012-02-23 19:11:46 UTC
Thanks for the reply, this version solves the problem. If there is no package at one binhost, it seeks and finds another.