From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Dup=C3=A9ron_Georges?= Subject: Re: Including sources in guix archive --export Date: Mon, 24 Sep 2018 21:30:05 +0200 Message-ID: References: <1536873178.22035.0@smtp.gmail.com> <87h8isieke.fsf@gnu.org> <87zhw6ud5e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d7cfbf0576a3040f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4Wi9-0005Kj-UF for help-guix@gnu.org; Mon, 24 Sep 2018 15:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4WYn-0003Lc-9y for help-guix@gnu.org; Mon, 24 Sep 2018 15:30:22 -0400 In-Reply-To: <87zhw6ud5e.fsf@gnu.org> 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: ludo@gnu.org Cc: help-guix@gnu.org --000000000000d7cfbf0576a3040f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ludovic, On my system, $ guix build --sources=3Dall hello /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz $ guix build --source --sources=3Dall hello /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz whereas guix build --source --sources=3Dtransitive hello does give a (partial) list of dependencies. Did I miss something? I managed to get a list with partial overlap using the following=C2=B9: $ guix build --source --sources=3Dtransitive glibc-bootstrap gcc-bootstrap bootstrap-binaries bootstrap-tarballs Thanks! Georges Dup=C3=A9ron =C2=B9 It's possible that since I was including stuff using wildcards; I accidentally dragged in more dependencies than was strictly needed. Le lun. 24 sept. 2018 =C3=A0 17:29, Ludovic Court=C3=A8s a = =C3=A9crit : > Hi Georges, > > Dup=C3=A9ron Georges skribis: > > > Thanks a lot Ludovic, this really helped :) . > > > > The following command nearly worked: > > > > guix archive --export --recursive hello $(guix build --source > > --sources=3Dtransitive hello $MORE_SOURCES) > > > > but I had to explicitly add more sources, namely /gnu/store/*-$i.drv fo= r > > these files: > > > > binutils-2.23.2.tar.xz > > bison-3.0.4.tar.xz > > gc-7.6.4.tar.gz > > gcc-4.8.2.tar.xz > > glibc-2.18.tar.xz > > guile-2.0.9.tar.xz > > gcc-4.9.4.tar.xz > > gettext-0.19.8.1.tar.gz > > gmp-6.1.2.tar.xz > > guile-2.2.3.tar.xz > > libatomic_ops-7.6.4.tar.gz > > libffi-3.2.1.tar.gz > > libtool-2.4.6.tar.xz > > libunistring-0.9.9.tar.xz > > m4-1.4.18.tar.xz > > perl-5.26.1.tar.gz > > pkg-config-0.29.2.tar.gz > > static-binaries.tar.xz > > texinfo-6.5.tar.xz > > zlib-1.2.11.tar.gz > > > > It seems that these are used to bootstrap guile and GCC. Is there a way > to > > get this list programmatically, without hardcoding version numbers? > > Does =E2=80=9Cguix build --sources=3Dall hello=E2=80=9D help? > > HTH, > Ludo=E2=80=99. > --=20 Georges Dup=C3=A9ron --000000000000d7cfbf0576a3040f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ludo= vic,

On my system,

$ guix build= --sources=3Dall hello
/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6= k-hello-2.10.tar.gz
$ guix build --source --sources=3Dall hello
/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz
<= /div>

whereas guix build --source --sources=3Dtransitive= hello does give a (partial) list of dependencies. Did I miss something?

I managed to get a list with partial overlap using t= he following=C2=B9:
$ guix build --source --sources=3Dtransitive = glibc-bootstrap gcc-bootstrap bootstrap-binaries bootstrap-tarballs

Thanks!
Georges Dup=C3=A9ron

=
=C2=B9 It's possible that since I was including stuff using = wildcards; I accidentally dragged in more dependencies than was strictly ne= eded.

Le=C2=A0lun. 24 sept. 2018 =C3=A0=C2=A017:29, Ludovic Court=C3=A8s= <ludo@gnu.org> a =C3=A9crit=C2= =A0:
Hi Georges,

Dup=C3=A9ron Georges <jahvascriptmaniac@gmail.com> skribis:

> Thanks a lot Ludovic, this really helped :) .
>
> The following command nearly worked:
>
> guix archive --export --recursive hello $(guix build --source
> --sources=3Dtransitive hello $MORE_SOURCES)
>
> but I had to explicitly add more sources, namely /gnu/store/*-$i.drv f= or
> these files:
>
> binutils-2.23.2.tar.xz
> bison-3.0.4.tar.xz
> gc-7.6.4.tar.gz
> gcc-4.8.2.tar.xz
> glibc-2.18.tar.xz
> guile-2.0.9.tar.xz
> gcc-4.9.4.tar.xz
> gettext-0.19.8.1.tar.gz
> gmp-6.1.2.tar.xz
> guile-2.2.3.tar.xz
> libatomic_ops-7.6.4.tar.gz
> libffi-3.2.1.tar.gz
> libtool-2.4.6.tar.xz
> libunistring-0.9.9.tar.xz
> m4-1.4.18.tar.xz
> perl-5.26.1.tar.gz
> pkg-config-0.29.2.tar.gz
> static-binaries.tar.xz
> texinfo-6.5.tar.xz
> zlib-1.2.11.tar.gz
>
> It seems that these are used to bootstrap guile and GCC. Is there a wa= y to
> get this list programmatically, without hardcoding version numbers?
Does =E2=80=9Cguix build --sources=3Dall hello=E2=80=9D help?

HTH,
Ludo=E2=80=99.


--
Georges Dup=C3=A9ron
--000000000000d7cfbf0576a3040f--