mv-overlay icon indicating copy to clipboard operation
mv-overlay copied to clipboard

missing masters attribute

Open latot opened this issue 2 years ago • 3 comments

Hi, I'm using the overlay, but when added with layman, emerge tells the next message:

emerge -auDNU --with-bdeps=y @world
!!! Repository 'mv' is missing masters attribute in '/var/lib/layman/mv/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
WARNING: One or more repositories have missing repo_name entries:

	/var/lib/layman/mv/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.

Thx!

latot avatar Aug 25 '22 14:08 latot

Something must be wrong in your configuration. The attribute exists in the repository: https://github.com/vaeth/mv-overlay/blob/main/metadata/layout.conf

vaeth avatar Sep 05 '22 17:09 vaeth

mm, just to confirm, I run this:

layman -a mv

is that right? or I'm adding other repo?

latot avatar Sep 05 '22 17:09 latot

Layman is somewhat deprecated and perhaps unmaintained. I had reports that it tried to update the ”master” branch although that was renamed to “main” quite a while ago. So perhaps you have an ancient version of the repository. I think that the recommended replacement for layman is app-eselect/eselect-repository, but I used neither since years.

vaeth avatar Sep 05 '22 18:09 vaeth

Today I got the same issue when I tried to migrate from layman to eselect-repository since layman is getting dropped:

htpc ~ # eselect repository enable mv
Adding mv to /etc/portage/repos.conf/eselect-repo.conf ...
1 repositories enabled
htpc ~ # emerge --sync mv
>>> Syncing repository 'mv' into '/var/db/repos/mv'...
/usr/bin/git clone --depth 1 https://cgit.gentoo.org/user/mv.git .
Cloning into '.'...
warning: redirecting to https://anongit.gentoo.org/git/user/mv.git/
warning: You appear to have cloned an empty repository.
=== Sync completed for mv
!!! Repository 'mv' is missing masters attribute in '/var/db/repos/mv/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

Action: sync for repo: mv, returned code = 0

Further tries to sync gave this error:

htpc ~ # emerge --sync mv
>>> Syncing repository 'mv' into '/var/db/repos/mv'...
fatal: upstream branch 'refs/heads/master' not stored as a remote-tracking branch
!!! git rev-parse error in /var/db/repos/mv
!!! Repository 'mv' is missing masters attribute in '/var/db/repos/mv/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

Action: sync for repo: mv, returned code = 128

I'm not exactly sure why this is happening but I suspected something wrong with the cgit.gentoo.org/anongit.gentoo.org host so instead I found this github repository and tried to add this one instead with: eselect repository add mv git https://github.com/vaeth/mv-overlay

and now it works!

It seems like this issue is not related to layman though since I got the same issue with eselect-repository. I also think I was using the anongit url with layman without issues previously. Perhaps this is an issue which happens if you try to add the repository from scratch in either layman or eselect-repository if you do it now after you changed the master branch name?

AnonymousRetard avatar May 23 '23 16:05 AnonymousRetard

Thanks for pointing out. Indeed, it seems that the default branch on cgit.gentoo.org/anongit.gentoo.org was still master. I hope that I changed it now to main successfully.

vaeth avatar May 23 '23 19:05 vaeth

It is very strange: It worked for 1 minute, and now the old config is back. I do not know how to change the default branch on git.gentoo.org/anongit.gentoo.org. Maybe it is impossible.

vaeth avatar May 23 '23 19:05 vaeth

Now it seems that I really succeeded with the renaming of the default branch.

vaeth avatar May 24 '23 02:05 vaeth