Re: RedShift

2022-11-18 Thread Raghav Gururajan

Ludo,


I don’t use Geoclue; instead, I specified my coordinates and I stay
home.  ;-)


Cool!


If ‘herd start redshift’ fails, there should be more info in
~/.local/var/log/shepherd.log.  Could you check that and share your
findings?


```
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 832) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 835) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 837) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 839) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 841) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 843) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 845) exited with 1.
2022-11-18 21:52:18 Service redshift has been disabled.
2022-11-18 21:52:18   (Respawning too fast.)
```

Regards,
RG.


OpenPGP_signature
Description: OpenPGP digital signature


Channel as a Package?

2022-11-18 Thread jgart
Hi,

What does it mean for a channel to be a package?

For example, we have a channel-build-system which turns a channel into a 
package.

Why was this needed?

What purposes did it serve?

Why would we want to build Guix instances from channel specifications?

all best,

jgart



translation programm

2022-11-18 Thread Francis

Hi Guixers,

Is there a translation programm in Guix, you can use for offline 
translation?


So that you don't need an add-on or look for a translation programm on 
the web and enter there the sentence, you would like to translate


Gottfried



Re: ci.guix.gnu.org unreachable

2022-11-18 Thread Tobias Geerinckx-Rice

Hi Wojtek,

Wojtek Kosior via 写道:

Today various Guix commands started showing me

substitute: guix substitute: warning: ci.guix.gnu.org: 
connection failed: No route to host


Indeed ci.guix.gnu.org's IP, 141.80.181.40, is not 
accessible. Also

when trying to connect through Tor.

Anybody knows what might be wrong?


Berlin, the server hosting guix.gnu.org, issues.guix.gnu.org, and 
ci.guix.gnu.org, was down for planned maintenance (not by us).


Some nice steps were taken today to keep guix.gnu.org up despite 
the downtime, for the first time ever.


Next time we can add a status update to the home page. 
Eventually, maybe even add some kind of server status report 
facility to the ‘guix command’:


 substitute: guix substitute: ci.guix.gnu.org reports: Down for 
 scheduled maintenance.


Or maybe not.

Anyway, this maintenance window has successfully been closed, and 
ci.guix is serving tasty toots once again.


Kind regards,

T G-R


signature.asc
Description: PGP signature


`guix pull --no-substitutes` fails to download linux-libre sources

2022-11-18 Thread Wojtek Kosior via
I usually use Guix on a foreign distro as a normal user. This time,
however, I needed to do one thing as root. The Guix' CI server was
temporarily down, so I thought I'd try with

sudo guix pull --no-substitutes

It failed to download linux-libre-5.4.20-gnu.tar.xz. Log below

> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> https://linux-libre.fsfla.org/pub/linux-libre/releases/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz...
> download failed 
> "https://linux-libre.fsfla.org/pub/linux-libre/releases/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz;
>  404 "Not Found"
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-5.4.20-gnu.tar.xz...
> Throw to key `ftp-error' with args `(# "RETR 
> linux-libre-5.4.20-gnu.tar.xz" 550 "Failed to open file.\r")'.
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> https://ftpmirror.gnu.org/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz...
> following redirection to 
> `https://ftp.man.poznan.pl/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz'...
> download failed 
> "https://ftp.man.poznan.pl/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz;
>  404 "Not Found"
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> ftp://ftp.cs.tu-berlin.de/pub/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz...
> In procedure getaddrinfo: Name or service not known
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> ftp://ftp.funet.fi/pub/mirrors/ftp.gnu.org/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz...
> Throw to key `ftp-error' with args `(# "CWD 
> 5.4.20-gnu" 550 "Can't change directory to 5.4.20-gnu: No such file or 
> directory\r")'.
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> http://ftp.gnu.org/pub/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz...
> download failed 
> "http://ftp.gnu.org/pub/gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz;
>  404 "Not Found"
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> https://ci.guix.gnu.org/file/linux-libre-5.4.20-gnu.tar.xz/sha256/1qxhf6dmcwjblzx8fgn6vr10p38xw10iwh6d1y1v1mxb25y30b47...
> In procedure connect*: No route to host
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> https://tarballs.nixos.org/sha256/1qxhf6dmcwjblzx8fgn6vr10p38xw10iwh6d1y1v1mxb25y30b47...
> download failed 
> "https://tarballs.nixos.org/sha256/1qxhf6dmcwjblzx8fgn6vr10p38xw10iwh6d1y1v1mxb25y30b47;
>  404 "Not Found"
> 
> Starting download of 
> /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz
> From 
> https://archive.softwareheritage.org/api/1/content/sha256:872c307c11abd7b0830fcd401e41e01d8d0b42dec63e87faa74b72569b71b0e3/raw/...
> download failed 
> "https://archive.softwareheritage.org/api/1/content/sha256:872c307c11abd7b0830fcd401e41e01d8d0b42dec63e87faa74b72569b71b0e3/raw/;
>  404 "Not Found"
> failed to download 
> "/gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz" 
> from 
> ("https://linux-libre.fsfla.org/pub/linux-libre/releases/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz;
>  "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-5.4.20-gnu.tar.xz; 
> "mirror://gnu/linux-libre/5.4.20-gnu/linux-libre-5.4.20-gnu.tar.xz")

What can a man do in such situation?

Best,
Wojtek

-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F  4B42 4BC5 221C 5A79 FD1A

Meet Kraków saints!   #53: saint Władysław I
Poznaj świętych krakowskich!  #53: święty Władysław I
https://pl.wikipedia.org/wiki/Władysław_I
-- (sig_end)


pgpDnOmnP8fyq.pgp
Description: OpenPGP digital signature


Re: ci.guix.gnu.org unreachable

2022-11-18 Thread Wojtek Kosior via
> On Fri Nov 18, 2022 at 6:49 PM GMT, Wojtek Kosior via wrote:
> > Anybody knows what might be wrong?  
> 
> Planned maintainence, apparently.
> 
> -- (

Oh, that explains a lot. Thanks :)

W.


pgpn_Nbraww4i.pgp
Description: OpenPGP digital signature


Re: ci.guix.gnu.org unreachable

2022-11-18 Thread (
On Fri Nov 18, 2022 at 6:49 PM GMT, Wojtek Kosior via wrote:
> Anybody knows what might be wrong?

Planned maintainence, apparently.

-- (



ci.guix.gnu.org unreachable

2022-11-18 Thread Wojtek Kosior via
Today various Guix commands started showing me

substitute: guix substitute: warning: ci.guix.gnu.org: connection failed: 
No route to host

Indeed ci.guix.gnu.org's IP, 141.80.181.40, is not accessible. Also
when trying to connect through Tor.

Anybody knows what might be wrong?

Wojtek

-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F  4B42 4BC5 221C 5A79 FD1A

Meet Kraków saints!   #22: saint Kinga
Poznaj świętych krakowskich!  #22: święta Kinga
https://pl.wikipedia.org/wiki/Święta_Kinga
-- (sig_end)


pgpOj8mfbY4CN.pgp
Description: OpenPGP digital signature


Re: warning: failed to install locale: Invalid argument

2022-11-18 Thread Ludovic Courtès
Hi,

jgart  skribis:

> guile: warning: failed to install locale

This means that data for the locale you chose is cannot be found by the
C library used by Guile.

Typically, one chooses locale data by setting environment variables such
as ‘LC_ALL’ or ‘LANG’.

In Guix, locale data is provided separately from the C library (glibc).
You can either get it from the ‘glibc-locales’ package, which contains
all existing locales, or, on Guix System, you’ll get the locales you
asked for under /run/current-system/locale.

The manual has more details on setting up locales.

HTH!

Ludo’.



Re: question on setting up guix.scm for project development

2022-11-18 Thread Ludovic Courtès
Hi,

Andy Tai  skribis:

> guix.scm---
> (use-modules (guix packages)
>)
>
> (define-public d2-0.1.4
>(package
>(name "d2")
>(version "0.1.4")
>
>...
> )
>
>
> (define-public my-package
>(package
>   (name "my-package")
>   (version "0.1")
>  ...
>
>
>  (input (list d1 d2-0.1.4 d3...)
> 
> ))
>
> my-package
>
> ---end guix.scm--
>
>
> and if I use
>
> guix shell -f -d ./guix.scm
>
> this does not seem to generate an environment that contains the new
> dependency, that is d2 version 0.1.4

‘guix shell -f guix.scm’ generates an environment that contains the
package returned by ‘guix.scm’.

Conversely, ‘guix shell -D -f guix.scm’ produces the development
environment of the package returned by ‘guix.scm’.

HTH!

Ludo’.



Re: RedShift

2022-11-18 Thread Ludovic Courtès
Hi,

Raghav Gururajan  skribis:

> I'm trying to use the redshift home-service
> [https://git.savannah.gnu.org/cgit/guix.git/commit/?id=39e8025d3b40a0079f75e0ce9a91b6dad6766773],
> but `herd status` always show it as stopped. Unlike the 'manual'
> location-provider example mentioned in the commit, I'm using geoclue.
>
> Do you happen to have an example for redshift with geoclue?

I don’t use Geoclue; instead, I specified my coordinates and I stay
home.  ;-)

If ‘herd start redshift’ fails, there should be more info in
~/.local/var/log/shepherd.log.  Could you check that and share your
findings?

HTH,
Ludo’.



Re: Configuring nscd cache for mDNS

2022-11-18 Thread Ludovic Courtès
Hi Trevor,

Trevor Vallender  skribis:

> I have a Docker container which advertises its name using mDNS,
> e.g. hostname.local. However, when I restart the container,
> Docker assigns the container a new IP (not sure why, doesn't
> happen on other distros but that's probably not the point
> here). nscd has the old IP cached and doesn't refresh even though
> the container is advertising the new IP. I'm not sure why this
> behaviour is occurring, or if it is the expected behaviour?

I think so.

> I'm don't know the correct fix here but am open to suggestions. I
> presume one of the following:
>
> - Configure nscd not to cache mDNS addresses
> - Shorten the length of time these addresses are cached for
>
> If someone could suggest why this is occurring, or provide an
> example of how to do one of the above, that would be brilliant.

You can clear nscd’s host name cache with:

  sudo herd invalidate nscd hosts

Better, you can configure nscd to disable caching along these lines:

  (operating-system
;; …
(services
  (modify-services %base-services  ;or ‘%desktop-services’, etc.
(nscd-service-type
 config => (nscd-configuration
 (inherit config)
 (caches '()))   ;zero caches

More details here:

  
https://guix.gnu.org/manual/devel/en/html_node/Base-Services.html#index-nscd_002dconfiguration

HTH!

Ludo’.



Re: How to avoid downloading qtbase:debug

2022-11-18 Thread Ludovic Courtès
Hi!

kiasoc5  skribis:

> =guix shell qtbase= downloads the entire debug output of qtbase even
> though I didn't write down qtbase:debug. That's hundreds of megabytes
> of bandwith I didn't want to use. How do I avoid downloading the debug
> output? Is this a bug?

Yes, it’s an unfortunate bug:

  https://issues.guix.gnu.org/30952

Would be good to look into it again with a fresh mind!

Ludo’.