NetBSD Problem Report #45680

From www@NetBSD.org  Sat Dec  3 20:02:56 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 27AFA63DA7D
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  3 Dec 2011 20:02:56 +0000 (UTC)
Message-Id: <20111203200255.64F9463D92F@www.NetBSD.org>
Date: Sat,  3 Dec 2011 20:02:55 +0000 (UTC)
From: matthias.rampke@googlemail.com
Reply-To: matthias.rampke@googlemail.com
To: gnats-bugs@NetBSD.org
Subject: pkglint should know FETCH_USING=
X-Send-Pr-Version: www-1.0

>Number:         45680
>Category:       pkg
>Synopsis:       pkglint should know FETCH_USING=
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 03 20:05:00 +0000 2011
>Closed-Date:    Sat Sep 08 19:54:32 +0000 2012
>Last-Modified:  Sat Sep 08 19:54:32 +0000 2012
>Originator:     Matthias Rampke
>Release:        Mac OS X Lion
>Organization:
>Environment:
Darwin mb.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
>Description:
pkglint complains about FETCH_USING being defined but not used which is incorrect.
>How-To-Repeat:
cd net/youtube-dl && pkglint
>Fix:
https://gist.github.com/1427975

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sat, 3 Dec 2011 22:34:14 +0100

 On Sat, Dec 03, 2011 at 08:05:00PM +0000, matthias.rampke@googlemail.com wrote:
 > >Description:
 > pkglint complains about FETCH_USING being defined but not used which is incorrect.

 I disagree, the bug is forcing FETCH_USING in first place.

 Joerg

From: Matthias Rampke <matthias.rampke@googlemail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sat, 3 Dec 2011 22:39:14 +0100

 On Sat, Dec 3, 2011 at 22:35, Joerg Sonnenberger
 <joerg@britannica.bec.de> wrote:
 > =C2=A0I disagree, the bug is forcing FETCH_USING in first place.

 for distfiles available only through https:// (including but not
 limited to github) FETCH_USING=3Dcurl is the only way to ensure that
 they can be fetched at all.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sun, 4 Dec 2011 00:22:16 +0100

 On Sat, Dec 03, 2011 at 09:40:04PM +0000, Matthias Rampke wrote:
 > The following reply was made to PR pkg/45680; it has been noted by GNATS.
 > 
 > From: Matthias Rampke <matthias.rampke@googlemail.com>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/45680: pkglint should know FETCH_USING=
 > Date: Sat, 3 Dec 2011 22:39:14 +0100
 > 
 >  On Sat, Dec 3, 2011 at 22:35, Joerg Sonnenberger
 >  <joerg@britannica.bec.de> wrote:
 >  > =C2=A0I disagree, the bug is forcing FETCH_USING in first place.
 >  
 >  for distfiles available only through https:// (including but not
 >  limited to github) FETCH_USING=3Dcurl is the only way to ensure that
 >  they can be fetched at all.

 So don't use https-only services. Problem solved.

 Joerg

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sun, 04 Dec 2011 03:04:07 +0300

 > pkglint complains about FETCH_USING being defined but not used which
 > is incorrect.

 FETCH_USING should not be used in Makefiles because it is user's
 variable and normally set in mk.conf. If user sets FETCH_USING in
 mk.conf (I do!), this value will override package's "curl", for example,
 used for fetching distfiles over https. I don't think "So don't use
 https-only services. Problem solved." is a real solution, however. We
 really need a better one.

 -- 
 Best regards, Aleksey Cheusov.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sun, 4 Dec 2011 01:17:31 +0100

 On Sun, Dec 04, 2011 at 12:05:03AM +0000, Aleksey Cheusov wrote:
 > The following reply was made to PR pkg/45680; it has been noted by GNATS.
 > 
 > From: Aleksey Cheusov <cheusov@tut.by>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/45680: pkglint should know FETCH_USING=
 > Date: Sun, 04 Dec 2011 03:04:07 +0300
 > 
 >  > pkglint complains about FETCH_USING being defined but not used which
 >  > is incorrect.
 >  
 >  FETCH_USING should not be used in Makefiles because it is user's
 >  variable and normally set in mk.conf. If user sets FETCH_USING in
 >  mk.conf (I do!), this value will override package's "curl", for example,
 >  used for fetching distfiles over https. I don't think "So don't use
 >  https-only services. Problem solved." is a real solution, however. We
 >  really need a better one.

 There is no reason why the few distfiles can't be (additionally) be
 mirrored locally. The other issue of course is politcally, there is
 little reason to force https for downloads, especially if there are
 mechanisms in place to ensure that authenticity of the files.

 Joerg

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sun, 4 Dec 2011 05:09:58 +0000

 On Sat, Dec 03, 2011 at 11:25:02PM +0000, Joerg Sonnenberger wrote:
  >  >  for distfiles available only through https:// (including but not
  >  >  limited to github) FETCH_USING=3Dcurl is the only way to ensure that
  >  >  they can be fetched at all.
  >  
  >  So don't use https-only services. Problem solved.

 Let us know how your discussion with github comes out.

 -- 
 David A. Holland
 dholland@netbsd.org

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45680: pkglint should know FETCH_USING=
Date: Sat, 8 Sep 2012 11:35:39 -0400

 The original PR was that pkglint doesn't understand FETCH_USING. wiz@ fixed
 this a while ago. Can this PR be closed now and any discussion about
 FETCH_USING be done on tech-pkg@ or somewhere else?

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 08 Sep 2012 19:54:32 +0000
State-Changed-Why:
Yes.
Problem is fixed - anyone who wants to flame about FETCH_USING please do it
on tech-pkg.


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