NetBSD Problem Report #47219

From www@NetBSD.org  Mon Nov 19 18:58:12 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id BF89F63E773
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 19 Nov 2012 18:58:11 +0000 (UTC)
Message-Id: <20121119185811.02E0263E773@www.NetBSD.org>
Date: Mon, 19 Nov 2012 18:58:10 +0000 (UTC)
From: mschoth@gmx.net
Reply-To: mschoth@gmx.net
To: gnats-bugs@NetBSD.org
Subject: "pkgin in firefox" does not work
X-Send-Pr-Version: www-1.0

>Number:         47219
>Category:       pkg
>Synopsis:       "pkgin in firefox" does not work
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 19 19:00:00 +0000 2012
>Last-Modified:  Tue Dec 04 06:20:05 +0000 2012
>Originator:     Matthias Schoth
>Release:        6.0 (amd64)
>Organization:
>Environment:
NetBSD ThinkPad 6.0 NetBSD 6.0 (GENERIC) amd64
>Description:
"pkgin in firefox" shows the output "firefox is not available on the repository" even though the firefox binary package is present on the ftp 
site. Also "pkgin up" and "pkgin fug" does not help.
Other packages like "pkgin in gzip" work flawlessly.

When doing "pkgin up" an index file called "pkg_summary.bz2" is fetched. Even though a binary firefox package is available in /All the index file does not contain the package.
>How-To-Repeat:
ThinkPad# cat /usr/pkg/etc/pkgin/repositories.conf"

ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.0/All

ThinkPad# pkgin in firefox
firefox is not available on the repository
calculating dependencies... done.
nothing to do.

>Fix:
update the file pkg_summary.bz2 in /All

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47219: "pkgin in firefox" does not work
Date: Mon, 19 Nov 2012 13:26:00 -0600 (CST)

 > update the file pkg_summary.bz2 in /All

 Yes it is out of date

 See 
 http://ftp.netbsd.org/pub/NetBSD/misc/reed/pkgsrc-package-sanity/missing-or-old-pkg_summary.txt

 Should we automate these complaints?

 Should we automate the regeneration of the pkg_summary?

 Should we have some queue directory for new uploads so the new packages 
 are added to public repo at same time as new pkg_summary?

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/47219: "pkgin in firefox" does not work
Date: Fri, 23 Nov 2012 14:32:31 +0100

 On Mon, Nov 19, 2012 at 07:30:10PM +0000, Jeremy C. Reed wrote:
 >  Should we automate the regeneration of the pkg_summary?

 Perhaps a cronjob that looks if any package file is newer and
 regenerates pkg_summary in that case?

 I think that's the human-cycles-easiest solution.
  Thomas

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47219: "pkgin in firefox" does not work
Date: Fri, 30 Nov 2012 07:59:45 -0600 (CST)

 On Fri, 23 Nov 2012, Thomas Klausner wrote:

 >  On Mon, Nov 19, 2012 at 07:30:10PM +0000, Jeremy C. Reed wrote:
 >  >  Should we automate the regeneration of the pkg_summary?
 >  
 >  Perhaps a cronjob that looks if any package file is newer and
 >  regenerates pkg_summary in that case?
 >  
 >  I think that's the human-cycles-easiest solution.

 That won't work yet.  Still researching this and learned that a 
 different cron job was rsyncing the packages from nyftp server which 
 replaces the pkg_summary database files.  There is a mix of packages 
 uploaded from different sources (see firefox packages and midori as 
 quick examples).

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	 mschoth@gmx.net
Subject: Re: pkg/47219: "pkgin in firefox" does not work
Date: Sat, 01 Dec 2012 02:59:21 +0300

 >  See 
 >  http://ftp.netbsd.org/pub/NetBSD/misc/reed/pkgsrc-package-sanity/missing-or-old-pkg_summary.txt
 >  
 >  Should we automate these complaints?

 At least for i386/amd64/spark64/ppc -- yes.

 >  Should we automate the regeneration of the pkg_summary?

 I think no. There is a risk to make a real mess instead of normal
 package repository. The only correct way to generate pkg_summary(5) is
 to use bulk builds both for building packages and uploads. Manual
 interventions should be avoided or minimized.

 >  Should we have some queue directory for new uploads so the new packages 
 >  are added to public repo at same time as new pkg_summary?

 Yes. In my case upload is very slow. In order to reduce a period of time
 when a repository is in "unclear" state I thought about two directories
 for uploading and swapping them in the end.

 -- 
 Best regards, Aleksey Cheusov.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47219: "pkgin in firefox" does not work
Date: Tue, 4 Dec 2012 06:17:49 +0000

 On Fri, Nov 30, 2012 at 02:00:10PM +0000, Jeremy C. Reed wrote:
  >  There is a mix of packages 
  >  uploaded from different sources (see firefox packages and midori as 
  >  quick examples).

 This seems likely to result in a huge mess regardless of frobbing
 pkg_summary.

 -- 
 David A. Holland
 dholland@netbsd.org

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.