From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#31841: ./pre-inst-env guix system no longer works without ~/.config/guix Date: Fri, 15 Jun 2018 13:24:05 +0200 Message-ID: <87bmccuwbu.fsf@mdc-berlin.de> References: <8736xopz0q.fsf@netris.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]:45443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTmqo-0007ga-8N for bug-guix@gnu.org; Fri, 15 Jun 2018 07:25:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTmql-0000bH-1q for bug-guix@gnu.org; Fri, 15 Jun 2018 07:25:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTmqk-0000ay-M6 for bug-guix@gnu.org; Fri, 15 Jun 2018 07:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fTmqk-00009A-Ez for bug-guix@gnu.org; Fri, 15 Jun 2018 07:25:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8736xopz0q.fsf@netris.org> 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: Mark H Weaver Cc: 31841@debbugs.gnu.org Hi Mark, > Since updating to current master (commit b494bbe46), 'guix system' no > longer works for me: > > --8<---------------cut here---------------start------------->8--- > mhw@jojen ~/guix$ ./pre-inst-env guix system build -n /etc/config.scm > guix: system: command not found > Try `guix --help' for more information. > --8<---------------cut here---------------end--------------->8--- This works when inside an environment containing guile-sqlite3: --8<---------------cut here---------------start------------->8--- rekado in master: ./pre-inst-env guix environment --ad-hoc guile guile-sqli= te3 The following derivations will be built: /gnu/store/kgw7p80vksbw9yccx947gdar14486y9y-profile.drv /gnu/store/fw5m7zhwch6749w3jz8mr1k46qnjp73v-info-dir.drv /gnu/store/c1zr6p5w7kaz7rfcq8vbw9pw9pmzycf1-fonts-dir.drv /gnu/store/akxhpxyl9ialbl7c2ikykh26ai3i7yw3-ca-certificate-bundle.drv /gnu/store/6n654bc9lbisaw97aikd8d13z9w78779-manual-database.drv Creating manual page database... 1 entries processed in 0.0 s rekado in master [env]: ./pre-inst-env guix system --help Usage: guix system [OPTION ...] ACTION [ARG ...] [FILE] Build the operating system declared in FILE according to ACTION. Some ACTIONS support additional ARGS. The valid values for ACTION are: [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- When outside of an environment containing guile-sqlite3 strace shows that Guix tries to load it right before failing. The cause here is the autoloading of (guix store database), which depends on the sqlite bindings. We could fix this by recording more of the configured GUILE_LOAD_{,COMPILED_}PATH and setting it up at runtime with pre-inst-env. (The same would apply to gnutls bindings, for example.) -- Ricardo