[Lunar-commits] <moonbase> gcl: Adding a BUILD.x86_64. As noted, configure will hang forever until it

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Tue Aug 25 22:23:29 CEST 2009


commit 062cfe8bb4c9e954a2cfe37f03c2178418d3c286
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Tue Aug 25 16:23:29 2009 -0400

    gcl: Adding a BUILD.x86_64. As noted, configure will hang forever until it
    
    receives a Ctrl C. Tried several patches from gentoo and other places, none
    worked. I think our autotools stuff is to new. One gentoo bug report
    proffered these to alternatives;
    
    1. Recompile the kernel with CONFIG_COMPAT_BRK; which I don't like.
    2. So I chose to echo a lower value into /proc/sys/kernel/randomize_va_space
       and then restore the original value after the make install. Neither do I
       like this but it is the least painful.
    
    It works here but I do not have any x86 machines around, so do not know if
    this issue exists on that arch.
---
 compilers/gcl/BUILD.x86_64 |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/compilers/gcl/BUILD.x86_64 b/compilers/gcl/BUILD.x86_64
new file mode 100644
index 0000000..e5139af
--- /dev/null
+++ b/compilers/gcl/BUILD.x86_64
@@ -0,0 +1,31 @@
+(
+  # Apply configure patch
+  patch_it $SOURCE2 0 &&
+
+# This is to prevent configure hanging indefinitely on;
+# checking for randomized brk remedy...
+# So I just want to save the randomize value to restore
+# at the end of the BUILD.
+  cat /proc/sys/kernel/randomize_va_space > VAL &&
+  echo 1 > /proc/sys/kernel/randomize_va_space  &&
+  
+  unset LDFLAGS
+
+  ./configure --prefix=/usr                      \
+              --enable-ansi                      \
+              --enable-notify=no                 \
+              --enable-locbfd=yes                \
+              --enable-dynsysbfd=no              \
+              --enable-statsysbfd=no            &&
+
+  if ! module_installed emacs; then
+          sedit "s!EMACS_SITE_LISP=!EMACS_SITE_LISP=/usr/share/gcl!" makedefs &&
+          sedit "s!EMACS_SITE_LISP=!EMACS_SITE_LISP=/usr/share/gcl!" makedefc
+  fi  &&
+
+  default_make &&
+
+# Lets restore this back to its original value.
+  echo `cat VAL` > /proc/sys/kernel/randomize_va_space 
+
+) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list