libexpat-2でハマる

emerge worldしたら

error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

なんつーエラーが出て、Firefoxが起動しない。Logを見ると、libexpatのバージョンが2.0.1に上がってる。さらにそこには

Please note that the soname of the library changed!
If you are upgrading from a previous version you need
to fix dynamic linking inconsistencies by executing:
revdep_rebuild -X --library libexpat.so.0

という説明がでてるし。→なんと300以上のパッケージが影響を受けてた。

gtk+のビルドで失敗する

emerge fontconfig
emerge pango
emerge gtk+

この順番でやれば、libexpatが見つからないというエラーでgtk+のビルドが落ちることはなくなる。