overkill Posted October 26, 2017 Report Share Posted October 26, 2017 Can /usr/portage be deleted now that /var/git/meta-repo stores all the ebuild info? Link to comment Share on other sites More sharing options...
2 Oleg Vinichenko Posted October 26, 2017 Report Share Posted October 26, 2017 yes Link to comment Share on other sites More sharing options...
1 Oleg Vinichenko Posted November 2, 2017 Report Share Posted November 2, 2017 yes you can save the distfiles and pkgs (binary) if its a problem, otherwise /usr/portage can be zapped NikosAlexandris 1 Link to comment Share on other sites More sharing options...
0 NikosAlexandris Posted November 2, 2017 Report Share Posted November 2, 2017 Hmm, really, can we wipe out the complete `/usr/portage` dir + subdirectories? Link to comment Share on other sites More sharing options...
0 overkill Posted November 2, 2017 Author Report Share Posted November 2, 2017 Thanks. I already had moved distfiles and packages directories when I migrated to meta-repo. IIRC, the instructions mentioned moving those directories to /var/cache/portage/ Link to comment Share on other sites More sharing options...
0 cjubon Posted November 13, 2017 Report Share Posted November 13, 2017 If you wipe out /usr/portage, the /etc/portage/make.profile symlink becomes a dead link. I additionally had to do: rm /etc/portage/make.profile ln -sf /var/git/meta-repo/kits/core-kit/profiles/funtoo/1.0/linux-gnu/ /etc/portage/make.profile I'm not sure if this is correct, as relevant documentation is lacking in https://github.com/funtoo/meta-repo/blob/master/README.rst. Link to comment Share on other sites More sharing options...
0 dhudson Posted November 13, 2017 Report Share Posted November 13, 2017 https://github.com/funtoo/meta-repo#using-meta-repo tells to rm /usr/share/portage/config/repos.conf also says same on README.rst page. so looks like you no longer need that lnk to /usr/portage...ect Link to comment Share on other sites More sharing options...
0 cjubon Posted November 16, 2017 Report Share Posted November 16, 2017 Thanks. i didn't ask about repos.conf but about make.profile. I read the README.rst page carefully and did what it says. Nevertheless, I ran into major troubles after removing /usr/portage. First, no profile is defined anymore: me@work# epro list ... WARNING: No arch defined. Please set. WARNING: No build defined. Please set. WARNING: No flavor defined. Please set. If i make /etc/portage/make.profile a link to /var/git/meta-repo/kits/core-kit/profiles/funtoo/1.0/linux-gnu/ as suggested above, epro gets broken: me@work# epro arch x86-64bit Traceback (most recent call last): File "/usr/bin/epro", line 102, in <module> EgoModule.run_ego_module(action, econfig, args, VERSION) File "/usr/share/ego/python/ego/module.py", line 64, in run_ego_module ego_module(*args) File "/usr/share/ego/modules/profile.ego", line 299, in __call__ super().__call__(*args) File "/usr/share/ego/python/ego/module.py", line 49, in __call__ self.handle(**options) File "/usr/share/ego/modules/profile.ego", line 278, in handle handler(**options) File "/usr/share/ego/modules/profile.ego", line 198, in handle_single_profile_actions current_setting = list(self.tree.get_children(profile_type))[0] IndexError: list index out of range Second, tools like qsearch etc. do not work any more: me@work# qsearch base64 search: open failed: /usr/portage: No such file or directory Basically, this means that I cannot emerge anymore and my system is broken, for the first time that I'm using funtoo – and it's quite a couple of years! Link to comment Share on other sites More sharing options...
0 dhudson Posted November 16, 2017 Report Share Posted November 16, 2017 oh your right I got that wrong... sorry but you should have a dir /etc/portage/make.profile with a file called parent I belive make.profile was a file before the change. here is mine.. change your subaarch to reflect your hardware. ~$ cat /etc/portage/make.profile/parent core-kit:funtoo/1.0/linux-gnu/arch/x86-64bit core-kit:funtoo/1.0/linux-gnu/build/current core-kit:funtoo/1.0/linux-gnu/arch/x86-64bit/subarch/amd64-piledriver core-kit:funtoo/1.0/linux-gnu/flavor/workstation core-kit:funtoo/1.0/linux-gnu/mix-ins/no-systemd core-kit:funtoo/1.0/linux-gnu/mix-ins/mediadevice-audio-pro xfce-kit:funtoo/kits/python-kit/3.4-prime net-kit:funtoo/kits/python-kit/3.4-prime python-kit:funtoo/kits/python-kit/3.4-prime core-hw-kit:funtoo/kits/python-kit/3.4-prime ruby-kit:funtoo/kits/python-kit/3.4-prime gnome-kit:funtoo/kits/python-kit/3.4-prime security-kit:funtoo/kits/python-kit/3.4-prime ml-lang-kit:funtoo/kits/python-kit/3.4-prime xorg-kit:funtoo/kits/python-kit/3.4-prime text-kit:funtoo/kits/python-kit/3.4-prime lisp-scheme-kit:funtoo/kits/python-kit/3.4-prime java-kit:funtoo/kits/python-kit/3.4-prime perl-kit:funtoo/kits/python-kit/3.4-prime games-kit:funtoo/kits/python-kit/3.4-prime desktop-kit:funtoo/kits/python-kit/3.4-prime haskell-kit:funtoo/kits/python-kit/3.4-prime php-kit:funtoo/kits/python-kit/3.4-prime lang-kit:funtoo/kits/python-kit/3.4-prime nokit:funtoo/kits/python-kit/3.4-prime science-kit:funtoo/kits/python-kit/3.4-prime editors-kit:funtoo/kits/python-kit/3.4-prime core-kit:funtoo/kits/python-kit/3.4-prime kde-kit:funtoo/kits/python-kit/3.4-prime media-kit:funtoo/kits/python-kit/3.4-prime dev-kit:funtoo/kits/python-kit/3.4-prime Link to comment Share on other sites More sharing options...
0 cjubon Posted November 20, 2017 Report Share Posted November 20, 2017 Thank you, dhudson. Would you also be so kind to post 1.) output of ls -l /etc/portage/ (-l flag is important), and 2.) content of /etc/portage/make.profile/arch/x86-64bit/parent Link to comment Share on other sites More sharing options...
Question
overkill
Can /usr/portage be deleted now that /var/git/meta-repo stores all the ebuild info?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts