NetBSD Problem Report #44528

From ryo_on@yk.rim.or.jp  Mon Feb  7 14:30:47 2011
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 291AD63B842
	for <gnats-bugs@gnats.netbsd.org>; Mon,  7 Feb 2011 14:30:47 +0000 (UTC)
Message-Id: <20110207143047.291AD63B842@www.NetBSD.org>
Date: Mon,  7 Feb 2011 14:30:47 +0000 (UTC)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: FETCH_USING=curl downloads 404 error message page from http:// sites
X-Send-Pr-Version: 3.95

>Number:         44528
>Category:       pkg
>Synopsis:       FETCH_USING=curl downloads 404 error message page from http:// sites
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 07 14:35:00 +0000 2011
>Last-Modified:  Tue Feb 08 02:05:01 +0000 2011
>Originator:     Ryo ONODERA
>Release:        NetBSD 5.99.44
>Organization:

>Environment:


System: NetBSD hydrogen.elements.tetera.org 5.99.44 NetBSD 5.99.44 (LEAFGIRL2) #0: Sat Jan 29 21:02:08 JST 2011 root@hydrogen.elements.tetera.org:/usr/obj/sys/arch/i386/compile/LEAFGIRL2 i386
Architecture: i386
Machine: i386
>Description:
When mk.conf has
MASTER_SITE_OVERRIDE=http://www.ring.gr.jp/pub/NetBSD/packages/distfiles/
or other http://... line, curl downloads 404 error message page.

>How-To-Repeat:
Add
MASTER_SITE_OVERRIDE=http://www.ring.gr.jp/pub/NetBSD/packages/distfiles/
line to /etc/mk.conf, and apply following patch,
then run following commands
% cd /usr/pkgsrc/net/youtube-dl
% make

diff -urN -x CVS ../youtube-dl/Makefile ./Makefile
--- ../youtube-dl/Makefile	2011-01-23 21:05:05.000000000 +0900
+++ ./Makefile	2011-02-07 23:08:23.000000000 +0900
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.25 2011/01/22 03:07:03 obache Exp $

-VERSION_DATE=	2010.12.09
+VERSION_DATE=	2011.01.30
 DISTNAME=	youtube-dl
 PKGNAME=	youtube-dl-${VERSION_DATE:S/.//g}
 CATEGORIES=	net


>Fix:

http://mail-index.netbsd.org/tech-pkg/2010/10/30/msg006098.html is interesting.


>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44528 CVS commit: pkgsrc/mk/fetch
Date: Tue, 8 Feb 2011 02:02:32 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Tue Feb  8 02:02:32 UTC 2011

 Modified Files:
 	pkgsrc/mk/fetch: fetch.mk

 Log Message:
 Let curl to silent fail with server error.
 fixes a part of PR#44528.


 To generate a diff of this commit:
 cvs rdiff -u -r1.46 -r1.47 pkgsrc/mk/fetch/fetch.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.