Make index || portsdb -uU fails after cvsup

Garance A Drosihn drosih at
Sun May 9 16:50:35 PDT 2004

At 4:19 PM -0700 5/9/04, Kris Kennaway wrote:
>On Sun, May 09, 2004, Garance A Drosihn wrote:
>  > At 7:42 PM -0700 5/8/04, Kris Kennaway wrote:
>>  >On Sat, May 08, 2004, Garance A Drosihn wrote:
>>  > > Hmm.  Well, I am baffled here.
>>  >>
>>  >> This week I tried to do a `make index' for the first time in
>>  >> awhile, and it failed for me on both a 4.x and 5.x system.  I
>>  >> do not understand why no one else seems to be seeing this.  The
>>  >> error I see is:
>>  >
>>  >Do you have WRKDIRPREFIX set?  This is known to fail.
>>  I do not.  During the processing of target ${.CURDIR}/${INDEXFILE}
>>  (aka /usr/ports/INDEX-5 ), the environment variables which seem to
>>  be set are:
>>  OLDPWD=/usr/obj/usr/ports
>The existence of /usr/obj/usr/ports seems to confuse ports.

Ugh.  YES, that seems to be the culprit.  I thought I had gotten
recently gotten rid of /usr/obj/usr/ports on all my systems, but
I must have done something to bring them back.  I should have
noticed that with the last DEBUG statement I had added.

I'll note that with the update I posted earlier, at least
`make index' will not be confused by that directory existing.

If that directory is going to be such a headache, perhaps
something in the ports Makefile should check if that directory
exists, and just error-out if it does.

Garance Alistair Drosehn            =   gad at
Senior Systems Programmer           or  gad at
Rensselaer Polytechnic Institute    or  drosih at

More information about the freebsd-ports mailing list