Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Repository 'x-portage' is missing masters attribute in /opt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
midway
Apprentice
Apprentice


Joined: 01 Jun 2012
Posts: 181
Location: somewhr in the blighty

PostPosted: Fri Oct 18, 2013 9:33 am    Post subject: Repository 'x-portage' is missing masters attribute in /opt Reply with quote

received the master set-up error after the update this morning. The file in the path doesn't exist however.
Code:

~ # emerge --sync
WARNING: One or more repositories have missing repo_name entries:

        /opt/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
>>> Starting rsync with rsync://88.191.100.68/gentoo-portage...
>>> Checking server timestamp ...
.
.
.
.
Number of files: 175091
Number of files transferred: 16
Total file size: 308.61M bytes
Total transferred file size: 624.91K bytes
Literal data: 624.91K bytes
Matched data: 0 bytes
File list size: 4.37M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 25.61K
Total bytes received: 4.66M

sent 25.61K bytes  received 4.66M bytes  240.49K bytes/sec
total size is 308.61M  speedup is 65.81
!!! Repository 'x-portage' is missing masters attribute in '/opt/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility


I do have /usr/portage/metadata/layout.conf though which reads:
Code:

# This went live Wednesday, July 4, 2012 at 10:00 UTC
# For more details, please see: http://archives.gentoo.org/gentoo-dev-announce/msg_00000.xml
# and/or GLEP 59.
manifest-hashes = SHA256 SHA512 WHIRLPOOL

# Bug #470670 - gentoo's council says to deprecate
# EAPIs 1 and 2.
eapis-deprecated = 1 2

# Bug #337853 - gentoo's council says to enable
# --echangelog by default for the "gentoo" repo
update-changelog = true

# Make egencache generate newer (more reliable)
# md5-dict cache format (see bug #409445).
# NOTE: list md5-dict first so clients prefer it
# INFRA NOTE: Format 'pms' was removed on Aug 6 2012. (Announced prior as Aug 1
# 2012 was the removal date)
cache-formats = md5-dict

# Support for implicit masters is deprecated, so we need to explicitly
# specify that this repo does not dependent on any masters, in order
# to distinguish it from repos that rely on the deprecated behavior.
masters =
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Fri Oct 18, 2013 2:43 pm    Post subject: Reply with quote

Code:
echo x-portage >> /opt/portage/profiles/repo_name

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
midway
Apprentice
Apprentice


Joined: 01 Jun 2012
Posts: 181
Location: somewhr in the blighty

PostPosted: Fri Oct 18, 2013 4:25 pm    Post subject: Reply with quote

eyoung100 wrote:
Code:
echo x-portage >> /opt/portage/profiles/repo_name


Code:
~ # echo x-portage >> /opt/portage/profiles/repo_name
-bash: /opt/portage/profiles/repo_name: No such file or directory
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Fri Oct 18, 2013 4:27 pm    Post subject: Reply with quote

Code:
nano -w /opt/portage/repo_name


Add x-portage, save the file.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
midway
Apprentice
Apprentice


Joined: 01 Jun 2012
Posts: 181
Location: somewhr in the blighty

PostPosted: Fri Oct 18, 2013 4:35 pm    Post subject: Reply with quote

eyoung100: created the repo_name and added x-portage. Still doing a emerge --sync it complains

!!! Repository 'x-portage' is missing masters attribute in '/opt/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Fri Oct 18, 2013 6:24 pm    Post subject: Reply with quote

Code:

# Support for implicit masters is deprecated, so we need to explicitly
# specify that this repo does not dependent on any masters, in order
# to distinguish it from repos that rely on the deprecated behavior.
masters =


You need to talk to the repo maintainer as the layout.conf specifically states as above but emerge will keep complaing until masters=gentoo
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
jms.gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2009
Posts: 98

PostPosted: Sun Nov 12, 2023 3:10 pm    Post subject: Reply with quote

also check in
/etc/portage/make.conf
if you have
PORTDIR_OVERLAY=whatever
" This variable is deprecated in favor of settings in repos.conf. This variable is a space-delimited list of directories. "
https://devmanual.gentoo.org/eclass-reference/make.conf/index.html
if you have moved from layman to eselect repository
you might want to delete it
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Sun Nov 12, 2023 4:55 pm    Post subject: Reply with quote

You're reviving *quite* old posts ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum