From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 19 04:50:11 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E13B16A4CF for ; Mon, 19 Apr 2004 04:50:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC4743D41 for ; Mon, 19 Apr 2004 04:50:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3JBoBbv013649 for ; Mon, 19 Apr 2004 04:50:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3JBoBfp013648; Mon, 19 Apr 2004 04:50:11 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 19 Apr 2004 04:50:11 -0700 (PDT) Resent-Message-Id: <200404191150.i3JBoBfp013648@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Scott Lipcon Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82C0216A4CF for ; Mon, 19 Apr 2004 04:46:04 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C89B43D45 for ; Mon, 19 Apr 2004 04:46:04 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i3JBk472080545 for ; Mon, 19 Apr 2004 04:46:04 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i3JBk456080543; Mon, 19 Apr 2004 04:46:04 -0700 (PDT) (envelope-from nobody) Message-Id: <200404191146.i3JBk456080543@www.freebsd.org> Date: Mon, 19 Apr 2004 04:46:04 -0700 (PDT) From: Scott Lipcon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/65761: bsd.java.mk incompatibility with old make X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 11:50:11 -0000 >Number: 65761 >Category: misc >Synopsis: bsd.java.mk incompatibility with old make >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 19 04:50:10 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Scott Lipcon >Release: 4.8 >Organization: >Environment: FreeBSD mercea.mercea.net 4.8-STABLE FreeBSD 4.8-STABLE #1: Tue Apr 15 20:32:03 EDT 2003 slipcon@mercea.mercea.net:/usr/obj/usr/src/sys/MERCEA i386 >Description: make describe fails in /usr/ports/archivers/jzip.org (which is the first to use java.mk) due to the last change to bsd.java.mk: mercea# make describe "/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 >How-To-Repeat: cd /usr/ports/archives/jzip.org make describe with an old version of make >Fix: a space needs to be added to the conditional which changed in the last update to bsd.java.mk it needs to be: . if (${OSVERSION} >= 500000 ) on line 180 and . elif (${OSVERSION} >= 400000 ) on line 182. (notice the space after the 502102 and the right paren - without the space it treats it as a string "502102)" and > is invalid for strings, and then it doesn't find the right paren to end the conditional. >Release-Note: >Audit-Trail: >Unformatted: