Annoying.
Which means that whenever I tried to "emerge" or "ebuild" something, it would just give me the error message that "livestreamer shouldn't be used in root mode, and please, please use --another-totally-unrelated-option to make it run as root".
So, since I couldn't update nor reinstall everything, I tried to repair portage. Hitting google, I found this page, got the tar archive from the server (version 2.2.18, mind you), unpacked it ... well, I basically did everything the page read. Then, I wanted to follow the recommendation to update portage as soon as possible to get a clean built.
Code: Select all
# emerge sys-apps/portage
Then there was a nasty problem because emerge suddenly did forget where dodoc and doins were located, and it wouldn't for the love of Stallman look into /usr/lib/potage/bin/ebuild-helpers for these two files (why? I have no earthly idea, and I don't care because) which I then just put into /usr/bin/.
Then there was a VERY nasty problem that the emerge process would die because it could not write a certain file to a certain location, because /var/tmp/portage/sys-apps/portage-2.2.14/image/usr/sbin/ did not exist. When I created it, it got deleted by the process again. Using
Code: Select all
# chattr +i /var/tmp/portage/sys-apps/portage-2.2.14/image/usr/sbin/
Because now when I try to install something ... like, for example, sys-apps/portage, I get this (un)funny error message:
Code: Select all
# emerge sys-apps/portage
usage: Usage: ebuild <ebuild file> <command> [command] ...
emerge: error: missing required args
Code: Select all
# emerge --ask sys-apps/portage
ebuild: --ask: does not end with '.ebuild'
Code: Select all
# which emerge
/usr/bin/emerge
# which ebuild
/usr/bin/ebuild

