From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: bug#30370: guix system init can't find guix-register Date: Sun, 11 Feb 2018 18:32:38 +0100 Message-ID: <87inb35t55.fsf@GlaDOS.home> References: <87po5icam9.fsf@GlaDOS.home> <87shabvbdb.fsf@gnu.org> <87tvursc9j.fsf@GlaDOS.home> <87fu6bta51.fsf@gnu.org> <87r2pu5uhh.fsf@GlaDOS.home> <87lgg23017.fsf@gnu.org> <87mv0i5n78.fsf@GlaDOS.home> <87fu6aywks.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekvUw-0005dG-Ff for bug-guix@gnu.org; Sun, 11 Feb 2018 12:33:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekvUs-0002o7-2D for bug-guix@gnu.org; Sun, 11 Feb 2018 12:33:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekvUr-0002nj-Ug for bug-guix@gnu.org; Sun, 11 Feb 2018 12:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekvUr-0004ZN-Ol for bug-guix@gnu.org; Sun, 11 Feb 2018 12:33:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87fu6aywks.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 09 Feb 2018 17:08:51 +0100") 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" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30370@debbugs.gnu.org Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Diego Nicola Barbato skribis: > >> But I also tried running >> "grep -r d4wwx93gqizx132zjk7h1ir7rzph0pig ~/.config/guix/latest" which >> returned this: >> /home/diego/.config/guix/latest/guix/config.scm: "/gnu/store/d4wwx93gqi= zx132zjk7h1ir7rzph0pig-guix-0.12.0-10.ba2260d/sbin") > > Bingo! This string is inherit from the (guix config) of your initial > installation, the one you used to run =E2=80=98guix pull=E2=80=99. > > I would call this a =E2=80=98guix pull=E2=80=99 bug. I think this is a bug in the =E2=80=98build=E2=80=99 procedure defined in b= uild-self.scm which is used by guix pull=E2=80=99 and which uses the (guix build pull) mo= dule to generate a new config.scm. It uses the value for %sbindir defined in (guix config) which causes it to be passed on unchanged. My guess is that (find-best-packages-by-name "guix" #f) should be used to determine the correct guix instead, which is how the values for the dependencies (libgcrypt, zlib, ...) are determined, and that this should be used to get the sbin directory with =E2=80=98string-append=E2=80=99. WDYT? Greetings Diego