Re: Substitute not being used

2022-08-19 Thread Saku Laesvuori
> > I'm trying to install telegram-desktop and I *think* guix should be able
> > to substitute it, but instead it tries to build it. (which then
> > consistently fails, which is why I started looking into it)
> 
> Do you have allowed  substitutes?

Yes. The build failure was caused by not having enough memory and was
fixed by adding swap space.

> However, as you noticed, the ungrafted version seems substituable and
> not the grafted one.

That explains it, thanks! I didn't realize grafting could affect
substituting (or be different on the same commit).

- Saku Laesvuori


signature.asc
Description: PGP signature


Re: Substitute not being used

2022-08-18 Thread Tobias Geerinckx-Rice

Csepp 写道:
An explanation I've heard is that the bordeaux signing key is 
not

authorized by default or something.


I'm not sure if you meant ‘that fact on its own is useless’ or ‘I 
know how to fix that, but it didn't help’.  If it was the former:


If ‘grep 7D602902D3A2DBB83F8 /etc/guix/acl’ shows output, it is 
authorised.


If it is not authorised, you can download [0] and run
‘sudo guix archive --authorize < bordeaux.guix.gnu.org.pub’.

Kind regards,

T G-R

[0]: 
https://git.savannah.gnu.org/cgit/guix.git/plain/etc/substitutes/bordeaux.guix.gnu.org.pub


signature.asc
Description: PGP signature


Re: Substitute not being used

2022-08-18 Thread zimoun
Hi,

On lun., 25 juil. 2022 at 21:42, Saku Laesvuori  wrote:
> I'm trying to install telegram-desktop and I *think* guix should be able
> to substitute it, but instead it tries to build it. (which then
> consistently fails, which is why I started looking into it)

Do you have allowed  substitutes?


> $ guix describe
> Generation 11 Jul 25 2022 10:15:41(current)
>   guix 2367469
> repository URL: https://git.savannah.gnu.org/git/guix.git
> commit: 236746900f062b34c857c4aab21709bcf1448ac7
>
> There is a build for telegram-desktop for x86_64-linux
> (https://ci.guix.gnu.org/build/1119886/details) that is part of an
> evaluation on the same commit that my guix is on.

--8<---cut here---start->8---
$ guix time-machine --commit=2367469 -- weather telegram-desktop
computing 1 package derivations for x86_64-linux...
looking for 1 store items on https://ci.guix.gnu.org...
https://ci.guix.gnu.org
  100.0% substitutes available (1 out of 1)
  at least 44,6 MiB of nars (compressed)
  100,2 MiB on disk (uncompressed)

  at least 1 000 queued builds
  powerpc64le-linux: 990 (99.0%)
  i686-linux: 6 (.6%)
  x86_64-linux: 4 (.4%)
  build rate: 28.06 builds per hour
  x86_64-linux: 11.92 builds per hour
  aarch64-linux: 7.26 builds per hour
  i686-linux: 5.42 builds per hour
  powerpc64le-linux: 6.34 builds per hour
looking for 1 store items on https://bordeaux.guix.gnu.org...
https://bordeaux.guix.gnu.org
  100.0% substitutes available (1 out of 1)
  21,6 MiB of nars (compressed)
  100,2 MiB on disk (uncompressed)
  (continuous integration information unavailable)
--8<---cut here---end--->8---


> One confusing thing I've noticed while looking into this is that when
> guix starts building telegram-desktop it says it's building
>
> /gnu/store/aqhqhza58lzkvzxrspzbf8v9ssqvkxri-telegram-desktop-2.9.3.drv
>
> but the derivation on ci.guix.gnu.org is
>
> /gnu/store/gz50dz1rfaik7s33d22r2lmyzwd7f7bm-telegram-desktop-2.9.3.drv
>
> Can someone explain what's happening here and what I have misunderstood?

--8<---cut here---start->8---
$ guix time-machine --commit=2367469 -- build telegram-desktop -n -d
The following derivation would be built:
  /gnu/store/aqhqhza58lzkvzxrspzbf8v9ssqvkxri-telegram-desktop-2.9.3.drv

$ guix time-machine --commit=2367469 -- build telegram-desktop -n -d --no-grafts
/gnu/store/gz50dz1rfaik7s33d22r2lmyzwd7f7bm-telegram-desktop-2.9.3.drv
--8<---cut here---end--->8---


However, as you noticed, the ungrafted version seems substituable and
not the grafted one.

I agree it is confusing that “guix weather” reports an avaibility when
it is not the case for “guix build”.  Maybe, it can be considered as a
bug.


Cheers,
simon




Re: Substitute not being used

2022-07-25 Thread Csepp


Saku Laesvuori  writes:

> [[PGP Signed Part:Undecided]]
> I'm trying to install telegram-desktop and I *think* guix should be able
> to substitute it, but instead it tries to build it. (which then
> consistently fails, which is why I started looking into it)
>
> $ guix describe
> Generation 11 Jul 25 2022 10:15:41(current)
>   guix 2367469
> repository URL: https://git.savannah.gnu.org/git/guix.git
> commit: 236746900f062b34c857c4aab21709bcf1448ac7
>
> There is a build for telegram-desktop for x86_64-linux
> (https://ci.guix.gnu.org/build/1119886/details) that is part of an
> evaluation on the same commit that my guix is on.
>
> One confusing thing I've noticed while looking into this is that when
> guix starts building telegram-desktop it says it's building
>
> /gnu/store/aqhqhza58lzkvzxrspzbf8v9ssqvkxri-telegram-desktop-2.9.3.drv
>
> but the derivation on ci.guix.gnu.org is
>
> /gnu/store/gz50dz1rfaik7s33d22r2lmyzwd7f7bm-telegram-desktop-2.9.3.drv
>
> Can someone explain what's happening here and what I have misunderstood?
>
> [[End of PGP Signed Part]]

An explanation I've heard is that the bordeaux signing key is not
authorized by default or something.  I've had similar issues and could
not figure out a way to solve it, not even with that info.