Another problem with sed like in bug 370935. Reproducible: Always Steps to Reproduce: 1. emerge -v1 eselect 2. eselect profile list Actual Results: /usr/share/eselect/libs/core.bash: line 108: /var/tmp/portage/._portage_reinstall_.OK6LNf/bin/ebuild-helpers/sed: No such file or directory !!! Error: get_repos failed !!! Error: Failed to get a list of valid profiles exiting Expected Results: Available profile symlink targets: [1] default/bsd/fbsd/x86/7.2 [2] default/bsd/fbsd/x86/8.0 [3] default/bsd/fbsd/x86/8.2 * OK with app-admin/eselect-1.3
I don't get such error with eselect-1.3.1 and that's not sed problem, I think. > /usr/share/eselect/libs/core.bash: line 108: /var/tmp/portage/._portage_reinstall_.OK6LNf/bin/ebuild-helpers/sed: No such file or directory It seems something broken on your system during some package install/delete process (e.g. power cut-off, kernel hung or something). What do you get with "ls -l /usr/lib/portage/bin/ebuild-helpers/sed"? If it show (dead) symlink to /var/tmp/portage/._portage_reinstall_.OK6LNf/bin/ebuild-helpers/sed, could you re-emerge portage and try eselect again?
aha, one more comment Could you check if line 108 of /usr/share/eselect/libs/core.bash is properly set as below? > # GNU sed wrapper (real path to GNU sed determined by configure) > sed() { > /usr/lib/portage/bin/ebuild-helpers/sed "$@" > } if it doesn't, remove /var/tmp/.../ebuild-helpers/sed and re-emerge eselect would help.
(In reply to comment #1) > I don't get such error with eselect-1.3.1 and that's not sed problem, > I think. > > > /usr/share/eselect/libs/core.bash: line 108: /var/tmp/portage/._portage_reinstall_.OK6LNf/bin/ebuild-helpers/sed: No such file or directory > > It seems something broken on your system during some package > install/delete process (e.g. power cut-off, kernel hung or > something). What do you get with "ls -l > /usr/lib/portage/bin/ebuild-helpers/sed"? > > If it show (dead) symlink to > /var/tmp/portage/._portage_reinstall_.OK6LNf/bin/ebuild-helpers/sed, > could you re-emerge portage and try eselect again? Hmm, after cleaning /var/tmp/portage, reboot and emerging eselect-1.3.1 again it shows profile list properly. Excuse me, please.