Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 16:15:14 +1100
From:      chris@aims.com.au
To:        <FreeBSD-gnats-submit@freebsd.org>
Subject:   ports/35809: graphics/tcm build fails after bison builds cardconstraint.tab.c
Message-ID:  <200203120511.g2C5Bq745222@ait0fd01.aims.private>

next in thread | raw e-mail | index | archive | help

>Number:         35809
>Category:       ports
>Synopsis:       graphics/tcm build fails after bison builds cardconstraint.tab.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 21:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Knight
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
AIMS Independent Computer Professionals
>Environment:

System: FreeBSD ait0fd01.aims.private 4.5-RELEASE FreeBSD 4.5-RELEASE #3: Tue Feb 19 06:44:54 EST 2002
root@:/usr/src/sys/compile/THINKPAD i386

>Description:

Build of graphics/tcm fails on src/sd/dv/cardconstraint.tab.c after bison-1.33
has created it, whinging about the use of NULL.
A patch to use yacc resulted in a successful build and a working tcm.

>How-To-Repeat:

Update ports tree
cd /usr/ports/graphics/tcm
make all

>Fix:

NB - The following patch doesn't remove the build dependency on bison, as I
didn't investigate whether bison was used elsewhere in the build process.

Index: files/patch-Config.tmpl
===================================================================
RCS file: /home/ncvs/ports/graphics/tcm/files/patch-Config.tmpl,v
retrieving revision 1.1
diff -u -r1.1 patch-Config.tmpl
--- files/patch-Config.tmpl	18 Aug 2001 06:39:47 -0000	1.1
+++ files/patch-Config.tmpl	12 Mar 2002 03:49:28 -0000
@@ -12,7 +12,7 @@
 +# CFLAGS      	+= -g
 +
 +LEX		= flex
-+YACC		= bison
++YACC		= yacc
 +
 +#XWIN_HOME	= /usr/X11R6
 +XWIN_HOME	= $(X11BASE)
Index: files/patch-src::sd::dv::Makefile
===================================================================
RCS file: files/patch-src::sd::dv::Makefile
diff -N files/patch-src::sd::dv::Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src::sd::dv::Makefile	12 Mar 2002 04:09:00 -0000
@@ -0,0 +1,14 @@
+--- src/sd/dv/Makefile.orig	Tue Mar 12 14:50:53 2002
++++ src/sd/dv/Makefile	Tue Mar 12 15:08:10 2002
+@@ -142,9 +142,9 @@
+ 	$(MV) $@ $(BIN_DIR)
+
+ cardconstraint.tab.h: cardconstraint.y
+-	$(YACC) --debug -p cardconstraint -d cardconstraint.y
++	$(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.tab.c: cardconstraint.y cardconstraint.l
+-	$(YACC) --debug -p cardconstraint -d cardconstraint.y
++	$(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.c: cardconstraint.l cardconstraint.tab.h
+ 	$(LEX) -Pcardconstraint -ocardconstraint.c cardconstraint.l
+ cardconstraint.o: cardconstraint.c


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203120511.g2C5Bq745222>