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.
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.
Thanks for the reply, this version solves the problem. If there is no package at one binhost, it seeks and finds another.