summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-08-19 01:05:19 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-08-19 01:09:31 +0200
commitf83add3a865a9cd4b074d98becb907000acce4d1 (patch)
tree4baaea5f058f4fa118bc3919b0dcdf7cad962930 /sys-libs
parentprofiles: mask app-misc/dnetc for eventual removal. (diff)
downloadgentoo-f83add3a865a9cd4b074d98becb907000acce4d1.tar.gz
gentoo-f83add3a865a9cd4b074d98becb907000acce4d1.tar.bz2
gentoo-f83add3a865a9cd4b074d98becb907000acce4d1.zip
sys-libs/readline: Readded preserve_old_libs call.
Arfrever told me that pkgcore still has no such functionality. Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/readline/readline-8.0_p1.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-libs/readline/readline-8.0_p1.ebuild b/sys-libs/readline/readline-8.0_p1.ebuild
index cb270f8f0e26..b000aa3b553c 100644
--- a/sys-libs/readline/readline-8.0_p1.ebuild
+++ b/sys-libs/readline/readline-8.0_p1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit flag-o-matic multilib-minimal toolchain-funcs usr-ldscript
+inherit flag-o-matic multilib-minimal preserve-libs toolchain-funcs usr-ldscript
# Official patches
# See ftp://ftp.cwru.edu/pub/bash/readline-7.0-patches/
@@ -164,3 +164,12 @@ multilib_src_install_all() {
docinto ps
dodoc doc/*.ps
}
+pkg_preinst() {
+ # bug #29865
+ # Reappeared in #595324 with paludis so keeping this for now...
+ preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5,6,7}
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5,6,7}
+}