'portsdb -Uu' (make index) error

Robert drakcap at pacbell.net
Mon Apr 19 08:19:45 PDT 2004

Hello -

I've seen this same problem, in my case with 4.8-Stable (I'm holding on
until there's a 5.x-Stable), but I hacked the "bsd.java.mk" file directly to
solve the issue on my machine.

That conditional that throws the error is only there because the file
doesn't know what version of BSD you're using.  I knew what version I have,
and am likely to have for the immediate future, so my machine should use 1.3
(YMMV).  I did the following:

* took out lines 180 (the "if" for 5.0 and above), 181 (the "then" for 5.0
and above), and 182 (the "if" for 4.0 and above).  Line 183 is left as a
simple statement about what version of Java to use.

* the matching "else" and "endif" statements in that section were also
removed as they were no longer necessary.

In other words, the following part of the current "bsd.java.mk":

># Enforce preferred Java ports according to OS
>.if (${OSVERSION} >= 500000)
>.elif (${OSVERSION} >= 400000)

now becomes:

># Enforce preferred Java ports according to OS

Index compiled perfectly after that.  Of course, the best solution is to
find out why the conditional ">=" is considered foreign on this 4.8 system
and not on a, say, 4.9 or 5.2 system.  I don't know the answer to that one

Hope this helps someone who might be having compatability problems with this

Wayy back, back into time, Kay wrote:
> I see the same error here. For me it is 5.1-current only. 4-stable and
> 5.2-current complete 'make index' without any problems or errormessage.
> The error has been introduced with bsd.java.mk v2.0

in reference to Guilherme Olivera's note:

> root at wf1:/usr/src# portsdb -Uu
> Updating the ports index ... Generating INDEX.tmp - please wait..===>
> archivers/jzip.org failed:
> "/usr/ports/Mk/bsd.java.mk", line 180: warning: String comparison
> operator should be either == or !=
> "/usr/ports/Mk/bsd.java.mk", line 180: Malformed conditional
> ((${OSVERSION} >= 500000))
> "/usr/ports/Mk/bsd.java.mk", line 180: Missing dependency operator
> "/usr/ports/Mk/bsd.java.mk", line 182: warning: String comparison
> operator should be either == or !=
> "/usr/ports/Mk/bsd.java.mk", line 182: Malformed conditional
> ((${OSVERSION} >= 400000))
> "/usr/ports/Mk/bsd.java.mk", line 182: Missing dependency operator
> "/usr/ports/Mk/bsd.port.mk", line 1182: if-less endif
> "/usr/ports/Mk/bsd.port.mk", line 1182: Need an operator
> make: fatal errors encountered -- cannot continue
> *** Error code 1
> 1 error

More information about the freebsd-ports mailing list