summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-12-26 14:24:33 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-12-26 14:25:45 -0500
commit02da1bfffe30537bf7fe7680fc628acc9d6ec289 (patch)
tree90a8c6825d8400875131f882a4e4b372a55afe25
parentdev-python/rosdistro: bump to 0.6.3 (diff)
downloadgentoo-02da1bfffe30537bf7fe7680fc628acc9d6ec289.tar.gz
gentoo-02da1bfffe30537bf7fe7680fc628acc9d6ec289.tar.bz2
gentoo-02da1bfffe30537bf7fe7680fc628acc9d6ec289.zip
dev-libs/mpfr: add preserve_old_lib, bug #642316
For people that have FEATURES=-preserve-libs, we don't want the toolchain to break as the so name is bumped from libmpfr.so.4 to libmpfr.so.6. Package-Manager: Portage-2.3.13, Repoman-2.3.3
-rw-r--r--dev-libs/mpfr/mpfr-4.0.0-r1.ebuild (renamed from dev-libs/mpfr/mpfr-4.0.0.ebuild)8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-libs/mpfr/mpfr-4.0.0.ebuild b/dev-libs/mpfr/mpfr-4.0.0-r1.ebuild
index d74928dff90..fa5e936f499 100644
--- a/dev-libs/mpfr/mpfr-4.0.0.ebuild
+++ b/dev-libs/mpfr/mpfr-4.0.0-r1.ebuild
@@ -50,3 +50,11 @@ multilib_src_install_all() {
rm "${ED}"/usr/share/doc/"${P}"/COPYING*
use static-libs || find "${ED}"/usr -name '*.la' -delete
}
+
+pkg_preinst() {
+ preserve_old_lib /usr/$(get_libdir)/libmpfr$(get_libname 4)
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify /usr/$(get_libdir)/libmpfr$(get_libname 4)
+}