NetBSD Problem Report #43810

From cheusov@tut.by  Sun Aug 29 19:07:12 2010
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5B48763B89A
	for <gnats-bugs@gnats.netbsd.org>; Sun, 29 Aug 2010 19:07:12 +0000 (UTC)
Message-Id: <87mxs5tezp.fsf@asrock.chizhovka.net>
Date: Sun, 29 Aug 2010 22:07:06 +0300
From: cheusov@tut.by
To: gnats-bugs@gnats.NetBSD.org
Subject: url2pkg needs to improved
X-Send-Pr-Version: 3.95

>Number:         43810
>Category:       pkg
>Synopsis:       url2pkg needs to improved
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cheusov
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 29 19:10:00 +0000 2010
>Closed-Date:    Mon May 30 07:41:35 +0000 2011
>Last-Modified:  Mon May 30 07:41:35 +0000 2011
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #1: Mon Jun 28 00:06:07 EEST 2010 cheusov@asrock.chizhovka.net:/srv/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
1)
   url2pkg http://<project>.googlecode.com/files/<tarball>.tbz

initializes HOMEPAGE variables to http://<project>.googlecode.com/files/
It makes sense to change this to http://<project>.googlecode.com/

2)
url2pkg doesn't recognize projects based on CMake and therefore
doesn't set USE_CMAKE to "yes".

>How-To-Repeat:

>Fix:

Unknown
>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Sun, 29 Aug 2010 23:31:39 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43810: url2pkg needs to improved
Date: Mon, 30 Aug 2010 09:18:34 +0900

 On Mon, 30 Aug 2010 04:10:00 +0900, <cheusov@tut.by> wrote:

 > 1)
 >    url2pkg http://<project>.googlecode.com/files/<tarball>.tbz
 >
 > initializes HOMEPAGE variables to http://<project>.googlecode.com/files/
 > It makes sense to change this to http://<project>.googlecode.com/

 My local patch for it:

 --- /usr/pkg/bin/url2pkg        2010-04-10 13:32:56.000000000 +0900
 +++ /home/obata/bin/url2pkg     2010-08-30 09:14:36.000000000 +0900
 @@ -281,6 +281,16 @@
          }

          if (!$found) {
 +               if ($url =~ qr"^http://([^.]*).googlecode\.com/files/(.*$)") {
 +                       my $pkgbase = $1;
 +                       $distfile = $2;
 +                       $master_sites = "http://${pkgbase}.googlecode.com/files/";
 +                       $homepage = "http://code.google.com/p/${pkgbase}/";
 +                       $found = true;
 +               }
 +       }
 +
 +       if (!$found) {
                  if ($url =~ qr"^(.*/)(.*)$") {
                          ($master_sites, $distfile) = ($1, $2);
                          $homepage = $master_sites;

 -- 
 OBATA Akio / obache@NetBSD.org

Responsible-Changed-From-To: rillig->cheusov
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Sun, 29 May 2011 16:15:28 +0000
Responsible-Changed-Why:
I'll work on my own PR


State-Changed-From-To: open->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Mon, 30 May 2011 07:41:35 +0000
State-Changed-Why:
Fixed in url2pkg-2.13


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