mv-overlay
mv-overlay copied to clipboard
missing masters attribute
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!
Something must be wrong in your configuration. The attribute exists in the repository: https://github.com/vaeth/mv-overlay/blob/main/metadata/layout.conf
mm, just to confirm, I run this:
layman -a mv
is that right? or I'm adding other repo?
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.
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?
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.
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.
Now it seems that I really succeeded with the renaming of the default branch.