Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 10:02:56 GMT
From:      Max Khon <fjoe@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178447: Fix MASTER_SITE_KERNEL_ORG
Message-ID:  <201305091002.r49A2uYP007962@freefall.freebsd.org>
Resent-Message-ID: <201305091010.r49AA0VB008338@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178447
>Category:       ports
>Synopsis:       Fix MASTER_SITE_KERNEL_ORG
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 09 10:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Max Khon
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
MASTER_SITE_KERNEL_ORG contains two broken sites:
- http://kernel.org/pub/ - permanent redirect
- http://ftp.ntu.edu.tw/ - does not return 404 Not Found, but returns a file with a locl path in it instead

This causes checksum mismatch at least for ports/sysutils/zisofs-tools port.
>How-To-Repeat:

1) http://kernel.org/

[May 09 16:51:15] fjoe@husky:/usr/ports/sysutils/zisofs-tools % wget http://kernel.org/pub/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2
--2013-05-09 16:51:24--  http://kernel.org/pub/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2
Resolving kernel.org... 198.145.20.140, 149.20.4.69
Connecting to kernel.org|198.145.20.140|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.kernel.org/pub/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2 [following]

2) http://ftp.ntu.edu.tw/

[09 16:52:28] fjoe@husky:/usr/ports/sysutils/zisofs-tools % wget http://ftp.ntu.edu.tw/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2
--2013-05-09 16:52:30--  http://ftp.ntu.edu.tw/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2
Resolving ftp.ntu.edu.tw... 140.112.2.5
Connecting to ftp.ntu.edu.tw|140.112.2.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58 [text/html]
Saving to: `zisofs-tools-1.0.8.tar.bz2'

100%[====================================================================>] 58          --.-K/s   in 0s

2013-05-09 16:52:31 (4.52 MB/s) - `zisofs-tools-1.0.8.tar.bz2' saved [58/58]

[May 09 16:52:31] fjoe@husky:/usr/ports/sysutils/zisofs-tools % cat zisofs-tools-1.0.8.tar.bz2
/home/ftp/linux/utils/fs/zisofs/zisofs-tools-1.0.8.tar.bz2[May 09 16:52:37] fjoe@husky:/usr/ports/sysutils/zisofs-tools % 
[May 09 17:02:08] fjoe@husky:/usr/ports/sysutils/zisofs-tools % wget http://ftp.ntu.edu.tw/linux/utils/fs/zisofs/nonexistent
--2013-05-09 17:02:17--  http://ftp.ntu.edu.tw/linux/utils/fs/zisofs/nonexistent
Resolving ftp.ntu.edu.tw... 140.112.2.5
Connecting to ftp.ntu.edu.tw|140.112.2.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43 [text/html]
Saving to: `nonexistent'

100%[====================================================================>] 43          --.-K/s   in 0s      

2013-05-09 17:02:17 (4.66 MB/s) - `nonexistent' saved [43/43]

[May 09 17:02:17] fjoe@husky:/usr/ports/sysutils/zisofs-tools % cat nonexistent 
/home/ftp/linux/utils/fs/zisofs/nonexistent[May 09 17:02:20] fjoe@husky:/usr/ports/sysutils/zisofs-tools % 

>Fix:

Index: bsd.sites.mk
===================================================================
--- bsd.sites.mk	(revision 317723)
+++ bsd.sites.mk	(working copy)
@@ -1448,8 +1448,7 @@
 
 .if !defined(IGNORE_MASTER_SITE_KERNEL_ORG)
 MASTER_SITE_KERNEL_ORG+= \
-	http://kernel.org/pub/%SUBDIR%/ \
-	http://ftp.ntu.edu.tw/%SUBDIR%/ \
+	https://www.kernel.org/pub/%SUBDIR%/ \
 	http://ftp.sunet.se/pub/Linux/kernel.org/%SUBDIR%/ \
 	http://ftp.yandex.ru/pub/%SUBDIR%/ \
 	http://ftp.heanet.ie/pub/%SUBDIR%/ \
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305091002.r49A2uYP007962>