Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 08:21:29 -0700
From:      "Robert" <drakcap@pacbell.net>
To:        "freeBSD ports" <ports@freebsd.org>
Subject:   re: 'portsdb -Uu' (make index) error
Message-ID:  <000901c42622$1e1431c0$0701a8c0@desk>

next in thread | raw e-mail | index | archive | help
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)
>_JAVA_PREFERRED_PORTS+=JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4
>.elif (${OSVERSION} >= 400000)
>_JAVA_PREFERRED_PORTS+=JAVA_PORT_NATIVE_FREEBSD_JDK_1_3
>.else
>_JAVA_PREFERRED_PORTS+=JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1
>.endif

now becomes:

># Enforce preferred Java ports according to OS
>_JAVA_PREFERRED_PORTS+=JAVA_PORT_NATIVE_FREEBSD_JDK_1_3

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
yet.

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


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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901c42622$1e1431c0$0701a8c0>