bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting to mips64el


From: Ludovic Courtès
Subject: Re: Porting to mips64el
Date: Thu, 31 Jan 2013 13:50:01 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Nikita Karetnikov <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]