From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8MrPOFbIS2CPZgAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 20:00:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oPqANFbIS2A+cgAAbx9fmQ (envelope-from ) for ; Fri, 12 Mar 2021 20:00:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1FF32E87B for ; Fri, 12 Mar 2021 21:00:22 +0100 (CET) Received: from localhost ([::1]:37800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKnxM-0002Wy-9Y for larch@yhetil.org; Fri, 12 Mar 2021 15:00:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKnww-0002W6-45 for help-guix@gnu.org; Fri, 12 Mar 2021 14:59:54 -0500 Received: from mx1.dismail.de ([78.46.223.134]:17564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKnwq-0000Mr-2Q for help-guix@gnu.org; Fri, 12 Mar 2021 14:59:53 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id c042975c; Fri, 12 Mar 2021 20:59:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=20190914; bh=Yox5lj33 /zL0EqKDDK65JQXt85XfEdWvQ725gfcx97g=; b=jUhDkN2gSv70xebSwQejwGi7 19J4aJjF6GU3j15d4V7FAq6z8przIWu8ooLJgYoBoWgMGOTy1vxjl8POxHPrzrzW vV/+2m2JkkZbNtYwrLQDDhpSyoOJRoyLK9jdfJ+VwoY7AGLUEe3TwC0HB1m4Bnyo a7VT/wPGH2g2R+U64uCenM43hqINGDe0DF2UdNlyRxjyvtKf7Iu+N3dVaj5rasrO lv5It6bUUMvUUN0BzeH+hiYpKlYLa7lsTsPAH9nAwNabIK0RmYIQ84FkF/xLpLgT z/6Izdd7gZmWW1BMTLKjz5OwX0KSXi/J+pV3WBfeASlTU1i68iZfmQWLEXxXdg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id a5793207; Fri, 12 Mar 2021 20:59:42 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 9344bb31; Fri, 12 Mar 2021 20:59:42 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id f2aef092 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 12 Mar 2021 20:59:40 +0100 (CET) From: Joshua Branson To: Zelphir Kaltstahl Cc: help-guix Subject: Re: Setting up guix source tree for testing a package References: <7698a9df-6fe6-9581-a513-456f8058ad3b@posteo.de> Mail-Followup-To: Zelphir Kaltstahl , help-guix Date: Fri, 12 Mar 2021 14:59:21 -0500 In-Reply-To: <7698a9df-6fe6-9581-a513-456f8058ad3b@posteo.de> (Zelphir Kaltstahl's message of "Fri, 12 Mar 2021 00:31:36 +0100") Message-ID: <877dmcb0ti.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615579222; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CMP5MZ54moAhotKT4ZGN9TO8oaA4S6tIgJ6LrEKgXi4=; b=jtOWc3ze3hqODwmSIRdIXaYpYOffX9tOgwvo95/DAyg15jS/gi791sjoYxz6RR5WtvOfCq TCfYSWZ2CpnuCs7jGDuOds9GITcUfEf0h0Gi7nkviiVCQKEatICCHGqEWEH0X/FzqKyw07 SX53gHNVBdP2ZNj4RAzbKVuOFfg5wTc7MqxAhbzYvZ47VmXpyn9YB7R1/LEVMT4/Akdshu eTQ/FZw74G1hWcckous898GPIvbBiN+jVw8wXx6aTKsI9dHKe/Wc4Gi/qNXt+Lu6NuCoog Ck5VwqgzsuFRE3DUlqmp/gAhgH0+lcTnqCYJcjC/1Yok/GSae4aDQMjdiZTH3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615579222; a=rsa-sha256; cv=none; b=q4pG8v6YKz9uqivjbS4Ofa5SseACHuTvP4x6UdQU5ZLVeXhziSvqRfRTjZhHHh3j49bVv6 kzwJOQwAG8ZJTY4FztWB/kAia2y/E7zKyKD2mdJ7LhVeEosVCbmlSDtdDcq/DK56evrzxn uGa9uAhkMgNCw1w8Tdc563f3GIo6DP5cWvnmWs/k7QnkI3lMNU/x71ZmmZSt3CIHJA+N+F I+gkLTnKug3BwaUZzpuBJY1HvZEPk99zzYcSUSKXmjPmKZXrbe2cle+XAjAIS7U4J0ozq+ voqZDFhYCqQh+FUM6qdKYtPyxMRLfm0lIWwX9mVz/D9mToGumeFfOz1pugnHxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=jUhDkN2g; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=jUhDkN2g; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1FF32E87B X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: v/OmMkwBbdfb Zelphir Kaltstahl writes: > Hello Guix Users, > > I am trying to set up GNU Guix for package testing, as I want to test a p= ackage > before sending in a patch to add it to GNU Guix. > > I'll describe the steps I am taking and where I am seeing them in the doc= s in > the following. > > All is happening inside a VM, which runs a Debian 10. The VM is almost fr= esh, > except for guest additions and git and vim and such things. This sounds a little complicated...trying to develop things for guix inside a virtual machine that's running Debian...I mean that sure makes the testing REALLY potentially reproducible...But wouldn't it be easier/simpler to do development for guix whilst using guix (or guix system) on bare metal? If you really prefer to develop for guix in a vm, you can download guix virtual machine images here: http://guix.gnu.org/en/download/ Oh, having read the building from git section in the guix manual...they do make it should like you should start from a virtual machine...What operating system are you running on bare metal? That's what I would use to develop for guix. >> As you can see, there is a chicken-and-egg problem: you first need to ha= ve > Guix installed. Typically you would install Guix System (see System > Installation) or Guix on top of another distro (see Binary Installation);= in > either case, you would verify the OpenPGP signature on the installation m= edium. > This =E2=80=9Cbootstraps=E2=80=9D the trust chain. May I suggest that this chicken and egg problem exists because you chose to use a debian vm? This is not a criticism. :) > But here I am facing a problem. I have no clue what to set the > `--localstatedir=3Ddirectory` to. The docs tell me it is important, but I= see no > instructions on how to choose a directory for the local state, when I have > already a Guix installed (binary installation on foreign distro). The lin= ked > docs about the https://guix.gnu.org/manual/en/html_node/The-Store.html > do not help me > choosing it either, because that page is about the store itself, not abou= t my > specific scenario of doing things from Guix source tree. Since I intend t= o build > a package inside the Guix source tree, I think it should exactly _not_ be= /var, > as that would conflict with the Guix installation, that I had to do to cr= eate > the pre-inst-env script. I'm not certain how to answer this. Since I develop for GNU Guix on guix system, I always run "./configure --localstatedir=3D/var". This works for me! > > What is the idea for the local state directory? Is it the location of a > temporary store, which will contain anything, that I produce using the > pre-inst-env script? That is what I am guessing. In that case I think > `localstoredir` might be a good alias for `localstatedir`. I think localstatedir is the location of guix specific things? My /var/guix contains gcroots, profiles, substitute, and daemon-socket directories. I applaud your attention to detail and trying to submit a "perfect" patch to GNU guix. :) That really does help the project have good standards. Trust me not all of the guix patches are perfect. Somehow some of mine were merged. :) > > When I try running: > > ~~~~ > make authenticate > ~~~~ > > I get an error: > > ~~~~ > $ make authenticate > Authenticating Git checkout... > /bin/bash: line 1: guix: command not found > make: *** [Makefile:6290: authenticate] Error 127 > ~~~~ I've run into this issue before too...hmmm. How did I fix it? I think that you need to download Ludo's gpg keyring... https://wiki.archlinux.org/index.php/GnuPG#Import_a_public_key gpg --import public.key Then you should be able to run: git fetch origin keyring:keyring guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \ "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA" > Where did I go wrong? > Regards, > Zelphir I think you just tried to start developing in a "perfect" but difficult way. :) If you already use GNU/Linux as your main OS, install guix on it, and develop from that OS. If you are running guix system, develop from that. Best of luck! P.S. You might find my online videos where I try to contribute to guix helpful too: https://video.hardlimit.com/accounts/joshua_branson/video-channels They may be a little boring, and perhaps not the best way to develop, but the videos show me developing in some kind of haphazard way. My newer videos involving endlessh are probably close to the "correct" way. -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar