Subject: Re: pkg_summary
To: None <pkgsrc-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 06/12/2007 15:00:43
On Tue, 12 Jun 2007, Aleksey Cheusov wrote:
> > The 28 collections without any pkg_summary are:
>
> > /ftp/pub/pkgsrc/packages-2006Q2/NetBSD-2.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q2/NetBSD-2.1/alpha
> > /ftp/pub/pkgsrc/packages-2006Q2/NetBSD-3.0/mipsel
> > /ftp/pub/pkgsrc/packages-2006Q3/NetBSD-2.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q3/NetBSD-2.1/alpha
> > /ftp/pub/pkgsrc/packages-2006Q3/NetBSD-4.0/alpha
> > /ftp/pub/pkgsrc/packages-2006Q3/NetBSD-4.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-2.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/i386
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/sparc
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.0/mipsel
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/powerpc
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-4.0/sparc64
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.0/sparc64
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.1/alpha
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.1/i386
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-2.1/sparc
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.0/mipsel
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.0/sparc64
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-3.1/powerpc
> > /ftp/pub/pkgsrc/packages-2006Q4/NetBSD-4.0/sparc64
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.0/sparc64
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.1/alpha
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.1/i386
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-2.1/sparc
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-3.0/alpha
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-3.0/sparc64
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-3.1/i386
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-3.1/powerpc
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-3.1/sparc
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/alpha
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/arm
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/i386
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/powerpc
> > /ftp/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/sparc64
>
> > Should we have a cron job that checks for missing pkg_summary.gz daily?
>
> > Should we have a cron job that updates or regenerates pkg_summary.gz daily
> > based on what is available in its corresponding All/ directory?
>
> > Jeremy C. Reed
>
> I guess no answer to this mail means nobody is really interested in
> clean and easy binary upgrades without local repository. Right?
> Hey, is there anybody?
I did receive one off-list response that gave me some clues. Official
releases of NetBSD don't have necessary features in pkg_install to create
the index. (But they could use newer pkg_install.) Also need to make sure
it is actively enabled to build the pkg_summary on bulk builds.
I can write a cron job to check for these. (But I still don't understand
the FTP layout for the packages as some have an overlay and are in
available in two places but some are only available in one place.)
As for updating or rebuilding -- Maybe we can make a script that removes
non-existent data from pkg_summary and adds new data. That should be way
faster than creating entire pkg_summary each time.
Jeremy C. Reed