portupgrade broken, and apr won't build

Kent Stewart kstewart at owt.com
Wed Sep 2 13:08:39 UTC 2009

On Wednesday 02 September 2009 01:22:37 am DA Forsyth wrote:
> Hiya all
> Something weird going on with portypgrade (and maybe ports in
> general) here.  Somewhere between last months upgrade and this month,
> portupgrade has started to ignore ports that are reported by
> portversion as needing upgrading.  The result is I have to force each
> one, one at a time.  Big schlep.
> For example
> > portversion -v | grep samba
> samba-3.0.35,1              <  needs updating (port has 3.0.36,1)
> > portupgrade -vr samba
> --->  Session started at: Wed, 02 Sep 2009 10:18:47 +0200
> ** None has been installed or upgraded.
> --->  Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed
> 00:00:00)
> The other thing is that devel/apr will not build.  The make stops
> with this
> ...
>  checking whether it is safe to define __EXTENSIONS__... yes
>  checking for library containing strerror... none required
>  checking whether system uses EBCDIC... no
>  performing libtool configuration...
>  ./configure: 9753: Syntax error: word unexpected (expecting ")")
>  *** Error code 2
>  Stop in /usr/ports/devel/apr.
>  *** Error code 1
>  Stop in /usr/ports/devel/apr.
> I cvsup every Monday morning.  I tried the upgrades last week but got
> these failures and decided to wait a week and see if there are fixes.
> Apparently not.  I also had to manually fix the openssl distfile
> (missing MD5 and SH256) so that it would actually download the
> missing patch and confirm it.  I have never had so much trouble with
> the port system, who broke it? <-:
> Any ideas?

My experience with portupgrade problems like this is that your INDEX-? and 
INDEX-?.db aren't being created properly after cvsuping. Portversion doesn't 
depend on them but portupgrade does. The INDEX-? that you download is always 
out of date. I use p5-FreeBSD-Portindex to keep them incrementally up todate, 
which is much faster then building the INDEX from scratch.

After awhile, you have a mess and things don't build because the dependencies 
haven't been built.


Kent Stewart
Richland, WA


More information about the freebsd-questions mailing list