From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Guix direct checkout hacking Date: Sat, 16 Mar 2019 12:54:56 +0100 Message-ID: <20190316125456.4db5c8dd@scratchpost.org> References: <87y35ft638.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/QwkEObAQHAkxA4BsJp2zUJv"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h57u3-0008Qz-UP for guix-devel@gnu.org; Sat, 16 Mar 2019 07:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h57u2-0008Ea-GW for guix-devel@gnu.org; Sat, 16 Mar 2019 07:55:03 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:54748) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h57u2-0008Da-2n for guix-devel@gnu.org; Sat, 16 Mar 2019 07:55:02 -0400 In-Reply-To: <87y35ft638.fsf@roquette.mug.biscuolo.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Giovanni Biscuolo Cc: guix-devel@gnu.org --Sig_/QwkEObAQHAkxA4BsJp2zUJv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Sat, 16 Mar 2019 12:24:27 +0100 Giovanni Biscuolo wrote: > I regurarly "git pull" in $GUIX_CHECKOUT and then "guix environment > guix": is it sufficient and necessary to "/.bootstrap" and then > "/.configure" every time I enter the environment in order to have a > working build environment? Not really. Only if dependencies get added or removed, or some variables in the Makefiles get added or removed. Personally, I'm too lazy to bootstrap every time. But I ./configure pretty often ("./configure --localstatedir=3D/var"). > Do I really need to "make check" every time I "activate" the devel > environment or after every "git pull" of my $GUIX_CHECKOUT? Not really, but later on, it's nice to know whether your change broke something or whether it was broken to begin with. Personally, I don't run "make check" until I need to. I often need to backtrack then :) > Do I neeed to regurarly "make clean-go" to get rid of compiled .go or I > can ignore this step? If this step should be regurarly done: when? > (this is not documented, just my curiosity) I never do exactly this, but that's because clean-go regularily leaves ".go" files anyway. Why this is necessary in the first place: The problem is that there's some inline-tracking missing in the guile handler for go files, so it can happen that one go file inlined something that is already changed in the other go file (especially with macros). The former won't be automatically recompiled and then you get an ABI mismatch / funny behavior / crashes at runtime. In the real world, I don't delete all ".go" file every time--it would take way too long to recompile. But if there are strange things happening later, I delete them and run "make" in order to rebuild them. > I start the build daemon in the environment: >=20 > sudo -E ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild I never do this since the build daemon almost never changes. So I just use the system build daemon. > error: failed to run download program '/home/giovanni/{git}/giovanni.bisc= uolo.net/guix/nix/scripts/download': Permission denied Hmm, what are the permissions of that file? Did you generate it using the same user ? (via ./configure, I think). --Sig_/QwkEObAQHAkxA4BsJp2zUJv Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlyM5BAACgkQ5xo1VCww uqXfigf/a3D4lwTHR/rwR3WHm/DYStIYJJoy2KUSbLm4HMn9gS6XV4l5+vl5s/md lInn9nWmyS8Izs2MnYHYV7xRVTohJLSBIaBc7eg7490xFiRfVpTRj18swy5SMiiB brWmL4dDpcmGkan5uOpC3DyHjoirjSta6r+FTCqPDu+QmaL6M5H3+OP4SFpaDsTp 37/aWGGUBJgwzPeAAPvIlxt6cjaAgFgAwoZHgGgl6J+eNCcKkJ3a/IXaEPOcRcu1 Y85Zmy8umUgiidMKp1Ac7S/0FsDXvQgpWLonxDyTwlBXlzs+QHaQrudUk/ShOhkd rldwC2XnTyP68hKdleBCH8CLpkQZ3g== =spJX -----END PGP SIGNATURE----- --Sig_/QwkEObAQHAkxA4BsJp2zUJv--