Re: guix pull fails because substitution fails

2020-12-15 Thread zimoun
Hi,

On Tue, 15 Dec 2020 at 19:14, Thorsten Wilms  wrote:

> Didn’t try that: After several days of always the same failure, `guix
> pull` is suddenly working again. So if this comes down to a networking
> issue, I wonder what went wrong for several days that did not affect
> any other service.

Thanks for the report and the feedback.


>> Ouch!  what I was in mind is that you GC time to time and not keep all
>> these versions. :-) For example, “guix pull --delete-generations=6m”
>> to keep only the last 6 months generations.  Then the next “guix gc”
>> will remove all these old generations; well if you never roll-back to
>> them.
>
> This is a bit embarrasing: I have been using `guix package
> --delete-generations; guix gc --collect-garbage` frequently and up to
> this day did not realize that there’s another “level”, which can be
> dealt with via `guix gc --delete-generations`.

The control is finer. :-) You can type “guix package --list-profiles”
and you should see, at least:

$HOME/.config/guix/current
$HOME/.guix-profile

where $HOME is expanded to yours.

Doing “guix package --delete-generations” only acts on the default
profile which is “~/.guix-profile”.  Therefore, you also need to clean
the profile “~/.config/guix/current” where the current Guix commands
live.  It is a regular profile so you can try:

  guix package -p ~/.config/guix/current --list-installed

or --list-generations (could be big in your case).  But because this
profile is the default one and is the one where Guix is pulled in, then
“guix pull” is the subcommand to manipulate it.

All the best,
simon



RE: Racket (require gregor)

2020-12-15 Thread Yasuaki Kudo
If no one is working on it or has any plan to do so, maybe I can volunteer in 
the future   But I am still learning both Guix and Racket… 

(I am thinking of starting a “worker cooperative” that specializes in legacy 
enterprise software replacement projects.  Both Guix and Racket will be 
important tools of trade I imagine )

-Yasu

From: jgart
Sent: Sunday, December 13, 2020 3:43 AM
To: help-guix@gnu.org
Subject: Re: Racket (require gregor)

There is not a racket-build-system for guix yet, atleast to my knowledge. 

I see we just got a chicken-build-system though :).

Is anyone working on a racket-build-system?

December 12, 2020 12:01 PM, help-guix-requ...@gnu.org wrote:

> Send Help-Guix mailing list submissions to
> help-guix@gnu.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/help-guix
> or, via email, send a message with subject or body 'help' to
> help-guix-requ...@gnu.org
> 
> You can reach the person managing the list at
> help-guix-ow...@gnu.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-Guix digest..."
> 
> Today's Topics:
> 
> 1. Re: Racket (require gregor) (yasu)
> 
> --
> 
> Message: 1
> Date: Sat, 12 Dec 2020 17:52:02 +0900
> From: yasu 
> To: Tobias Geerinckx-Rice 
> Cc: help-guix@gnu.org
> Subject: Re: Racket (require gregor)
> Message-ID:
> <93b54a78bcdf382d85d785dc8afc79a29ef968dc.ca...@yasuaki.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> Thank you Tobias, it worked! 
> 
> I ended up modifying below section as shown:
> 
> ~/.racket/7.9/pkgs/tzinfo/tzinfo/private$ nvim zoneinfo.rkt
> 
> (define default-zoneinfo-search-path
> 
> (list
> (path->string
> (build-path
> (string-replace
> (with-output-to-string
> (lambda ()
> (system "guix build tzdata"))) "\n" "" )
> "share" "zoneinfo"))
> "/usr/share/zoneinfo"
> "/usr/share/lib/zoneinfo"
> "/etc/zoneinfo"))
> 
> But surely this is not the way to do it in Guix...
> 
> I wonder if there is a proper Guix integration for Racket's raco
> package manager?
> 
> -Yasu 
> 
> On Fri, 2020-12-11 at 15:24 +0100, Tobias Geerinckx-Rice wrote:
> 
>> Hi Yasu,
>> 
>> Yasuaki Kudo 写道:
>> Damn HTML doesn't work
>> 
>> Yes. Please don't send HTML e-mail to mailing lists: most people
>> don't like receiving it (e.g., sending me HTML mail is guaranteed
>> to land you in my Spam bin) & you never know how your mail will
>> appear to others.
>> 
>> (Resending, my html email keeps failing... Is this mailing list
>> automatically converting HTML messages to Plain Text or
>> something??)
>> 
>> Yes. We have enabled both ‘convert text/html parts to plain text’
>> and ‘collapse multipart/alternative to its first part content’.
>> 
>> If there are users of
>> Racket..., would you please try the same and see if it works for
>> you?
>> 
>> I get the same error, with the tzdata Racket (and Guix, just in
>> case) package install.
>> 
>> If I manually add $(guix build tzdata)/share/zoneinfo to
>> pkgs/tzinfo/tzinfo/private/zoneinfo.rkt's
>> default-zoneinfo-search-path, it works.
>> 
>> However, I didn't notice a $TZDIR-like mechanism to do so
>> ‘properly’.
>> 
>> Kind regards,
>> 
>> T G-R
> 
> --
> 
> Subject: Digest Footer
> 
> ___
> Help-Guix mailing list
> Help-Guix@gnu.org
> https://lists.gnu.org/mailman/listinfo/help-guix
> 
> --
> 
> End of Help-Guix Digest, Vol 61, Issue 21
> *




