From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#35010: Many CPAN download URLs are no longer available Date: Wed, 27 Mar 2019 15:07:54 +0100 Message-ID: <87lg10eez7.fsf@gnu.org> References: <87va05baho.fsf@netris.org> <87zhphi2ff.fsf@nckx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h99El-0003Zq-Dn for bug-guix@gnu.org; Wed, 27 Mar 2019 10:09:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h99Ek-0007eh-Dz for bug-guix@gnu.org; Wed, 27 Mar 2019 10:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h99Ek-0007eV-7E for bug-guix@gnu.org; Wed, 27 Mar 2019 10:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h99Ej-0004Yy-U7 for bug-guix@gnu.org; Wed, 27 Mar 2019 10:09:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87zhphi2ff.fsf@nckx> (Tobias Geerinckx-Rice's message of "Wed, 27 Mar 2019 01:31:00 +0100") 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.org@gnu.org Sender: "bug-Guix" To: Tobias Geerinckx-Rice Cc: 35010@debbugs.gnu.org Hello, Tobias Geerinckx-Rice skribis: > The updater for CPAN packages is at best caveat-quality. It helpfully > downloads the updated tarball to the store, but doesn't update the > URL. Since the file is in the store, everything works fine on the > updater's machine, then breaks everywhere else. > > Background: the problem here is that CPAN URLs contain the uploader > name, e.g. (Karen?) ETHER(idge) in the case of > > mirror://cpan/authors/id/E/ET/ETHER/URI-1.76.tar.gz > > which doesn't change every VERSION (so the problem is somewhat hidden) > but more frequently than the author/maintainer would. Ouch, I didn=E2=80=99t know that, this is terrible. The good news is that the (guix upstream) framework gets to see the correct URL: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (package-latest-release perl-uri (force %updaters)) $6 =3D #< package: "perl-uri" version: "1.76" urls: ("mirr= or://cpan/authors/id/O/OA/OALDERS/URI-1.76.tar.gz") signature-urls: #f inpu= t-changes: #> --8<---------------cut here---------------end--------------->8--- So with a bit of work we could change =E2=80=98package-update=E2=80=99 to a= utomatically update the URL. (Time passes=E2=80=A6) Commit 42314ffa072f31cc1cb44df38b1f8fcca19d9d3c should fix this. I should have let figure it out ;-), but somehow I ended up investigating too much, bah! Let me know what you think. In the meantime, to fix the Perl packages, you could maybe run: guix lint -c source $(guix package -A ^perl-) Then you could perhaps comment the =E2=80=98version>?=E2=80=99 test in (gui= x upstream) to force =E2=80=98guix package -u=E2=80=99 to update these seemingly up-to-= date packages. HTH, Ludo=E2=80=99.