Nikita Karetnikov <nik...@karetnikov.org> skribis:

> # strings 
> /nix/store/qn9m4cjncna9mcac98fynialsv2l28jm-glibc-intermediate-2.17/bin/sh | 
> grep ld.so
> /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-2.13/lib/ld.so.1
>
> How can I fix this?

You should actually build a statically-linked Bash, and edit
%bootstrap-inputs to use that instead of Nixpkgs’s dynamically-linked
Bash.

That is, you’d have something along these lines:

  (define %bootstrap-inputs
    (compile-time-value
     `(("libc" ,(nixpkgs-derivation "glibc" "i686-linux"))
       ("bash" "/foo")
       ,@(map (lambda (name)
                (list name (nixpkgs-derivation name "i686-linux")))
              '("gnutar" "gzip" "bzip2" "xz" "patch"
                "coreutils" "gnused" "gnugrep"   ; no “bash” here!
                "gawk"                                ; used by `config.status'
                "gcc" "binutils")))))

where /foo is a directory containing just bin/bash.

>> (Remember to add that to ‘glibc-dynamic-linker’ eventually.)
>
> Yes, I've already adjusted 'bootstrap.scm':

Perfect.

HTH,
Ludo’.

Reply via email to