After recent update to libexif-0.6.16 I read the following messages: elog "If you are upgrading from a version of libexif older than 0.6.13-r2," elog "you will need to do the following to rebuild dependencies:" elog "# revdep-rebuild --soname libexif.so.9" elog "# revdep-rebuild --soname libexif.so.10" elog "" elog "Note, it is actually safe to create a symlink from libexif.so.10 to" elog "libexif.so.12 if you need to during the update." I didn't remember if I was upgrading from libexif older than (...), so I suggest displaying this message conditionally - only if the previous version of libexif was older than (...). This can be done using has_version, which can detect the previous version according to http://devmanual.gentoo.org/ebuild-writing/functions/pkg_postinst/ So the fragment of code above would look like if has_version '<media-libs/libexif-0.6.13-r2'; then # all elogs here fi
In portage. Thanks.