From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: Guix direct checkout hacking Date: Sat, 16 Mar 2019 15:39:56 +0100 Message-ID: <87va0iublv.fsf@roquette.mug.biscuolo.net> References: <87y35ft638.fsf@roquette.mug.biscuolo.net> <20190316125456.4db5c8dd@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5Ak0-00061W-5a for guix-devel@gnu.org; Sat, 16 Mar 2019 10:56:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5AUB-0005KV-Bd for guix-devel@gnu.org; Sat, 16 Mar 2019 10:40:32 -0400 Received: from ns13.heimat.it ([46.4.214.66]:36446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5AUA-0005Il-Ot for guix-devel@gnu.org; Sat, 16 Mar 2019 10:40:31 -0400 In-Reply-To: <20190316125456.4db5c8dd@scratchpost.org> 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: Danny Milosavljevic Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Danny, Danny Milosavljevic writes: > 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, bootstrap deps or packages deps (inputs)? > or some variables in the Makefiles get added or removed. OK, got it thanks > Personally, I'm too lazy to bootstrap every time. But I ./configure > pretty often ("./configure --localstatedir=3D/var"). uh: --localstatedir is **mandatory** it defaults to /usr/local/var [1] as documented in GNU Coding Standards 7.2.5 [2] while I thought it defaulted to /var (GNU Coding Standards it's another *really should* read to be a proficient Guix hacker, no?) should we better document in https://www.gnu.org/software/guix/manual/en/html_node/The-Store.html#The-St= ore? that if not specified --localstatedir defaults to /usr/local/var as for above mentioned coding standards? >> 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 :) OK, got it thanks >> 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) [...] > 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. OK got it, thanks >> 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. eh... got in now, too :-) I thought I needed to start a separate daemon to be able to build, see [2] >> error: failed to run download program '/home/giovanni/{git}/giovanni.bis= cuolo.net/guix/nix/scripts/download': Permission denied > > Hmm, what are the permissions of that file? =2Drwxr-xr-x 1 giovanni giovanni 272 Mar 16 15:08 nix/scripts/download > Did you generate it using the same user ? (via ./configure, I think). yes OK, so I reconfigured via "./configure --localstatedir=3D/var" and now: =2D-8<---------------cut here---------------start------------->8--- giovanni@anemone: time ./pre-inst-env guix build --verbosity=3D5 hello guix build: error: getting attributes of path `/gnu/store/hbdalsf5lpf01x4dc= knwx6xbn6n5km6k-hello-2.10.tar.gz': No such file or directory Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message =2D-8<---------------cut here---------------end--------------->8--- solved this with =2D-8<---------------cut here---------------start------------->8--- giovanni@anemone: guix gc --verify reading the store... checking path existence... path `/gnu/store/5c88v80zi7gm928ajn739lnz5vc7vkfg-glibc-2.28.tar.xz' disapp= eared, removing from database... path `/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz' disapp= eared, removing from database... =2D-8<---------------cut here---------------end--------------->8--- and now hello builds Thanks! [1] I fully realized this when running =2D-8<---------------cut here---------------start------------->8--- giovanni@anemone: ./pre-inst-env guix build hello guix build: error: failed to connect to `/usr/local/var/guix/daemon-socket/= socket': Connection refused =2D-8<---------------cut here---------------end--------------->8--- in the "guix build" environment [2] https://www.gnu.org/prep/standards/html_node/Directory-Variables.html#D= irectory-Variables =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlyNCr0ACgkQ030Op87M ORKSYg//RoIiSANTFjJXWIir3+lWRNft+rgMggXcGIlY1LC89lk5D09RcchlZbsU tvr79YkQQTaIXAApl1rOhibnv98BrfU+zaVYNemSIn7RXCK+OlZVZDcUSwDQlnMg JTIBnu2hnT4j/akLYouw0OWFgX5/Zju3+sX/KJuXuzo0FxXuezYRXhaOwApjJdDT DT861iU2B6vu/SB7tO7LWCmks5FZJLt7zBna7qy1S9iTh4i3p5+qVj5mBlIJ0Pam 8Wd5mUBX14zKRnFVAct51Tj9YHtSq0m2oy1J2eOjsN0+6oDvS+cEVYn/Im8ee7st Vg/+3C2E3lz77ZfBMVNv4Znlg+Pu0+FV4ZPAq5Nyo0rk3A6bKvQInzYP/uqr6Q5P eRBM1kiLDlHsAMelp9EAMtN69c0gyxo7ZLnmf+heAXZtofHd31SVkc9gxqf/I/i4 Ri56PaootGJV8whGjG/VZcASIUg/xwgMxx4ymIV741XV50mcyX7fRzJBtDjUQyxG /BDc9w4HW5xOYUC48fxd2DxSnasNwGTzPUhFU+P7j9/vyIrfOlD375I5s+X+I1Cj ItLn6BA6GiJFdk/5WnonR1BmiGLp4DbcQ0GBK2sg8xD1WdrcBd/jSp1FMbj45RS1 tFLgUY00Mkere52YQx9cuAhw4W23ixM1eFrc1DL+Rkahm1q7IjA= =p6cr -----END PGP SIGNATURE----- --=-=-=--