$ emerge -pv kioslaves WARNING: One or more repositories have been ignored due to duplicate profiles/repo_name entries: /, gentoo, /home/me/code/gentoo-x86 overrides /usr/portage All profiles/repo_name entries must be unique in order to avoid having duplicates ignored. Set PORTAGE_REPO_DUPLICATE_WARN="0" in /etc/portage/make.conf if you would like to disable this warning. PORTDIR is not set to /usr/portage, so what is this stupid wrong warning and how do I get rid of it?
The warning is due to the /usr/portage setting from /usr/share/portage/config/repos.conf. You should be able to suppress it by copying the file to /etc/portage/repos.conf and modifying the location attribute to point to the location that you use.
... and that message is wrong too, it's /etc/make.conf
Yeah, the message can be improved. However, we're trying to migrate away from PORTDIR and PORTDIR_OVERLAY variables, since they don't allow for the kind of detailed configurations that is possible with repos.conf. So ultimately, regardless how stupid the error message looks, the user will need to use repos.conf instead of PORTDIR and PORTDIR_OVERLAY. For now, it's possible for you to continue using PORTDIR and avoid the warning if you move /usr/portage to a different directory. Moving /usr/portage somewhere else will serve to clarify that you have not made some kind of configuration mistake, so the warning will not be triggered.
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a3a1a20a1378e423486d41414857a25f9bec1c66
This is fixed in 2.1.13.2 and 2.2.0_alpha191.
This is happening again because this code needs to be updated due to changes for bug 378603: default_portdir = os.path.join(os.sep, settings['EPREFIX'].lstrip(os.sep), 'usr', 'portage')
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=f91508ed8323ec4022989b377cc6e4176d273413 commit f91508ed8323ec4022989b377cc6e4176d273413 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-04-24 18:12:41 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-04-24 18:17:11 +0000 RepoConfigLoader: fix default_portdir value (bug 478544) Fixes: a859556ffaa4 ("Update /usr/portage references (bug 378603)") Bug: https://bugs.gentoo.org/478544 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/repository/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eca0a8648ae7cee5c10081224432e15bc31f05ba commit eca0a8648ae7cee5c10081224432e15bc31f05ba Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-04-26 02:53:25 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-04-26 03:00:38 +0000 sys-apps/portage: version bump to 2.3.65 #478544 fix duplicate repo warning triggered by PORTDIR #553224 emerge --info per-package FEATURES #684232 don't set permissions on /dev/null emerge.log symlink Bug: https://bugs.gentoo.org/683434 Bug: https://bugs.gentoo.org/478544 Bug: https://bugs.gentoo.org/553224 Bug: https://bugs.gentoo.org/684232 Package-Manager: Portage-2.3.65, Repoman-2.3.12 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.65.ebuild | 259 +++++++++++++++++++++++++++++++++ 2 files changed, 260 insertions(+)