portsdb -U vs make index (Re: Kopete 7.3)
Kris Kennaway
kris at obsecurity.org
Tue Jan 27 15:43:51 PST 2004
On Tue, Jan 27, 2004 at 02:37:57PM -0800, Kent Stewart wrote:
> On Tuesday 27 January 2004 01:37 pm, Kris Kennaway wrote:
> > On Tue, Jan 27, 2004 at 12:02:17PM -0800, Kent Stewart wrote:
> > > > I always do a "make index" in the /usr/ports directory. Have I
> > > > been doing it wrong?
> > >
> > > No, I also use make index because historically there were
> > > significantly fewer error messages. I think someone almost got
> > > hysterical from surprise a short time ago when portsdb -U completed
> > > with out a single message.
> > >
> > > My attitude is that if Kris' script ran portsdb -U, then I would
> > > use it everytime I cvsup ports-all instead of using make index.
> >
> > AFAIK portsdb -U just calls 'make index' internally. The difference
> > would then presumably be caused by the make environment: my index
> > build tests simulate a clean environment by defining LOCALBASE,
> > X11BASE, etc.
>
> That hasn't always been true. Make index would find 1 or 2 more ports
> than -U would. There are also times when make index falls flat and -U
> would still produce a useful INDEX. In addition, portsdb -U used to run
> quite a bit faster than make index did.
I'm seeing what look like data corruption from portsdb -U:
Updating the ports index ... p5-DateTime-Format-HTTP-0.35:"" non-existent -- dependency list incomplete
ind/Rule.pm:/usr/ports/devel/p5-File-Find-Rule /foobar/lib/perl5/site_perl/5.6.1/File/Spec.pm:/usr/ports/devel/p5-File-Spec /foobar/bin/perl5.6.1:/usr/ports/lang/perl5: malformed entry: ind/Rule.pm:/usr/ports/devel/p5-File-Find-Rule /foobar/lib/perl5/site_perl/5.6.1/File/Spec.pm:/usr/ports/devel/p5-File-Spec /foobar/bin/perl5.6.1:/usr/ports/lang/perl5|
This may be because make_describe_pass1 is using 'make -j3' to try and
optimize the build, and when I tried a similar trick with 'make index'
on the weekend I also got this kind of corruption. I think it's
happening because the child makes are occasionally overlapping their
I/O, so the parent ends up with a corrupted list where two
neighbouring entries are intertwined.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040127/720c85a8/attachment-0001.bin
More information about the freebsd-ports
mailing list