Too frequent/poorly tested bsd.port.mk commits, and general uselessness of p5-FreeBSD-Portindex

Matthew Seaman matthew at FreeBSD.org
Thu Dec 26 23:03:33 UTC 2013


On 26/12/2013 08:34, Doug Barton wrote:
> On 12/25/2013 11:30 PM, Doug Barton wrote:
>> I have used Matthew's p5-FreeBSD-Portindex for several years. In the
>> past it was a very valuable tool that allowed me to keep an INDEX up to
>> date relative to changes in the ports tree in seconds or minutes,
>> instead of having to do 'make index' every time. However the utility of
>> the solution is dependent on a couple of things, including that
>> bsd.port.mk does not change often.
>>
>> Over the last year or so however the changes to bsd.port.mk, which used
>> to be well tested and batched together, are now coming fast and furious.
>> To make matters worse, the commits are often poorly tested, which leads
>> to several commits related to the same issue in one week. Obviously
>> that's bad for the project generally, but I'm more concerned about
>> whether or not it's going to be useful to stick with
>> p5-FreeBSD-Portindex going forward.
>>
>> Speaking of p5-FreeBSD-Portindex generally, I'm wondering what Matthew's
>> plans are for it? For some time now running 'cache-update -f
>> svn-up,options' has caused errors related to "WARNING unknown options
>> file" that seem to have to do with the recent changes to the
>> /var/db/ports/<category>_<portname> convention. Is an update planned to
>> handle this? Also, I just tried running cache-init with bdb 5, which
>> seemed to succeed, but running portindex generated a lot of suspicious
>> errors. I'll try again after reinstalling bdb 4.7, but I'm wondering if
>> this is a known issue.
> 
> So it turns out bdb 47 doesn't work any better ... these are relatively
> new errors:
> 
> Accumulating dependency information: .........[1000].....Use of
> uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing RUN_DEPENDS dependency  for print/latex-cjk (latex-cjk-4.8.2_6)
> -- Can't call method "PKGNAME" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for print/latex-cjk
> (latex-cjk-4.8.2_6) -- Can't call method "PKGNAME" on an undefined value
> at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing RUN_DEPENDS dependency  for chinese/font-std
> (zh-font-std-0.0.20090602) -- Can't call method "PKGNAME" on an
> undefined value at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing RUN_DEPENDS dependency  for chinese/oxim (zh-oxim-1.2.2_4) --
> Can't call method "PKGNAME" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> ....[2000].........[3000].........[4000].........[5000].........[6000].........[7000].........[8000].........[9000].........[10000].........[11000].........[12000].........[13000].....Use
> of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-sr
> (sr-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-ru
> (ru-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-ja
> (ja-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-el
> (el-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-hu
> (hu-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-da
> (da-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-fr
> (fr-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-it
> (it-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-es
> (es-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-zh_tw
> (zh_tw-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an
> undefined value at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-mn
> (mn-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-bn
> (bn-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-de
> (de-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-nl
> (nl-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-en
> (en-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-pl
> (pl-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-tr
> (tr-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-zh_cn
> (zh_cn-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an
> undefined value at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> Use of uninitialized value $_ in concatenation (.) or string at
> /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm line 356.
> Missing BUILD_DEPENDS dependency  for misc/freebsd-doc-pt
> (pt-freebsd-doc-43251,1) -- Can't call method "PKGNAME" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Port.pm
> line 352.
> 
>  at /usr/local/lib/perl5/site_perl/5.14/FreeBSD/Portindex/Tree.pm line 824
> 

I've just committed an update to version 3.3 which should address some
of the issues to do with handling options files.  However, I can't
reproduce the errors you're showing here, and all my testing is working
perfectly with databases/db5.

Any clues as to what you are doing differently so I can try and track
this down?

Note: You will still be getting warning messages like this:

lucid-nonsense:~:% cache-update -f svn-up,options -i /tmp/svn.out
Checking timestamps on options makefiles: cache-update: WARNING unknown
options file "/var/db/ports/apr1/options" -- ignored
cache-update: WARNING unknown options file
"/var/db/ports/cyrus-sasl2/options" -- ignored
cache-update: WARNING unknown options file "/var/db/ports/gtk20/options"
-- ignored
cache-update: WARNING unknown options file
"/var/db/ports/bind97/options" -- ignored
cache-update: WARNING unknown options file
"/var/db/ports/mutt-devel/options" -- ignored
cache-update: WARNING unknown options file
"/var/db/ports/phpmyadmin/options" -- ignored
.cache-update: WARNING unknown options file
"/var/db/ports/py27-dnspython/options" -- ignored
cache-update: WARNING unknown options file
"/var/db/ports/ghostscript8/options" -- ignored
cache-update: WARNING unknown options file "/var/db/ports/tk85/options"
-- ignored

because, exactly as the error message says, these are options files that
aren't used by any ports.  Either they belonged to a now defunct port,
or else there is a new-style options file for that port.  Like it says,
they are ignored, and their presence, or not, will have absolutely no
effect on the resulting INDEX.  I suggest tactical application of rm(1).

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131226/5cfbc66d/attachment-0001.sig>


More information about the freebsd-ports mailing list