Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478544 - sys-apps/portage: PORTDIR setting triggers "One or more repositories have been ignored due to duplicate profiles/repo_name entries" warning for /var/db/repos/gentoo
Summary: sys-apps/portage: PORTDIR setting triggers "One or more repositories have bee...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2013-07-29 08:13 UTC by Patrick Lauer
Modified: 2019-04-26 03:04 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 Patrick Lauer gentoo-dev 2013-07-29 08:13:26 UTC
$ 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?
Comment 1 Zac Medico gentoo-dev 2013-07-29 08:17:46 UTC
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.
Comment 2 Patrick Lauer gentoo-dev 2013-07-29 08:21:49 UTC
... and that message is wrong too, it's /etc/make.conf
Comment 3 Zac Medico gentoo-dev 2013-07-29 08:39:29 UTC
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.
Comment 5 Zac Medico gentoo-dev 2013-07-30 07:07:22 UTC
This is fixed in 2.1.13.2 and 2.2.0_alpha191.
Comment 6 Zac Medico gentoo-dev 2019-04-24 17:24:59 UTC
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')
Comment 7 Larry the Git Cow gentoo-dev 2019-04-24 18:19:18 UTC
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(-)
Comment 8 Larry the Git Cow gentoo-dev 2019-04-26 03:00:54 UTC
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(+)