]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Applied bash-4.0-rng.patch.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Mar 2009 17:39:22 +0000 (17:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Mar 2009 17:39:22 +0000 (17:39 +0000)
lfs/bash

index 40d9c697627531b489e0c444928ccf476dba7b4b..8c675d76c05bd948d5a3b0958577b5bc82c3bb31 100644 (file)
--- a/lfs/bash
+++ b/lfs/bash
@@ -58,8 +58,8 @@ endef
 ###############################################################################
 
 objects = $(DL_FILE) \
-       #$(THISAPP)-arc4random-1.patch \
-       #$(THISAPP)-rng.patch
+       $(THISAPP)-rng.patch \
+       #$(THISAPP)-arc4random-1.patch
 
 download: $(objects)
 
@@ -82,17 +82,17 @@ $(OBJECT): $(objects)
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
 
-ifeq "$(STAGE)" "toolchain"
        # This patch modifies Bash to use /dev/urandom (settable with
        # --with-randomdev=) for $RANDOM, instead of getpid() and gettimeofday().
        # The test is "( echo $RANDOM; ( echo $RANDOM ); ( echo $RANDOM ) )":
-       #cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-rng.patch
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-rng.patch
 
        # Bash uses the RTLD_LAZY option when loading libraries. We want to use
        # RTLD_NOW (it is defined from <dlfcn.h>:
        cd $(DIR_APP) && sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \
                -i builtins/enable.def
 
+ifeq "$(STAGE)" "toolchain"
        cd $(DIR_APP) && \
                ac_cv_func_working_mktime=yes \
                ./configure \