From: nigko <nigko.yerden@gmail.com>
To: Rutherther <rutherther@ditigal.xyz>
Cc: Simon Tournier <zimon.toutoune@gmail.com>, help-guix@gnu.org
Subject: Re: 'guix install' downloads all outputs for packages with cmake build system.
Date: Wed, 11 Dec 2024 16:42:58 +0500 [thread overview]
Message-ID: <CAO356aFkgA9ENLGJ9ArmWZ1g-CmAdPr98QQtJZUGekCTYahQhw@mail.gmail.com> (raw)
In-Reply-To: <875xnqppk1.fsf@ditigal.xyz>
Hello Rutherther,
On Wed, Dec 11, 2024 at 1:54 PM Rutherther <rutherther@ditigal.xyz> wrote:
> You are building the package. I think I've already explained it on
> the IRC few weeks ago: due to how guix is made, build always builds
> all outputs. That is because when you are building the package,
> there is just one build process and in middle of that process
> some files are copied to other outputs. With `guix build`, you cannot
> even specify the outputs. So even on substitution, you get all
> of them. That's what you would get if nothing was substituted
> and the build ran on your system.
>
> > Moreover, since then I have realized that the problem is not specific
> > to packages with cmake build system but concerns all packages with
> > multiple outputs.
>
> Yes, with guix build it is for all packages, is expected,
> and there is likely no way around it. Please provide guix install
> example, where this happens, that's what you reported as an issue earlier.
> With install, you no longer need to get all outputs,
> when you do not need to build the package,
> so you should be able to get just one output as long as
> it is substituted. So indeed, if install substitutes all outputs
> for some packages, something is wrong and it should be possible to fix it.
You are right. Here is the output of guix install:
-------------------------begin--------------------------------------------------
$ guix install x265
guix install: warning: Your Guix installation is 16 days old.
guix install: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
The following package will be installed:
x265 3.5
substitute: updating substitutes from
'https://cuirass.genenetwork.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
3.9 MB will be downloaded
x265-3.5-static 2.2MiB
x265-3.5 1.5MiB
The following derivation will be built:
/gnu/store/5vpq2pqp6s4ig6m0mcwrcbhv22ks2i9j-profile.drv
...
-------------------------end----------------------------------------------------
And here is the version with --no-grafts option (after cleaning the
store, of course):
-------------------------begin--------------------------------------------------
$ guix install --no-grafts x265
guix install: warning: Your Guix installation is 16 days old.
guix install: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
The following package will be installed:
x265 3.5
The following derivation will be built:
/gnu/store/vzs886g803pzp0wfg94z6ckqlyl2z16v-profile.drv
1.6 MB will be downloaded
x265-3.5 1.5MiB
generating GLib schema cache...
...
-------------------------end----------------------------------------------------
Regards,
Nigko
next prev parent reply other threads:[~2024-12-11 11:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 13:55 'guix install' downloads all outputs for packages with cmake build system nigko
2024-12-10 14:49 ` Simon Tournier
2024-12-10 18:28 ` Nigko Yerden
2024-12-11 8:54 ` Rutherther
2024-12-11 11:42 ` nigko [this message]
2024-12-11 13:02 ` nigko
2024-12-12 15:28 ` Simon Tournier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO356aFkgA9ENLGJ9ArmWZ1g-CmAdPr98QQtJZUGekCTYahQhw@mail.gmail.com \
--to=nigko.yerden@gmail.com \
--cc=help-guix@gnu.org \
--cc=rutherther@ditigal.xyz \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.