NetBSD Problem Report #48888

From oster@cs.usask.ca  Mon Jun  9 21:02:42 2014
Return-Path: <oster@cs.usask.ca>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by mollari.NetBSD.org (Postfix) with ESMTP id 883FBA64F0
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  9 Jun 2014 21:02:42 +0000 (UTC)
Message-Id: <20140609210147.4FC3787D52@mickey.usask.ca>
Date: Mon,  9 Jun 2014 15:01:47 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: FETCH_USING=curl not useful for building curl
X-Send-Pr-Version: 3.95

>Number:         48888
>Category:       pkg
>Synopsis:       FETCH_USING=curl not useful for building curl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 09 21:05:00 +0000 2014
>Last-Modified:  Tue Jun 10 13:10:01 +0000 2014
>Originator:     Greg Oster
>Release:        NetBSD 6.1.4
>Organization:
>Environment:


System: NetBSD mickey 6.1.4 NetBSD 6.1.4 (QUAD) #0: Mon Apr 14 12:36:07 CST 2014 oster@quad:/u1/builds/build249/src/obj/amd64/u1/builds/build249/src/sys/arch/amd64/compile/QUAD amd64
Architecture: x86_64
Machine: amd64
>Description:

Many packages can't use regular 'ftp' to grab the distribution files,
and so a quick way to get around that problem is to set FETCH_USING=curl in
/etc/mk.conf .  Unfortunately, this is not optimal for actually
building 'curl' from an empty /usr/pkg :

....
=> Checksum SHA1 OK for libidn-1.28.tar.gz
=> Checksum RMD160 OK for libidn-1.28.tar.gz
===> Installing dependencies for libidn-1.28nb1
=> Tool dependency libtool-base>=2.2.6bnb3: found libtool-base-2.4.2nb6
=> Tool dependency perl>=5.0: NOT found
=> Verifying reinstall for ../../lang/perl5
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Fetching perl-5.20.0.tar.bz2
=> Total size: 13770469 bytes
ftp: unknown option -- -
usage: ftp [-46AadefginpRtVv] [-N netrc] [-o outfile] [-P port] [-q quittime]
           [-r retry] [-s srcaddr] [-T dir,max[,inc]]
           [[user@]host [port]] [host:path[/]] [file:///file]
           [ftp://[user[:pass]@]host[:port]/path[/]]
           [http://[user[:pass]@]host[:port]/path] [...]
       ftp -u URL file [...]
fetch: Unable to fetch expected file perl-5.20.0.tar.bz2
...
fetch: Unable to fetch expected file perl-5.20.0.tar.bz2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libidn
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/curl


>How-To-Repeat:
	pkg_delete -k \*
 	cat "FETCH_USING=curl" >> /etc/mk.conf
	cd /usr/pkgsrc/www/curl

>Fix:
	Please.  

	The "workaround" is to uncomment "FETCH_USING=curl" from
	/etc/mk.conf, and use that until a package is encountered that
	needs to use curl to fetch the files :(  (at which point you
	have to add the line back....)



>Audit-Trail:
From: Matt Sporleder <msporleder@gmail.com>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc: "pkg-manager@netbsd.org" <pkg-manager@netbsd.org>,
 "gnats-admin@netbsd.org" <gnats-admin@netbsd.org>,
 "pkgsrc-bugs@netbsd.org" <pkgsrc-bugs@netbsd.org>
Subject: Re: pkg/48888: FETCH_USING=curl not useful for building curl
Date: Mon, 9 Jun 2014 20:15:23 -0400

 Maybe force fetch using = ftp in curl's makefile instead

From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48888: FETCH_USING=curl not useful for building curl
Date: Tue, 10 Jun 2014 22:05:55 +0900

 In www/curl, "curl" tool is ignored, and TOOLS_PATH.curl is empty,
 mk/fetch/fetch is invoked with empty FETCH_CMD,
 then ftp is used as FETCH_CMD with curl condition?

 On Tue, 10 Jun 2014 09:20:00 +0900, Matt Sporleder <msporleder@gmail.com> wrote:

 >  Maybe force fetch using = ftp in curl's makefile instead

 Probably not so easy.

 If you start to build package devel/libidn, curl is required to fetch,
 curl depend on devel/libidn, ... circular dependency.

 Even if curl package is installed, it may not be usable.
 For example, libidn update with shlib bump, and curl is not built yet
 with updated libidn.

 -- 
 OBATA Akio / obata@lins.jp

>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.