From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Porting to mips64el Date: Thu, 31 Jan 2013 13:50:01 +0100 Message-ID: <87a9rppldy.fsf@gnu.org> References: <8738yvnslh.fsf@karetnikov.org> <87bockcnj8.fsf@karetnikov.org> <87bocjvs8m.fsf@gnu.org> <87libkygp3.fsf@karetnikov.org> <87libktruu.fsf@karetnikov.org> <877gn3zzcy.fsf@gnu.org> <87fw1rblhh.fsf@karetnikov.org> <87ham6o9rb.fsf@gnu.org> <87zjzwv9z9.fsf@karetnikov.org> <87fw1nd3s8.fsf@gnu.org> <87libf41oo.fsf@karetnikov.org> <877gmy2uqc.fsf@gnu.org> <87zjztdfdr.fsf@karetnikov.org> <87boc9ea4a.fsf@gnu.org> <87mwvr3m94.fsf@karetnikov.org> <87vcafk8ln.fsf@gnu.org> <878v7b8xc0.fsf@karetnikov.org> <87boc7k5qj.fsf@gnu.org> <87fw1jo9es.fsf@karetnikov.org> <87fw1iie1c.fsf@gnu.org> <87mwvqclyw.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0tae-0001M5-Pi for bug-guix@gnu.org; Thu, 31 Jan 2013 07:50:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0tad-0003iF-4t for bug-guix@gnu.org; Thu, 31 Jan 2013 07:50:04 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:46853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0tac-0003fw-Us for bug-guix@gnu.org; Thu, 31 Jan 2013 07:50:03 -0500 In-Reply-To: <87mwvqclyw.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 30 Jan 2013 18:03:56 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov 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=E2=80=99s dynamically-link= ed Bash. That is, you=E2=80=99d 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 =E2=80=9Cbash=E2=80= =9D here! "gawk" ; used by `config.sta= tus' "gcc" "binutils"))))) where /foo is a directory containing just bin/bash. >> (Remember to add that to =E2=80=98glibc-dynamic-linker=E2=80=99 eventual= ly.) > > Yes, I've already adjusted 'bootstrap.scm': Perfect. HTH, Ludo=E2=80=99.