The 2.3.0 version of layman seems to crash hard on adding and removing overlays if /etc/portage/repos.conf/layman.conf does not exist. + layman -L + sed 's@check_official : Yes@check_official : No@g' -i /etc/layman/layman.cfg + layman -a foo-overlay Cloning into '/var/lib/layman/foo-overlay'... * Adding overlay... * Running Git... # ( cd /var/lib/layman && /usr/bin/git clone git://github.com/slashbeast/foo-overlay.git /var/lib/layman/foo-overlay ) * Running Git... # ( cd /var/lib/layman/foo-overlay && /usr/bin/git config user.name "layman" ) * Running Git... # ( cd /var/lib/layman/foo-overlay && /usr/bin/git config user.email "layman@localhost" ) * ReposConf: ConfigHandler.read(); Failed to read "/etc/portage/repos.conf/layman.conf". * File not found. * CLI: Errors occurred processing action add * ReposConf: ConfigHandler.read(); Failed to read "/etc/portage/repos.conf/layman.conf". * File not found. * Exception caught installing repository 'foo-overlay' : ConfigHandler instance has no attribute 'repo_conf' Reproducible: Always
same here. I guess it's kinda related to the recent repos.conf news, but not sure how. It's quite severe here : after doing "layman -d kde", /var/lib/layman/kde was indeed removed, but not from the installed.xml file. So that layman -a would not work anymore and the whole system is broken. I'm still searching how to fix it.
for info: locally masking >=2.3.0 fixes it here.
fixed in commit: https://github.com/gentoo/layman/commit/afece9a3634defccebd86d161d21e5475f3fea3c expect a layman version bump soon.
I have a similar error. At a new gentoo installation I wanted to add an overlay. 'layman -a sunrise' sunrise complains about missing /etc/portage/repos.conf/layman.conf. I really have an empty /etc/portage/repos.conf directory, which I already created manually. Should this file /etc/portage/repos.conf/layman.conf be created manually or automatically by 'layman -a'? sysresccd src # layman -l sysresccd src # layman -a sunrise * Adding overlay... * Running Git... # ( cd /var/lib/layman && /usr/bin/git clone git://git.overlays.gentoo.org/proj/sunrise-reviewed.git /var/lib/layman/sunrise ) Cloning into '/var/lib/layman/sunrise'... remote: Counting objects: 96034, done. remote: Compressing objects: 100% (42030/42030), done. remote: Total 96034 (delta 52362), reused 95991 (delta 52319) Receiving objects: 100% (96034/96034), 31.30 MiB | 121.00 KiB/s, done. Resolving deltas: 100% (52362/52362), done. Checking connectivity... done. * Running Git... # ( cd /var/lib/layman/sunrise && /usr/bin/git config user.name "layman" ) * Running Git... # ( cd /var/lib/layman/sunrise && /usr/bin/git config user.email "layman@localhost" ) * ReposConf: ConfigHandler.read(); Failed to read "/etc/portage/repos.conf/layman.conf". * File not found. * CLI: Errors occurred processing action add * ReposConf: ConfigHandler.read(); Failed to read "/etc/portage/repos.conf/layman.conf". * File not found. * Exception caught installing repository 'sunrise' : 'ConfigHandler' object has no attribute 'repo_conf'
For your error if you run "layman-updater -R" it will make the file with the installed overlay that you added. It should work normally now. I have it fixed now in git.
(In reply to Brian Dolbec from comment #5) > For your error if you run "layman-updater -R" it will make the file with > the installed overlay that you added. It should work normally now. > > I have it fixed now in git. Thanks, that helped a little bit. I have now cat /var/lib/layman/make.conf. But there is a further problem. I added four reposiories: sysresccd src # layman -l * sage-on-gentoo [Git ] (git://github.com/cschwan/sage-on-gentoo.git ) * science [Git ] (git://git.overlays.gentoo.org/proj/sci.git ) * sunrise [Git ] (git://git.overlays.gentoo.org/proj/sunrise-reviewed.git ) * x11 [Git ] (git://git.overlays.gentoo.org/proj/x11 ) I find them all in /etc/portage/repos.conf/layman.conf, but only two are present in /var/lib/layman/make.conf: sysresccd src # cat /var/lib/layman/make.conf PORTDIR_OVERLAY=" /var/lib/layman/science /var/lib/layman/sunrise $PORTDIR_OVERLAY "
There is no need for the make.conf file. You can delete it. The new repos.conf/ file passes all the info to portage. It is possible for layman to make both it's make.conf and repos.conf/layman.conf files, but only one is needed. The make.conf file is the old method.
(In reply to Brian Dolbec from comment #7) > There is no need for the make.conf file. You can delete it. The new > repos.conf/ file passes all the info to portage. > > It is possible for layman to make both it's make.conf and > repos.conf/layman.conf files, but only one is needed. The make.conf file is > the old method. OK, thanks for the information.
*** Bug 550150 has been marked as a duplicate of this bug. ***
When do you expect to release a version of layman > 2.3.0 which includes the fix from the git repository?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=805fe7c0495e1bf3a34d518041e466258944b82b commit 805fe7c0495e1bf3a34d518041e466258944b82b Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2023-06-22 13:15:09 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2023-06-22 13:15:09 +0000 app-portage/layman: treeclean Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abfaed0b3460e638410c0fd74783f8d292d63afc commit abfaed0b3460e638410c0fd74783f8d292d63afc Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2023-09-08 00:41:10 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2023-09-08 00:42:07 +0000 app-portage/layman: treeclan Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-)