[Lunar-commits] <moonbase> readline: fixed critical install bug readline hangs on sum generation during lunar update just after successful readline build. Then no lin possible, no login possible and missing readline libs errors appear everywhere. This is especially painful when you lin readline and again lin readline.

Zbigniew Luszpinski zbiggy at lunar-linux.org
Thu Sep 24 23:58:27 CEST 2009


commit 1a20ba020a5d8e2259636210d297089e2c17fe85
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Thu Sep 24 23:58:27 2009 +0200

    readline: fixed critical install bug
    readline hangs on sum generation during lunar update just after successful readline build.
    Then no lin possible, no login possible and missing readline libs errors appear everywhere.
    This is especially painful when you lin readline and again lin readline.
---
 libs/readline/BUILD        |   11 +++++++++--
 libs/readline/POST_INSTALL |    1 +
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/libs/readline/BUILD b/libs/readline/BUILD
index 953d42d..c08b33d 100644
--- a/libs/readline/BUILD
+++ b/libs/readline/BUILD
@@ -1,5 +1,12 @@
 (
 
+  # Real and working fix for readline 5 to 6 upgrade
+  # Especially workaround issue when you would like to lin again readline 6 after lining readline 6 already
+  mkdir -p /tmp/old.libraries &&
+  cp -f /lib/libreadline.so.* /tmp/old.libraries &&
+  cp -f /lib/libhistory.so.* /tmp/old.libraries &&
+  LD_LIBRARY_PATH=/tmp/old.libraries:$LD_LIBRARY_PATH &&
+
   OUR_OLD_READLINE_VVV=$(lvu installed readline | perl -pe 's/([0-9]).+/$1/')  &&
   set_module_config OUR_OLD_READLINE_VVV "$OUR_OLD_READLINE_VVV"  &&
   # ************************ WARNING *************************
@@ -14,7 +21,7 @@
               --mandir=/usr/share/man     \
               --infodir=/usr/share/info  &&
   default_make                           &&
-  if [ ! -e /etc/inputrc ] ; then 
+  if [ ! -e /etc/inputrc ] ; then
     install $SCRIPT_DIRECTORY/inputrc /etc/
   fi  &&
   # temp hack to help in change over to readline-6.0 from readline-5.x
@@ -22,6 +29,6 @@
   devoke_installwatch                                 &&
   ln -sf /lib/libreadline.so.6 /lib/libreadline.so.5  &&
   ln -sf /lib/libhistory.so.6  /lib/libhistory.so.5   &&
-  invoke_installwatch                                  
+  invoke_installwatch
 
 ) > $C_FIFO 2>&1
diff --git a/libs/readline/POST_INSTALL b/libs/readline/POST_INSTALL
index 9755df3..eab6197 100644
--- a/libs/readline/POST_INSTALL
+++ b/libs/readline/POST_INSTALL
@@ -13,4 +13,5 @@ fi
 
 #rm -f /lib/libreadline.so.5  &&
 #rm -f /lib/libhistory.so.5   &&
+rm -rf /tmp/old.libraries     &&
 unset_module_config OUR_OLD_READLINE_VVV


More information about the Lunar-commits mailing list