From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0J00CHJrUmAAeQAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 20:49:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id k7nlA3JrUmBCLwAAB5/wlQ (envelope-from ) for ; Wed, 17 Mar 2021 20:49:54 +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 6422E192D0 for ; Wed, 17 Mar 2021 21:49:53 +0100 (CET) Received: from localhost ([::1]:35020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMd72-0002IM-HS for larch@yhetil.org; Wed, 17 Mar 2021 16:49:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMd6M-0001tX-3q for help-guix@gnu.org; Wed, 17 Mar 2021 16:49:10 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMd6J-0001as-7k for help-guix@gnu.org; Wed, 17 Mar 2021 16:49:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 00597160061 for ; Wed, 17 Mar 2021 21:49:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1616014143; bh=OTJXOWBl4GQtosGPOEL9TfhitHhArlwuBPKl13tg0m8=; h=Subject:To:From:Date:From; b=c56mcdPDExTOr4VtDoVaaZhB8TNysZJGZOUgLkW1m9N0PFkk96Gg7kV4rgFiUAIGC Bxr+vXlxud7rB/Oc6GCrkKBvlryEW5UG6BE9prAduEoy8iAm1NwOWscdqqb3c5GdsH qfHIbxacI3B3hqqQCvD9qhb476mV4owfUuaCF7KWNJeJUt2+9IddsumlZ5OMFFvgmU x23rp1Q+GsfSfnv966SFNboXLbaALIm+Bbt7uxoqrl9XIBpqFsI/0R00j0T5wH0sEl GFtqYoRutJX1UOi3Tr+ivxxVusiG3Hn/Ns5mvqaf866oE4SfLSg5xtxcZDNTEIwo1X 7he79TORO11qQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F12M23gqSz9rxM for ; Wed, 17 Mar 2021 21:49:02 +0100 (CET) Subject: Re: Setting up guix source tree for testing a package To: help-guix References: <7698a9df-6fe6-9581-a513-456f8058ad3b@posteo.de> <877dmcb0ti.fsf@dismail.de> From: Zelphir Kaltstahl Message-ID: Date: Wed, 17 Mar 2021 21:49:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <877dmcb0ti.fsf@dismail.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL=1.623 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=1616014193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=EzRwmeeAbIuidKNMQfoi5TA+aJVV0DcAkvltGRu04yE=; b=VARdpibE6qltWX7/8sziteeOZlqamO3q6SMjoMtrr/6HIiMF4VJ9f8uXincJCnJYh0r/Dy dkX0b4ZstkeWEZbUb4+IZEzeMR+9YMew3Y5B0TKOQAwqUUKDtAxgnRM1aZVb1Mldye5Qe6 oRKMaG/mbvmNRAu6iAXWw8TOT4D8rvgAlg/F56ebiZLKL5dpUhJMSEK7WI+EBfgLnHtrze SXs386J6FD4NfHcQ9zj1dLS61SW/WgsJF9Navm4SZq1fdhzuUkOZYfj35ckQV0s08pbdG3 aAj7Mv8ihBWnhD6iT6tkpbjFComZrsapErC2TSuU1qUj1g+mXzdwlP5kCCG54g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616014193; a=rsa-sha256; cv=none; b=HPsFZVlEVCEnKR88GXgwxjZfw8j0di+yg1WPJhrnhqz+QjahF7rh5OVlKxOri4CrWjmu1r 4eKU43A5bxeEIeSqNLVMnFSYhmU0KI1KDLcmg1C7qYTyprR4DEknTjISZPPl2dnO8mZzQT uSkMC1Ub/CxNNfGd6vTReT0kLeA8epk+VWHeq7Pcq1mJmrGlJxCsTipD+U/tusEd6kn3XF MZe/h/6Rx5S5ZdjBVc9CIH9ujD6ycuiWUiyjq42li2JL1JojWM9nEysaUtPR6nJEStgVgD clR1b6to2/Kyae8K29CrKxxW+e8S5BnQyEOOzjm4ew/un7/03K2Vgd/pj2KNgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=c56mcdPD; 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.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=c56mcdPD; dmarc=pass (policy=none) header.from=posteo.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: 6422E192D0 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: J+COTOfbi5Og Hi Joshua! On 3/12/21 8:59 PM, Joshua Branson wrote: > Zelphir Kaltstahl writes: > >> Hello Guix Users, >> >> I am trying to set up GNU Guix for package testing, as I want to test a package >> 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 docs in >> the following. >> >> All is happening inside a VM, which runs a Debian 10. The VM is almost fresh, >> 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 have >> 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 medium. >> This “bootstraps” 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=directory` 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 linked >> 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 about my >> specific scenario of doing things from Guix source tree. Since I intend to 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 create >> 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=/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 Thanks Joshua! I'll have a look at your resources once I get to it ; ) (I think I added them to the guile awesome list already, just did not yet watch them all.) Best wishes, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl