From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#24686: --load-path not honored by guix system Date: Mon, 17 Oct 2016 10:29:32 +0200 Message-ID: <87mvi3fker.fsf@gnu.org> References: <87y41of664.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]:33207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw3J8-0004wj-GO for bug-guix@gnu.org; Mon, 17 Oct 2016 04:30:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw3J5-0004H5-AY for bug-guix@gnu.org; Mon, 17 Oct 2016 04:30:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bw3J5-0004Gl-6a for bug-guix@gnu.org; Mon, 17 Oct 2016 04:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bw3J5-0008T4-0Y for bug-guix@gnu.org; Mon, 17 Oct 2016 04:30:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Reepca Russelstein's message of "Sun, 16 Oct 2016 20:34:25 -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" To: Reepca Russelstein Cc: 24686@debbugs.gnu.org Reepca Russelstein skribis: > guix --version returns "guix (GNU Guix) 20161013.22". My config.scm > included (firmware (cons openfwwf-firmware %base-firmware)). I was using a > patch provided by bavier from irc to provide openfwwf-firmware (here is t= he > patch http://paste.lisp.org/display/328373). I created > /root/guix-modules/gnu/packages/firmware.scm, which was the patched > version. When I tried running "guix system reconfigure > --load-path=3D/root/guix-modules /etc/config.scm" it said that it could n= ot > find openfwwf-firmware. I then ran "export > GUIX_PACKAGE_PATH=3D/root/guix-modules" and then ran "guix system reconfi= gure > /etc/config.scm" and it successfully found openfwwf-firmware and > reconfigured the system. That's why I think --load-path is not being > honored. I think there=E2=80=99s something subtle going on. %load-path is adjusted = when command-line arguments are processed, but that happens after (gnu system) and presumably (gnu packages firmware) have been loaded. Therefore, your own (gnu packages firmware) module isn=E2=80=99t =E2=80=9Cs= een=E2=80=9D. What I would suggest is to rename your (gnu packages firmware) module to, say, (my packages firmware), and to use that in your OS config (make sure to rename both the file and the module name that appears in the =E2=80=98define-module=E2=80=99 clause!). Could you try and report back? Thanks, Ludo=E2=80=99.