[Lunar-commits] <moonbase> perl: restored vim rebuild in POST_INSTALL

Duncan Gibson engelsman at lunar-linux.org
Mon Apr 25 21:57:01 CEST 2011


commit 852436923b4da4e90c31eccee0f7d5c7f0f0ca9b
Author: Duncan Gibson <engelsman at lunar-linux.org>
Date:   Mon Apr 25 21:57:01 2011 +0200

    perl: restored vim rebuild in POST_INSTALL
    
    The neat idea to use "in_depends vim perl" can't be used to rebuild
    vim only if it was built to use perl because that branch won't fire.
    See http://bugs.lunar-linux.org/view.php?id=474
    
    Commented out the code, and restored the brute force approach.
---
 perl/perl/POST_INSTALL |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/perl/perl/POST_INSTALL b/perl/perl/POST_INSTALL
index 4c27a5b..12f8a6c 100644
--- a/perl/perl/POST_INSTALL
+++ b/perl/perl/POST_INSTALL
@@ -26,9 +26,16 @@ message "Remember to re-install all CPAN modules by hand!"
 message "$DEFAULT_COLOR"
 
 # re-lin vim if perl support there has been enabled, otherwise it will stop working
+# if module_installed vim ; then
+#   if in_depends vim perl ; then
+#     verbose_msg "Rebuilding vim ..."
+#     lin -c vim
+#   fi
+# fi
+# unfortunately the in_depends branch in the above never fires due to a big
+# see http://bugs.lunar-linux.org/view.php?id=474
+# therefore just rebuild vim whether it uses perl or not
 if module_installed vim ; then
-  if in_depends vim perl ; then
-    verbose_msg "Rebuilding vim ..."
-    lin -c vim
-  fi
+  verbose_msg "Rebuilding vim ..."
+  lin -c vim
 fi


More information about the Lunar-commits mailing list