I unmerged "libungif" because it wasn't needed anymore according to "emerge --depclean". But when I start emacs I get: emacs: error while loading shared libraries: libungif.so.4: cannot open shared object file: No such file or directory So apparently it is a dependency of something. But esearch doesn't show it: equery depgraph emacs-cvs [ Searching for packages matching emacs-cvs... ] * dependency graph for app-editors/emacs-cvs-22.0.50 `-- app-editors/emacs-cvs-22.0.50 `-- sys-libs/ncurses-5.4-r6 `-- sys-libs/gpm-1.20.1-r4 `-- app-text/ispell-3.2.06-r6 `-- sys-apps/sed-4.1.4 `-- sys-devel/bison-1.875d `-- sys-devel/m4-1.4.2-r1 `-- sys-devel/gettext-0.14.1-r1 `-- sys-apps/miscfiles-1.4.2 `-- app-text/aspell-0.50.5-r4 [ app-editors/emacs-cvs-22.0.50 stats: packages (10), max depth (3) ] Also when I "emerge emacs-cvs --deep", portage only wants to reemerge emacs. No mentioning of libungif. So what's the problem? A broken ebuild perhaps? Reproducible: Always Steps to Reproduce:
emacs-cvs depends on giflib (which is going to replace libungif soon - see Bug 85720). No need to depend on libungif. Just re-emerge emacs-cvs and it will be fine with giflib.
I reemerged emacs-cvs and now it works again. Thanks Jakub!