GNU bug report logs - #25980
[PATCH] website: Provide https links for alpha.gnu.org URLs.

Previous Next

Package: guix-patches;

Reported by: contact.ng0 <at> cryptolab.net

Date: Sun, 5 Mar 2017 16:30:02 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

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 25980 in the body.
You can then email your comments to 25980 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 guix-patches <at> gnu.org:
bug#25980; Package guix-patches. (Sun, 05 Mar 2017 16:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to contact.ng0 <at> cryptolab.net:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 05 Mar 2017 16:30:02 GMT) Full text and rfc822 format available.

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

From: contact.ng0 <at> cryptolab.net
To: guix-patches <at> gnu.org
Cc: ng0 <contact.ng0 <at> cryptolab.net>
Subject: [PATCH] website: Provide https links for alpha.gnu.org URLs.
Date: Sun,  5 Mar 2017 17:37:58 +0000
From: ng0 <contact.ng0 <at> cryptolab.net>

alpha.gnu.org is accessible via https, defaulting to
ftp protocol prevents users of networks where the ftp
ports might be blocked (such as tor) from downloading.

* website/www/download.scm (https-url): New variable.
(guixsd-files): Replace (ftp-url) with (https-url).
(guix-files): Likewise.
(guix-source-files): Likewise.
---
 website/www/download.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/website/www/download.scm b/website/www/download.scm
index db51516..887c6db 100644
--- a/website/www/download.scm
+++ b/website/www/download.scm
@@ -1,6 +1,7 @@
 ;;; GuixSD website --- GNU's advanced distro website
 ;;; Copyright © 2015, 2016 Ludovic Courtès <ludo <at> gnu.org>
 ;;; Copyright © 2015 Mathieu Lirzin <mthl <at> openmailbox.org>
+;;; Copyright © 2017 ng0 <contact.ng0 <at> cryptolab.net>
 ;;; Initially written by Luis Felipe López Acevedo <felipe.lopez <at> openmailbox.org>
 ;;; who waives all copyright interest on this file.
 ;;;
@@ -64,22 +65,25 @@ dependencies.")
 (define (ftp-url file)
   (string-append "ftp://alpha.gnu.org/gnu/guix/" file))
 
+(define (https-url file)
+  (string-append "https://alpha.gnu.org/gnu/guix/" file))
+
 (define (guixsd-files archs)
   (map (lambda (arch)
-         (cons arch (ftp-url (string-append "guixsd-usb-install-"
+         (cons arch (https-url (string-append "guixsd-usb-install-"
                                             (latest-guix-version) "." arch
                                             "-linux.xz"))))
        archs))
 
 (define (guix-files archs)
   (map (lambda (arch)
-         (cons arch (ftp-url (string-append "guix-binary-" (latest-guix-version)
+         (cons arch (https-url (string-append "guix-binary-" (latest-guix-version)
                                             "." arch "-linux.tar.xz"))))
        archs))
 
 (define (guix-source-files variants)
   (map (lambda (variant)
-         (cons variant (ftp-url (string-append "guix-" (latest-guix-version)
+         (cons variant (https-url (string-append "guix-" (latest-guix-version)
                                                ".tar.gz"))))
        variants))
 
-- 
2.12.0





Information forwarded to guix-patches <at> gnu.org:
bug#25980; Package guix-patches. (Sun, 05 Mar 2017 16:43:02 GMT) Full text and rfc822 format available.

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

From: ng0 <contact.ng0 <at> cryptolab.net>
To: guix-patches <at> gnu.org
Subject: Re: [PATCH] website: Provide https links for alpha.gnu.org URLs.
Date: Sun, 5 Mar 2017 17:50:34 +0000
On 17-03-05 17:37:58, contact.ng0 <at> cryptolab.net wrote:
> From: ng0 <contact.ng0 <at> cryptolab.net>
> 
> alpha.gnu.org is accessible via https, defaulting to
> ftp protocol prevents users of networks where the ftp
> ports might be blocked (such as tor) from downloading.
> 

It doesn't prevent them, but directly offering https makes it easier at
first try.
I only found out some days ago that alpha.gnu.org and all other gnu.org
ftp servers are accessible via http/https, previously I thought it's one
of those FTPs which are limited to ftp protocol.

Even with the text on the page (http://alpha....) this lowers the
barrier as links are available which are not ftp.

> * website/www/download.scm (https-url): New variable.
> (guixsd-files): Replace (ftp-url) with (https-url).
> (guix-files): Likewise.
> (guix-source-files): Likewise.
> ---
>  website/www/download.scm | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/website/www/download.scm b/website/www/download.scm
> index db51516..887c6db 100644
> --- a/website/www/download.scm
> +++ b/website/www/download.scm
> @@ -1,6 +1,7 @@
>  ;;; GuixSD website --- GNU's advanced distro website
>  ;;; Copyright © 2015, 2016 Ludovic Courtès <ludo <at> gnu.org>
>  ;;; Copyright © 2015 Mathieu Lirzin <mthl <at> openmailbox.org>
> +;;; Copyright © 2017 ng0 <contact.ng0 <at> cryptolab.net>
>  ;;; Initially written by Luis Felipe López Acevedo <felipe.lopez <at> openmailbox.org>
>  ;;; who waives all copyright interest on this file.
>  ;;;
> @@ -64,22 +65,25 @@ dependencies.")
>  (define (ftp-url file)
>    (string-append "ftp://alpha.gnu.org/gnu/guix/" file))
>  
> +(define (https-url file)
> +  (string-append "https://alpha.gnu.org/gnu/guix/" file))
> +
>  (define (guixsd-files archs)
>    (map (lambda (arch)
> -         (cons arch (ftp-url (string-append "guixsd-usb-install-"
> +         (cons arch (https-url (string-append "guixsd-usb-install-"
>                                              (latest-guix-version) "." arch
>                                              "-linux.xz"))))
>         archs))
>  
>  (define (guix-files archs)
>    (map (lambda (arch)
> -         (cons arch (ftp-url (string-append "guix-binary-" (latest-guix-version)
> +         (cons arch (https-url (string-append "guix-binary-" (latest-guix-version)
>                                              "." arch "-linux.tar.xz"))))
>         archs))
>  
>  (define (guix-source-files variants)
>    (map (lambda (variant)
> -         (cons variant (ftp-url (string-append "guix-" (latest-guix-version)
> +         (cons variant (https-url (string-append "guix-" (latest-guix-version)
>                                                 ".tar.gz"))))
>         variants))
>  
> -- 
> 2.12.0
> 




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Thu, 09 Mar 2017 13:26:01 GMT) Full text and rfc822 format available.

Notification sent to contact.ng0 <at> cryptolab.net:
bug acknowledged by developer. (Thu, 09 Mar 2017 13:26:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: contact.ng0 <at> cryptolab.net
Cc: 25980-done <at> debbugs.gnu.org
Subject: Re: bug#25980: [PATCH] website: Provide https links for alpha.gnu.org
 URLs.
Date: Thu, 09 Mar 2017 14:24:55 +0100
contact.ng0 <at> cryptolab.net skribis:

> From: ng0 <contact.ng0 <at> cryptolab.net>
>
> alpha.gnu.org is accessible via https, defaulting to
> ftp protocol prevents users of networks where the ftp
> ports might be blocked (such as tor) from downloading.
>
> * website/www/download.scm (https-url): New variable.
> (guixsd-files): Replace (ftp-url) with (https-url).
> (guix-files): Likewise.
> (guix-source-files): Likewise.

Pushed, thanks!

Ludo’.




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

This bug report was last modified 8 years and 126 days ago.

Previous Next


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