From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18689: guix-register test fails Date: Sun, 12 Oct 2014 00:29:20 +0200 Message-ID: <877g0644vz.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd5Az-0007o1-RC for bug-guix@gnu.org; Sat, 11 Oct 2014 18:30:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xd5Aq-0007Jp-DD for bug-guix@gnu.org; Sat, 11 Oct 2014 18:30:13 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:49758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd5Aq-0007JL-As for bug-guix@gnu.org; Sat, 11 Oct 2014 18:30:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xd5Ap-0002Xc-Bx for bug-guix@gnu.org; Sat, 11 Oct 2014 18:30:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Philip Woods's message of "Sat, 11 Oct 2014 14:22:07 -0400") 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: Philip Woods Cc: 18689@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Philip Woods skribis: > + guix-register -p /home/elzair/Development/scheme/guix/t-register-4387 > error: creating directory `/gnu': Permission denied Here =E2=80=98guix-register=E2=80=99 attempts to create /gnu/store if it do= esn=E2=80=99t exist yet, hence this error (I don=E2=80=99t have this error on my machine because /gnu/store already exists.) Could you apply the patch below (with =E2=80=98patch -p1 < foo.patch=E2=80= =99), and then run =E2=80=9Cmake check TESTS=3Dtests/guix-register.sh=E2=80=9D, making sur= e that /gnu does *not* already exist? --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/nix/guix-register/guix-register.cc b/nix/guix-register/guix-register.cc index 92eedab..f5c610f 100644 --- a/nix/guix-register/guix-register.cc +++ b/nix/guix-register/guix-register.cc @@ -224,16 +224,16 @@ main (int argc, char *argv[]) { argp_parse (&argp, argc, argv, 0, 0, 0); + /* Instantiate the store. This creates any missing directories among + 'settings.nixStore', 'settings.nixDBPath', etc. */ + LocalStore store; + if (!prefix.empty ()) /* Under the --prefix tree, the final name of the store will be NIX_STORE_DIR. Set it here so that the database uses file names prefixed by NIX_STORE_DIR and not PREFIX + NIX_STORE_DIR. */ settings.nixStore = NIX_STORE_DIR; - /* Instantiate the store. This creates any missing directories among - 'settings.nixStore', 'settings.nixDBPath', etc. */ - LocalStore store; - register_validity (&store, *input, deduplication); } catch (std::exception &e) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks in advance, Ludo=E2=80=99. --=-=-=--