Hello Rutherther, On Wed, Dec 11, 2024 at 1:54 PM Rutherther <ruthert...@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