Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182970 - media-libs/libexif postinst improvement
Summary: media-libs/libexif postinst improvement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-23 09:51 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2007-12-18 17:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2007-06-23 09:51:31 UTC
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
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2007-12-18 17:34:18 UTC
In portage.  Thanks.