summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2016-05-30 18:57:53 +0200
committerHans de Graaff <hans@degraaff.org>2017-07-23 09:35:16 +0200
commit550be1b9278fdbd713c29e6dff6833dc2ab4fb18 (patch)
tree8eb95187110891c80352f224bb13b9eb40e42223
parentpatchset for ruby 2.4.1-r3 (diff)
downloadruby-scripts-550be1b9278fdbd713c29e6dff6833dc2ab4fb18.tar.gz
ruby-scripts-550be1b9278fdbd713c29e6dff6833dc2ab4fb18.tar.bz2
ruby-scripts-550be1b9278fdbd713c29e6dff6833dc2ab4fb18.zip
Remove legacy libruby.so link
Our ebuilds for Ruby 1.8 and older versions installed an unversioned link called libruby.so. This method was flawed because the shared library is not ABI compatible and thus cannot be managed by switching a shared link. Later versions of Ruby ebuilds no longer install this link, but on old systems a dangling link may still be present. This can lead to problems with the cmake recipes for Ruby, bug 582672. This patch removes the link when removing symlinks as part of an eselect change.
-rw-r--r--eselect-ruby/ruby.eselect8
1 files changed, 8 insertions, 0 deletions
diff --git a/eselect-ruby/ruby.eselect b/eselect-ruby/ruby.eselect
index efead1e..1a7f059 100644
--- a/eselect-ruby/ruby.eselect
+++ b/eselect-ruby/ruby.eselect
@@ -8,6 +8,7 @@ SVN_DATE="20161226"
VERSION="20161226"
bindir=/usr/bin
+libdir=/usr/lib
man1dir=/usr/share/man/man1
find_targets() {
@@ -43,6 +44,13 @@ check_target() {
remove_symlinks() {
rm -f ${EROOT}${bindir}/{ruby,gem,irb,erb,ri,rdoc,testrb} && \
rm -f ${EROOT}${man1dir}/{ruby,irb,erb,ri}.1*
+
+ # Remove unversioned legacy link set by ruby 1.8 and earlier
+ # see bug 582672
+ local link="${EROOT}${libdir}/libruby.so"
+ if [[ -e ${link} ]]; then
+ rm -f ${link}
+ fi
}
create_man_links() {