From sheldonh@starjuice.net  Fri Nov 14 06:45:11 2003
Return-Path: <sheldonh@starjuice.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6B79516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Nov 2003 06:45:11 -0800 (PST)
Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 60E7643FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Nov 2003 06:45:10 -0800 (PST)
	(envelope-from sheldonh@starjuice.net)
Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.24; FreeBSD 5.1)
	id 1AKfC8-00008N-MU
	for FreeBSD-gnats-submit@freebsd.org; Fri, 14 Nov 2003 16:45:08 +0200
Message-Id: <E1AKfC8-00008N-MU@axl.seasidesoftware.co.za>
Date: Fri, 14 Nov 2003 16:45:08 +0200
From: Sheldon Hearn <sheldonh@starjuice.net>
Reply-To: Sheldon Hearn <sheldonh@starjuice.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: postgresql-devel must depend on bison1875, not bison
X-Send-Pr-Version: 3.2

>Number:         59288
>Category:       ports
>Synopsis:       postgresql-devel must depend on bison1875, not bison
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    seanc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 14 06:50:23 PST 2003
>Closed-Date:    Sat Nov 15 14:40:19 PST 2003
>Last-Modified:  Sat Nov 15 14:40:19 PST 2003
>Originator:     Sheldon Hearn
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Seaside Software
>Environment:

N/A

>Description:

The databases/postgresql-devel port depends on devel/bison1875, but if
devel/bison is already installed, the following build error occurs:

plpgsql/src'
bison -y -d  gram.y
NONE:0: /usr/local/bin/gm4: ERROR: EOF in string
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.c > ./pl_gram.c
cannot open y.tab.c: No such file or directory
gmake[4]: *** [pl.tab.h] Error 2

If you look at config.log, you'll see this:

configure:4205: WARNING:
*** The installed version of Bison is too old.  PostgreSQL needs
*** Bison version 1.875 or later.

>How-To-Repeat:

Deinstall devel/bison1875.
Install devel/bison.
Try to install devel/postgresql-devel.

>Fix:

I'm not sure that this can be easily fixed without some jiggery-pokery
in the bison ports.  Alternatively, the postgresql-devel port could be
given a pre-configure target that tests the version of bison installed.

In fact, these ideas only just occured to me.  I was expecting the
postgresql maintainer to close this PR as unsolvable; the PR would still
be useful to folks who run into the problem.

But maybe the situation can be improved.  What do you think, Sean?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->seanc 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Nov 14 07:08:22 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59288 
State-Changed-From-To: open->closed 
State-Changed-By: seanc 
State-Changed-When: Sat Nov 15 14:39:42 PST 2003 
State-Changed-Why:  
Updated the bison port to handle this.  Thanks for nagging me 
enough to fix it.  :)  -sc 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59288 
>Unformatted:
