diff options
-rw-r--r-- | sys-devel/libperl/ChangeLog | 5 | ||||
-rw-r--r-- | sys-devel/libperl/libperl-5.10.1.ebuild | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sys-devel/libperl/ChangeLog b/sys-devel/libperl/ChangeLog index a2770c4eb2ef..f0053f5bd725 100644 --- a/sys-devel/libperl/ChangeLog +++ b/sys-devel/libperl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-devel/libperl # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/ChangeLog,v 1.141 2009/09/27 11:00:50 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/ChangeLog,v 1.142 2009/10/07 09:19:30 tove Exp $ + + 07 Oct 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild: + Different way to remove libperl link. Needed for perserve-libs 27 Sep 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild: Remove orphaned symbolic link diff --git a/sys-devel/libperl/libperl-5.10.1.ebuild b/sys-devel/libperl/libperl-5.10.1.ebuild index 555e008ab09d..19749c4545fb 100644 --- a/sys-devel/libperl/libperl-5.10.1.ebuild +++ b/sys-devel/libperl/libperl-5.10.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.10.1.ebuild,v 1.2 2009/09/27 11:00:50 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.10.1.ebuild,v 1.3 2009/10/07 09:19:30 tove Exp $ inherit multilib @@ -16,9 +16,8 @@ IUSE="" PDEPEND=">=dev-lang/perl-5.10.1" pkg_postinst() { - if [[ -h ${ROOT}/usr/$(get_libdir )/libperl$(get_libname) && \ - ! -e ${ROOT}/usr/$(get_libdir )/libperl$(get_libname) ]] ; then - einfo "Remove symbolic link: ${ROOT}usr/$(get_libdir)/libperl$(get_libname)" + if [[ $(readlink "${ROOT}/usr/$(get_libdir )/libperl$(get_libname)" ) == libperl$(get_libname).1 ]] ; then + einfo "Removing stale symbolic link: ${ROOT}usr/$(get_libdir)/libperl$(get_libname)" rm "${ROOT}"/usr/$(get_libdir )/libperl$(get_libname) fi } |