From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39425: On , package source links are broken. Date: Sat, 21 Mar 2020 00:08:36 +0100 Message-ID: <87wo7e39qj.fsf@gnu.org> References: <87mu9yp8s3.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59474) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFQlD-0002xo-Pe for bug-guix@gnu.org; Fri, 20 Mar 2020 19:09:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFQlC-0001wZ-Iq for bug-guix@gnu.org; Fri, 20 Mar 2020 19:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFQlC-0001wV-G8 for bug-guix@gnu.org; Fri, 20 Mar 2020 19:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFQlC-0007BJ-C5 for bug-guix@gnu.org; Fri, 20 Mar 2020 19:09:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87mu9yp8s3.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Tue, 04 Feb 2020 11:22:20 -0600") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Alex ter Weele Cc: 39425-done@debbugs.gnu.org Hi! Alex ter Weele skribis: > For example, links > to > , > which 404s. > > Relevant discussion from #guix: > . This should be fixed by f2b24f01f42c1bad3ddffd140194de1aec38a5f8. The change of behavior was presumably caused by 09238d618a511de80de189ff3ff18bfa0f280bb9, which removed a layer of =E2=80=98canonicalize-path=E2=80=99, which in turn prevented relative file = name canonicalization in =E2=80=98package-field-location=E2=80=99 to work: --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> (search-path %load-path "gnu/packages/base.scm") $1 =3D "/gnu/store/sy9sh0m6nam63iny9xcsrmn2q7pp4sik-guix-module-union/share= /guile/site/3.0/gnu/packages/base.scm" scheme@(guix-user)> (call-with-input-file $1 port-filename) $2 =3D "/gnu/store/sy9sh0m6nam63iny9xcsrmn2q7pp4sik-guix-module-union/share= /guile/site/3.0/gnu/packages/base.scm" scheme@(guix-user)> (fluid-set! %file-port-name-canonicalization 'relative) scheme@(guix-user)> (call-with-input-file $1 port-filename) $3 =3D "/gnu/store/sy9sh0m6nam63iny9xcsrmn2q7pp4sik-guix-module-union/share= /guile/site/3.0/gnu/packages/base.scm" scheme@(guix-user)> %load-path $4 =3D ("/gnu/store/sy9sh0m6nam63iny9xcsrmn2q7pp4sik-guix-module-union/shar= e/guile/site/3.0" "/home/ludo/.guix-profile/share/guile/site/3.0" "/run/cur= rent-system/profile/share/guile/site/2.2" "/home/ludo/.guix-profile/share/g= uile/site/3.0" "/run/current-system/profile/share/guile/site/2.2" "/home/lu= do/.guix-profile/share/guile/site/3.0" "/run/current-system/profile/share/g= uile/site/2.2" "/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.= 1/share/guile/3.0" "/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-= 3.0.1/share/guile/site/3.0" "/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-gu= ile-next-3.0.1/share/guile/site" "/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk= 88-guile-next-3.0.1/share/guile") scheme@(guix-user)> (canonicalize-path $3) $5 =3D "/gnu/store/1xyinzzh924fpn79mmc279n7hzwzsn8l-guix-5e78a87bb-modules/= share/guile/site/3.0/gnu/packages/base.scm" --8<---------------cut here---------------end--------------->8--- Since =E2=80=98scm_i_relativize_path=E2=80=99 in Guile starts by calling =E2=80=98canonicalize-path=E2=80=99, it would then search for /gnu/store/1xyin=E2=80=A6-guix-5e78a87bb-modules in =E2=80=98%load-path=E2= =80=99, but it=E2=80=99s not there as such. Anyway, the web site should be fixed on the next update, within an hour. Thanks, Ludo=E2=80=99.