From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: offline repo server Date: Fri, 19 Jan 2018 15:01:47 +0200 Message-ID: <20180119130147.GA1054@macbook41> References: <877esgjawf.fsf@portkomputilo.i-did-not-set--mail-host-address--so-tickle-me> <20180117181249.0b8fb4a0@centurylink.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecWIz-0007cA-Fl for help-guix@gnu.org; Fri, 19 Jan 2018 08:02:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecWIq-0008Tt-0Y for help-guix@gnu.org; Fri, 19 Jan 2018 08:02:01 -0500 Received: from flashner.co.il ([178.62.234.194]:36156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecWIp-0008SB-Md for help-guix@gnu.org; Fri, 19 Jan 2018 08:01:51 -0500 Content-Disposition: inline In-Reply-To: <20180117181249.0b8fb4a0@centurylink.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Eric Bavier Cc: Quiliro Ordonez Baca , help-guix@gnu.org --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 17, 2018 at 06:12:49PM -0600, Eric Bavier wrote: > On Wed, 17 Jan 2018 18:58:08 -0500 > Quiliro Ordonez Baca wrote: >=20 > > I am not sure if this has been asked before. But I live in a place where > > there is no network link and I would like users to install different > > softwares there. > >=20 > > Is it possible to have a machine connect to the net every so often so > > that it updates all available substitutes (or source if substitutes are > > not available)...and then take that machine to an offline site where > > other machines use it to install all packages that users want? > >=20 >=20 > I don't think we don't have anything out-of-the-box that would elegantly > handle a use-case like this. That being said, you should be able to > hack something together. I think a good place to start would be the > recent work Ludovic did on 'guix weather', which queries substitute > servers for availability of package substitutes. You could base > something off that which, instead of simply reporting statistics, > actually builds the derivations: either the source derivation if a > substitute is unavailable, or the package derivation. >=20 > Obviously, downloading substitutes and/or source for all > packages could take quite a but of time, so you may instead want to > limit to a manifest of the packages you're interested in. But that > could get more complicated because a package's source is "useless" > unless you have sources or substitutes of the packages needed to build > it, so you'd need to analyze the dependency tree a bit. >=20 > It's an interesting use-case. >=20 > Happy Hacking, > `~Eric The shell script I use on my aarch64 build machine is: guix build --no-substitutes --no-grafts --keep-going $(guix package -A | cu= t -f1,2 --output-delimiter=3D@) --sources=3Dtransitive Not related to caching sources but related to building all the packages, I take off '--sources=3Dtransitive' and put on '--max-silent-time=3D1800' w= hen I'm=3D building everything. I guess if you're not running it as a fully independant build server then you wouldn't need the '--no-substitutes' --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlph7DgACgkQQarn3Mo9 g1HK8Q//buaiygXR0LN1bHRARRVyaz73faPzM/FNTnrHw30/JbFO4VzCjoK8NBre cIuX/YZrzRwOIjzFX93qUje3zNDqeiViWXHMWEO9VyYPOYyWERNuG7h7+ryjXrhd aPta3FGLjktRNotzKnkWPuvbMPuAa+1lwqAXyiuCiKUvTsdSOH4VQOMK0s31eV/R 0gRSRMTENKl8Q49yHg0To5w+yFY3q/+5TpCBsGQmBBw0pP+3uO2xayiWfFD5EwjV VgiNe2UQNvKRs6bOEUzyy1MSzESr/aMQnKxGJApoV9YLWR5GqAvOTzZtvMw+XnBV lyhk6gfj20CJGY/H0f9HUVKA7NnnhqxD+itR7yLY94aBEiKDumRIzK2c9dX9Ekij h9gUKChLMp5hlMLdZ2JaRAgE4CZYe67iZnNc7xv2skasFhzmYAoigWgZjZgowBhi QyBF44MBgGVT1snDouL2ScTsSVM3l19TgCKxwoa4be4+v+qQ+Vxy7vopUu3+++gI rxFdtJxuUfWjdr/tCUVGBo0z418qwVOoe+YYj/QxFE8tIYfUkKT2PDhp/BMh3Gzm abnqSlg+jtMtD/QwBGA5FLMIjdKKCX297I/Fp26LW5pazKcPio2zks2U8KVioOgL lcy1i9s5J+Qt0VSMYtnR68gK1VoRVaaJO0L59wSrFVu+GYqW5xc= =lIqd -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--