Subject: Re: [bug#50114] [PATCH] gnu: mc: Bump up to 4.8.27

From: Sergei Trofimovich <[email-masked]>
Date: Fri, 20 Aug 2021 22:48:14 +0100

On Fri, 20 Aug 2021 11:29:18 +0200
zimoun <[email-masked]> wrote:

> ... Usually, the header is:
>   gnu: mc: Update to 4.8.27.

Updated in v2-0001-gnu-mc-Update-to-4.8.27.patch (attached).

> On Wed, 18 Aug 2021 at 23:42, Sergei Trofimovich <[email-masked]> wrote:
> > While at it added 'release-monitoing-url property to allow
> > 'generic-html updater to fetch latest version from correct location.
> > Otherwise the only available updater is 'gnu-ftp (which forces downgrade
> > to ancient 4.6.1 release).
> >
> > * gnu/packages/mc.scm (mc): Update to 4.8.27. Explicitly set
> > release-monitoing-url to up to date location.
> > ---
> >  gnu/packages/mc.scm | 8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/gnu/packages/mc.scm b/gnu/packages/mc.scm
> > index b9dea3b446..e19bc02e7a 100644
> > --- a/gnu/packages/mc.scm
> > +++ b/gnu/packages/mc.scm
> > @@ -38,14 +38,14 @@
> >  (define-public mc
> >    (package
> >      (name "mc")
> > -    (version "4.8.26")
> > +    (version "4.8.27")
> >      (source
> >       (origin
> >        (method url-fetch)
> > -      (uri (string-append "https://ftp.midnight-commander.org/mc-"
> > +      (uri (string-append "http://ftp.midnight-commander.org/mc-"
> >                            version ".tar.xz"))  
> 
> I get with HTTPS:
> 
> --8<---------------cut here---------------start------------->8---
> Starting download of /tmp/guix-file.hccu6E
> From https://ftp.midnight-commander.org/mc-4.8.27.tar.xz...
> X.509 server certificate for 'ftp.midnight-commander.org' does not match: C=US,postalCode=97331,ST=Oregon,L=Corvallis,street=121 Valley Library,O=Oregon State University,OU=CASS,CN=*.osuosl.org
> --8<---------------cut here---------------end--------------->8---
> 
> Maybe, is it fixable?

I was on the fence of this: either use http://, but a link from home page
which redirects to osuosl mirror, or use direct osuosl mirror link that
provides https://. Switced to https:// osuosl link in
v2-0001-gnu-mc-Update-to-4.8.27.patch

-- 

  Sergei
From 18b3de9bb72e31e40938332eccf13e86f4f5cd00 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <[email-masked]>
Date: Wed, 18 Aug 2021 23:39:20 +0100
Subject: [PATCH v2] gnu: mc: Update to 4.8.27.

Switched to direct mirror URI to match SSL certificate issuer
(home page does not provide a download link over secure protocols).

While at it added 'release-monitoing-url property to allow
'generic-html updater to fetch latest version from correct location.
Otherwise the only available updater is 'gnu-ftp (which forces downgrade
to ancient 4.6.1 release).

* gnu/packages/mc.scm (mc): Update to 4.8.27. Explicitly set
release-monitoing-url to up to date location.
---
 gnu/packages/mc.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mc.scm b/gnu/packages/mc.scm
index b9dea3b446..e07191e344 100644
--- a/gnu/packages/mc.scm
+++ b/gnu/packages/mc.scm
@@ -38,14 +38,14 @@
 (define-public mc
   (package
     (name "mc")
-    (version "4.8.26")
+    (version "4.8.27")
     (source
      (origin
       (method url-fetch)
-      (uri (string-append "https://ftp.midnight-commander.org/mc-"
+      (uri (string-append "https://ftp.osuosl.org/pub/midnightcommander/mc-"
                           version ".tar.xz"))
       (sha256
-       (base32 "09vc2vf6k12a8k5gdss6hcskwfcbyalrkhn65nidkwlm0p2svpn6"))))
+       (base32 "1x2g5ahgzg951y4ldbsgkv8icni2mgh3p2wsds0j16gsbwi5kgii"))))
     (build-system gnu-build-system)
     (native-inputs `(("perl" ,perl)
                      ("pkg-config" ,pkg-config)))
@@ -97,6 +97,8 @@
                (("usr/bin") "/"))
              #t)))))
     (home-page "https://www.midnight-commander.org")
+    (properties
+      `((release-monitoring-url . "https://ftp.osuosl.org/pub/midnightcommander/")))
     (synopsis "Graphical file manager")
     (description
      "GNU Midnight Commander is a command-line file manager laid out in a
-- 
2.33.0