Re: guix pull fails because substitution fails

2020-12-15 Thread Thorsten Wilms
On Tue, 15 Dec 2020 14:24:09 +0100
zimoun  wrote:

> On my machine,
> 
>   guix time-machine --commit=9fe5bb7 \
>-- pull --commit=b828057 -p /tmp/new
> 
> works.  What does it say on your machine?

Didn’t try that: After several days of always the same failure, `guix
pull` is suddenly working again. So if this comes down to a networking
issue, I wonder what went wrong for several days that did not affect
any other service.


> Ouch!  what I was in mind is that you GC time to time and not keep all
> these versions. :-) For example, “guix pull --delete-generations=6m”
> to keep only the last 6 months generations.  Then the next “guix gc”
> will remove all these old generations; well if you never roll-back to
> them.

This is a bit embarrasing: I have been using `guix package
--delete-generations; guix gc --collect-garbage` frequently and up to
this day did not realize that there’s another “level”, which can be
dealt with via `guix gc --delete-generations`.

Many thanks for your help, simon!

-- 
Thorsten Wilms 



guix pull only from private channel

2020-12-15 Thread Phil
Hi all,

Two things I can't find clarified anywhere - when doing a guix pull from a
private channel which provides supplementary packages to the standard
Guix channel.

1) If the private channel is a git repo accessed via ssh it seems
necessary to add the ssh key to an ssh-agent rather than have it pick up
~/.ssh/id_rsa.  This isn't a huge problem but when the ssh key has no
passphrase the use of an agent is actually more complicated than passing
the key directly?  Is it possible to specify a key file, and if not, is
there any good reason why not (I thought perhaps it might be access via
the guix-daemon or similar at a wild guess)?

2) Assuming I use an ssh-agent to avoid issue in 1), if I want to only
pull updates from my private channel and not from the Guix channel, I
find myself doing something like the below to force Guix channel to stay 
constant:

eval `ssh-agent` && ssh-add && guix pull --commit=$(guix describe -f
json | jq -r '.[] | select(.name=="guix").commit') && guix upgrade 
my-package-name

This works, but it feels rather ugly - is there an easier way of saying
"hold guix constant, but pull in latest updates from my private
channel" - it feels like a common use-case to me?


Thanks,
Phil.




Re: A weird thing about network connections in Icecat (and Firefox) on Guix

2020-12-15 Thread Christopher Lemmer Webber
Thanks for testing.  Maybe I should open up wireshark and do some
sniffing around.

Luis Felipe writes:

