GNU bug report logs - #65304
refresh can't update profanity

Previous Next

Package: guix;

Reported by: Jack Hill <jackhill <at> jackhill.us>

Date: Tue, 15 Aug 2023 04:27:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65304 in the body.
You can then email your comments to 65304 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#65304; Package guix. (Tue, 15 Aug 2023 04:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jack Hill <jackhill <at> jackhill.us>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 15 Aug 2023 04:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jack Hill <jackhill <at> jackhill.us>
To: bug-guix <at> gnu.org
Subject: refresh can't update profanity
Date: Tue, 15 Aug 2023 00:26:19 -0400 (EDT)
I'm using ./pre-inst-env guix from commit 
19a7a824c35eae56ce56e2a460042fb7e2129234. `guix refresh -u profanity` 
doesn't seem to be able to find the new tarball for download. However, if 
I do the update by hand, `guix build` knows how to download the tarball. 
The profanity source record looks like this:

"""
 (source
     (origin
       (method url-fetch)
       (uri
        (string-append 
"https://profanity-im.github.io/tarballs/profanity-"
                       version ".tar.gz"))
       (sha256
        (base32
         "14n45zwc6fxjargqhwqan8fyb7x0ql0hmw56rbjkjfkhpba2qmks"))))
""""

Here's refresh getting confused:

"""
$ ./pre-inst-env guix refresh -u profanity

Starting download of /tmp/guix-file.QV904d
From https:/tarballs/profanity-0.14.0.tar.gz...
In procedure connect*: Connection refused

Starting download of /tmp/guix-file.QV904d
From https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz...
download failed "https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz" 404 "NOT FOUND"
Trying to use Disarchive to assemble /tmp/guix-file.QV904d...
could not find its Disarchive specification
failed to download "/tmp/guix-file.QV904d" from "https:/tarballs/profanity-0.14.0.tar.gz"
guix refresh: warning: profanity: version 0.14.0 could not be downloaded and authenticated; not updating
"""

Best,
Jack




Information forwarded to bug-guix <at> gnu.org:
bug#65304; Package guix. (Mon, 21 Aug 2023 20:38:02 GMT) Full text and rfc822 format available.

Message #8 received at 65304 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: 65304 <at> debbugs.gnu.org
Subject: Re: bug#65304: refresh can't update profanity
Date: Mon, 21 Aug 2023 16:37:13 -0400
Hi Jack,

Jack Hill <jackhill <at> jackhill.us> writes:

> I'm using ./pre-inst-env guix from commit
> 19a7a824c35eae56ce56e2a460042fb7e2129234. `guix refresh -u profanity`
> doesn't seem to be able to find the new tarball for download. However,
> if I do the update by hand, `guix build` knows how to download the
> tarball. The profanity source record looks like this:
>
> """
>  (source
>      (origin
>        (method url-fetch)
>        (uri
>         (string-append
>         "https://profanity-im.github.io/tarballs/profanity-"
>                        version ".tar.gz"))
>        (sha256
>         (base32
>          "14n45zwc6fxjargqhwqan8fyb7x0ql0hmw56rbjkjfkhpba2qmks"))))
> """"
>
> Here's refresh getting confused:
>
> """
> $ ./pre-inst-env guix refresh -u profanity
>
> Starting download of /tmp/guix-file.QV904d
>>From https:/tarballs/profanity-0.14.0.tar.gz...
> In procedure connect*: Connection refused
>
> Starting download of /tmp/guix-file.QV904d
>>From https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz...
> download failed "https://web.archive.org/web/20230815000443/https:/tarballs/profanity-0.14.0.tar.gz" 404 "NOT FOUND"
> Trying to use Disarchive to assemble /tmp/guix-file.QV904d...
> could not find its Disarchive specification
> failed to download "/tmp/guix-file.QV904d" from "https:/tarballs/profanity-0.14.0.tar.gz"
> guix refresh: warning: profanity: version 0.14.0 could not be downloaded and authenticated; not updating
> """

Hm, it seems it was a bug when using the
release-monitoring-url property and the code in import-html-release from
(guix gnu-maintenance.)

I've tested with my series at https://issues.guix.gnu.org/65230 and I'm
happy to report it resolves the issue:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix refresh -u profanity
Starting download of /tmp/guix-file.KoCfAY
From https://profanity-im.github.io/tarballs/profanity-0.14.0.tar.gz...
 ….14.0.tar.gz  914KiB                3.4MiB/s 00:00 ▕██████████████████▏ 100.0%
/home/maxim/src/guix/gnu/packages/messaging.scm:2132:13: profanity: updating from version 0.13.0 to version 0.14.0...
--8<---------------cut here---------------end--------------->8---

It could do with a review :-).

-- 
Thanks,
Maxim




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sat, 26 Aug 2023 20:23:02 GMT) Full text and rfc822 format available.

Notification sent to Jack Hill <jackhill <at> jackhill.us>:
bug acknowledged by developer. (Sat, 26 Aug 2023 20:23:03 GMT) Full text and rfc822 format available.

Message #13 received at 65304-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 65230-done <at> debbugs.gnu.org, 64015-done <at> debbugs.gnu.org,
 65304-done <at> debbugs.gnu.org
Subject: Re: [PATCH v4 08/10] gnu-maintenance: Add support to rewrite
 version in URL path.
Date: Sat, 26 Aug 2023 16:21:49 -0400
Hi,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Fixes <https://issues.guix.gnu.org/64015>.
> Fixes <https://issues.guix.gnu.org/65304>.
>
> Previously, the generic HTML updater would only look for the list of files
> found at the parent of its current source URL, ignoring that the URL may embed
> the version elsewhere in its path.  This could cause 'guix refresh' to report
> no updates available, while in fact there were, such as for 'libuv'.

I've now installed this series with commit
1dce88777691b7a38ad66ba58b17a9b368c11e07.

Closing!

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Sep 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.