Subject: Re: [bug#76306] [PATCH] gnu: gnome-chess: Fix source URI.

From: Leo Famulari <[email-masked]>
Date: Sat, 15 Feb 2025 19:16:59 -0500

On Sat, Feb 15, 2025 at 05:26:37PM +0100, Vivien Kraus via Guix-patches via wrote:
> * gnu/packages/games.scm (gnome-chess): Update the source URI.

> -                                  (version-major+minor version)  "/"
> +                                  (version-major version)  "/"

Hm, I'm not sure. I applied the patch and tried building the gnome-chess
source:

------
$ ./pre-inst-env guix build -S gnome-chess --no-grafts --no-substitutes 
The following derivation will be built:
  /gnu/store/86myh2j4qrn2mljsqlgk45i8c6a0fx5d-gnome-chess-3.37.3.tar.xz.drv
building /gnu/store/86myh2j4qrn2mljsqlgk45i8c6a0fx5d-gnome-chess-3.37.3.tar.xz.drv...

Starting download of /gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
>From https://download.gnome.org/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz...
download failed "https://download.gnome.org/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz" 404 "Not Found"

Starting download of /gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
>From http://ftp.gnome.org/pub/GNOME/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz...
following redirection to `https://ftp.gnome.org/pub/GNOME/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz'...
following redirection to `https://download.gnome.org/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz'...
download failed "https://download.gnome.org/sources/gnome-chess/3/gnome-chess-3.37.3.tar.xz" 404 "Not Found"

Starting download of /gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
>From https://bordeaux.guix.gnu.org/file/gnome-chess-3.37.3.tar.xz/sha256/09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4...
downloading from https://bordeaux.guix.gnu.org/file/gnome-chess-3.37.3.tar.xz/sha256/09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4 ...
 09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4  724KiB 362KiB/s 00:00 ▕█▌                09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4  724KiB 1010KiB/s 00:00 ▕█████████▌       09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4  724KiB 1.5MiB/s 00:00 ▕██████████████████▏ 100.0%
successfully built /gnu/store/86myh2j4qrn2mljsqlgk45i8c6a0fx5d-gnome-chess-3.37.3.tar.xz.drv
/gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
------

You can see the tarball was not available from GNOME, but was instead
found via content-addressing on a Guix server.

But without the patch, the tarball is found on the GNOME servers:

------
$ ./pre-inst-env guix build -S gnome-chess --no-grafts --no-substitutes           
The following derivation will be built:  
  /gnu/store/q10g29j7cnl4k3s9pivbrh6jnkkqf4vs-gnome-chess-3.37.3.tar.xz.drv
building /gnu/store/q10g29j7cnl4k3s9pivbrh6jnkkqf4vs-gnome-chess-3.37.3.tar.xz.drv...

Starting download of /gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
>From https://download.gnome.org/sources/gnome-chess/3.37/gnome-chess-3.37.3.tar.xz...
downloading from https://download.gnome.org/sources/gnome-chess/3.37/gnome-chess-3.37.3.tar.xz ...
 gnome-chess-3.37.3.tar.xz  724KiB                                                                                                                    7.8MiB/s 00:00 ▕██████████████████▏ 100.0%
successfully built /gnu/store/q10g29j7cnl4k3s9pivbrh6jnkkqf4vs-gnome-chess-3.37.3.tar.xz.drv
/gnu/store/x92xv7l8vzgamln7w36alwwa7y5fjbxl-gnome-chess-3.37.3.tar.xz
------

And the upstream site does seem to organize things using the major and
minor versions:

https://download.gnome.org/sources/gnome-chess/