> Hey Chris,
>
> I can't reproduce the behavior you describe. I'm using
>
> guix 08d8c2d
> linux-libre 5.9.12-gnu
> IceCat 78.5.0esr (64-bit)
>
>
> I did the following twice:
>
> ‐‐‐ Original Message ‐‐‐
> On Monday, December 14, 2020 9:00 PM, Christopher Lemmer Webber 
>  wrote:
>
> [...]
>
>> Here's roughly the scenario:
>>
>> -   Have icecat/firefox open and browsing websites.
>> -   Oops, something happens to the network. Maybe the wifi router goes
>> out briefly or something.
>
>
> I unplugged the UTP cable from my computer and made sure I had no access to 
> anything from IceCat.
>
>
>> -   You're back! You can ssh into servers again and connect to irc, and
>> even ungoogled-chromium seems fine to browse websites.
>>
>
>
> I plugged the cable back in.
>
>
>> -   But weirdly... you have to restart icecat/firefox for things to work
>> right again.
>
>
> I tried browsing the Web using IceCat again, and it worked normally.
>
>
>> Anyone else experience the same? I tried describing this and it sounded
>> like I was the only one having the issue a couple of years ago. Now
>> that I'm not my only household member experiencing the same, I suspect
>> we are probably not alone...?
>
>
> I'm not sure I've experienced the same, but I'm sure I usually had to restart 
> my desktop session whenever the Internet went out before. This hasn't been 
> the case in months, though.




Re: NAS hardware recommendations

2020-12-15 Thread zloster

On 12.12.2020 19:26, Pierre Neidhardt wrote:

Hi zloster!

Thanks for the detailed report and the resourceful links! :)

After some investigation, I think I'll go for one of the ASRock.
I could find them at the following price:

- ASRock J3455-ITX: 98€
- ASRock J4105-ITX: 100€
- ASRock J5005-ITX: 120€
- ASRock J5040-ITX: 150€

I'll go for the cheapest option.
No the j3455 and the j4105 are basically the same, the main difference
being memory.

j3455 has SO-DIMM 204 pins (DDR3)
j4105 has SO-DIMM 260 pins (DDR4)

Any recommendation regarding memory?  Has DDR3L a lower power consumption?

DDR4 has lower standard voltage than DDR3(L)*.
DDR4 - 1,2 V
DDR3 - 1,5 V
DDR3L - 1,35 V
*for the standard transfer speeds - 2400 MT (megatransfers?!) for DDR4, 
1600 MT for DDR3(L).


Some examples:
https://www.servethehome.com/ddr4-dimms-system-power-consumption-tested/
27 Watts less after removing 12 modules with 8GB DDR4 RAM
27/12 = 2,25 Watts per module

https://www.tomshardware.com/reviews/intel-core-i7-5960x-haswell-e-cpu,3918-13.html
Power Consumption: Crucial DDR4-2133
32 GB (Four Modules)11.85 W
16 GB (Two Modules)5.94 W
8 GB (One Module)2.98 W
4 GB (Rated)1.49 W
For the other speeds the data is similar.

https://www.micron.com/-/media/client/global/documents/products/technical-note/dram/tn4007_ddr4_power_calculation.pdf
Very comprehensive writing about memory consumption. I've also found 
some other research on the topic but it is on another computer and I'm 
too lazy to search for it again. Basically the research said that the 
Micron model gives very conservative (i.e. big numbers, gives higher 
consumption than normal) but it all depends on how busy is the memory bus.

For the rest, I'll just get a second hand computer for 30-50€ that has a
4GB of RAM, so I can get the whole thing to run on 130-150€.  In that
sense, it's cheaper than any NAS I can find on the market! :)
This calculation is valid if you don't factor in the electricity prices. 
In most places the electricity is relatively expensive.

0,3 kWatts (i.e. 300 Watt system) * 12 hours (1/2 day) = 3,6 kWh

i.e. 3,6 * 2 = consumption for 24 hours.

For UK:
7,2 kWh * 0,144 GBP (average price of electricity in UK) = 1,0368 GBP 
per day (1,0368 GBP is 1,14 EUR using the today exchange rate).

https://powercompare.co.uk/electricity-prices/

So for a systems running 24/7 there is good reason to search and pay for 
the lowest consumption per given performance need.



Best regards,
zloster



Re: A weird thing about network connections in Icecat (and Firefox) on Guix

