From owner-freebsd-ports-bugs@FreeBSD.ORG  Tue Mar  7 10:10:06 2006
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
X-Original-To: freebsd-ports-bugs@hub.freebsd.org
Delivered-To: freebsd-ports-bugs@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A539316A420
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Tue,  7 Mar 2006 10:10:06 +0000 (GMT)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F1D8C43D53
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Tue,  7 Mar 2006 10:10:05 +0000 (GMT)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k27AA5Us015557
	for <freebsd-ports-bugs@freefall.freebsd.org>;
	Tue, 7 Mar 2006 10:10:05 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k27AA5E6015556;
	Tue, 7 Mar 2006 10:10:05 GMT (envelope-from gnats)
Resent-Date: Tue, 7 Mar 2006 10:10:05 GMT
Resent-Message-Id: <200603071010.k27AA5E6015556@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-ports-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	Shaun Amott <shaun@inerd.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4CC8116A420;
	Tue,  7 Mar 2006 10:07:04 +0000 (GMT) (envelope-from shaun@inerd.com)
Received: from dione.picobyte.net (host-212-158-207-124.bulldogdsl.com
	[212.158.207.124])
	by mx1.FreeBSD.org (Postfix) with SMTP id 94CBF43D46;
	Tue,  7 Mar 2006 10:07:03 +0000 (GMT) (envelope-from shaun@inerd.com)
Received: from charon.picobyte.net (charon.picobyte.net
	[IPv6:2001:4bd0:201e::fe03])
	by dione.picobyte.net (Postfix) with ESMTP;
	Tue,  7 Mar 2006 10:07:00 +0000 (GMT)
Message-Id: <1141725879.932@charon.picobyte.net>
Date: Tue, 7 Mar 2006 10:04:39 -0000
From: Shaun Amott <shaun@inerd.com>
To: FreeBSD-gnats-submit@FreeBSD.org
X-Send-Pr-Version: 3.113
Cc: olgeni@FreeBSD.org
Subject: ports/94161: lang/erlang: OSVERSION check too narrow - fix for old
	5.x versions
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Shaun Amott <shaun@inerd.com>
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Mar 2006 10:10:06 -0000


>Number:         94161
>Category:       ports
>Synopsis:       lang/erlang: OSVERSION check too narrow - fix for old 5.x versions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 07 10:10:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Shaun Amott
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:

FreeBSD 5.2.1-RELEASE-p13 #0: Sun Feb 13 03:06:15 GMT 2005 CUSTOM i386

>Description:

I attempted to build the lang/erlang port on a FreeBSD 5.2.1-RELEASE
machine, but it failed, giving linking errors to do with threading
libraries. The problem was resolved by defining WITHOUT_ODBC for the
port; this is already detected and automatically disabled for
OSVERSION < 500000; but, evidently, this test is too narrow.

>How-To-Repeat:

Build lang/erlang on a (horribly out of date) 5.2.1 machine.

>Fix:

Change relevant test to:

.if ${OSVERSION} < 502010
WITHOUT_ODBC=	yes
.endif

Unless anyone knows the exact version where the problem is resolved.
>Release-Note:
>Audit-Trail:
>Unformatted: