From owner-freebsd-ports@FreeBSD.ORG Mon Apr 19 08:19:45 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DA7516A4CE for ; Mon, 19 Apr 2004 08:19:45 -0700 (PDT) Received: from smtp804.mail.sc5.yahoo.com (smtp804.mail.sc5.yahoo.com [66.163.168.183]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DCDE43D46 for ; Mon, 19 Apr 2004 08:19:45 -0700 (PDT) (envelope-from drakcap@pacbell.net) Received: from unknown (HELO desk) (drakcap@pacbell.net@208.152.18.149 with login) by smtp804.mail.sc5.yahoo.com with SMTP; 19 Apr 2004 15:19:34 -0000 Message-ID: <000901c42622$1e1431c0$0701a8c0@desk> From: "Robert" To: "freeBSD ports" Date: Mon, 19 Apr 2004 08:21:29 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: re: 'portsdb -Uu' (make index) error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 15:19:45 -0000 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