2020-12-15 Thread Luis Felipe
Hey Chris,

I can't reproduce the behavior you describe. I'm using

guix 08d8c2d
linux-libre 5.9.12-gnu
IceCat 78.5.0esr (64-bit)


I did the following twice:

‐‐‐ Original Message ‐‐‐
On Monday, December 14, 2020 9:00 PM, Christopher Lemmer Webber 
 wrote:

[...]

> Here's roughly the scenario:
>
> -   Have icecat/firefox open and browsing websites.
> -   Oops, something happens to the network. Maybe the wifi router goes
> out briefly or something.


I unplugged the UTP cable from my computer and made sure I had no access to 
anything from IceCat.


> -   You're back! You can ssh into servers again and connect to irc, and
> even ungoogled-chromium seems fine to browse websites.
>


I plugged the cable back in.


> -   But weirdly... you have to restart icecat/firefox for things to work
> right again.


I tried browsing the Web using IceCat again, and it worked normally.


> Anyone else experience the same? I tried describing this and it sounded
> like I was the only one having the issue a couple of years ago. Now
> that I'm not my only household member experiencing the same, I suspect
> we are probably not alone...?


I'm not sure I've experienced the same, but I'm sure I usually had to restart 
my desktop session whenever the Internet went out before. This hasn't been the 
case in months, though.



Re: guix pull fails because substitution fails

2020-12-15 Thread zimoun
Hi,

On Mon, 14 Dec 2020 at 17:34, Thorsten Wilms  wrote:
> On Mon, 14 Dec 2020 14:28:48 +0100
> zimoun  wrote:
>
>> You were pulling b828057, but from which commit?
>
> ```
> $: guix describe
> Generation 161Dec 02 2020 14:24:58(current)
>   guix 9fe5bb7
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 9fe5bb7c9217f247a0fbbc72467ba5de3a6ddf03
> ```

On my machine,

  guix time-machine --commit=9fe5bb7 \
   -- pull --commit=b828057 -p /tmp/new

works.  What does it say on your machine?

>> What is the output of “guix pull -l” and “guix package -l”?  What
>> does “guix time-machine –commit=b828057 – help” say?
>
> `guix pull -l` starts with:
> ```
> Generation 1  Nov 07 2018 21:45:53
>   guix b31e156
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: b31e1561611ebe4916890183b24e6e13cb83bf59
> ```
> Half an hour later (which makes me think you had something else in
> mind) it ends with:

Ouch!  what I was in mind is that you GC time to time and not keep all
these versions. :-) For example, “guix pull --delete-generations=6m” to
keep only the last 6 months generations.  Then the next “guix gc” will
remove all these old generations; well if you never roll-back to them.

> Generation 161Dec 02 2020 14:24:58(current)
>   guix 9fe5bb7

Anyway, what I had in mind is to roll-back to the previous and try to
pull from this (generation 160 or 159).

> $: guix package -l
>
> Generation 182Nov 14 2020 10:38:14(current)
>   glibc-utf8-locales  2.31out 
> /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31

[...]

>   wmctrl  1.07out 
> /gnu/store/011adrqz27gj2yf8l5gnaswg4fwp0d2m-wmctrl-1.07

You should split your profile as explained here:




For your initial problem, I do not know, it seems a transient network
failure.  Maybe try to remove the folder “~/.cache/guix/substitute” and
try again.


All the best,
simon





Disable progress in stdout

2020-12-15 Thread Phil
Hi all,

When running guix from a script the stdout contains various things that
should be disabled unless running interactively - you end up with a log
of stdout containing visual noise.

The -v0 switch doesn't seem to completely quell interactive feedback,
and my aim is not for silence, just for appropriate feedback when not
running manually from the console (i.e. automated via script).

Some other command-line tools have a --progress flag or similar to
disable this - is there an equivalent in Guix?


Examples of unhelpful logging when redirecting to file:

[K100% 
[#]
[K100% 
[#]
[K100% 
[#]

substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  12.5%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  25.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  37.5%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  50.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  62.5%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  75.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'...  87.5%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%


Thanks,
Phil.