NetBSD Problem Report #23013

Received: (qmail 6004 invoked by uid 605); 30 Sep 2003 15:05:44 -0000
Message-Id: <5745-1064934342@rainier.reedmedia.net>
Date: Tue, 30 Sep 2003 08:05:42 -0700
From: reed@reedmedia.net
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: net/libIDL needs a lex and a yacc
X-Send-Pr-Version: 3.95

>Number:         23013
>Category:       pkg
>Synopsis:       net/libIDL needs a lex and a yacc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 30 15:06:00 +0000 2003
>Closed-Date:    Sat Mar 06 06:32:26 +0000 2004
>Last-Modified:  Sat Mar 06 06:32:26 +0000 2004
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #0: Tue Aug 12 02:52:57 PDT 2003 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Building libIDL failed on my Linux box. I already had bison installed,
but the YACC was set to yacc (in the mk files installed with mk-files).

Also, I saw it uses flex too. (I moved my flex out of the way,
and it failed.)
>How-To-Repeat:

>Fix:
One fix is to make sure YACC and LEX are set to the installed tools.

Please consider the following patch. A lot of packages have
BUILD_DEPENDS for these, but only if SunOS -- they should check
instead. Maybe it would be good to have a BUILD_USES_LEX and BUILD_USES_YACC.
(I am not sure if a yacc.mk or lex.mk is fine, because run-time
dependencies are different that build-time.)

This is related to PR pkg/20772.


Index: net/libIDL/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/libIDL/Makefile,v
retrieving revision 1.15
diff -b -u -r1.15 Makefile
--- net/libIDL/Makefile	2003/08/09 11:16:19	1.15
+++ net/libIDL/Makefile	2003/09/30 14:59:20
@@ -18,6 +18,15 @@
 PKGCONFIG_OVERRIDE=	${WRKSRC}/libIDL-2.0.pc.in
 INFO_FILES=		libIDL2.info

+.if !exists(/usr/bin/lex) || !exists(/usr/bin/flex)
+BUILD_DEPENDS+=		flex-[0-9]*:../../devel/flex
+LEX=			${LOCALBASE}/bin/flex
+.endif
+.if !exists(/usr/bin/yacc)
+BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison
+YACC=			${LOCALBASE}/bin/bison -y
+.endif
+
 .include "../../converters/libiconv/buildlink2.mk"
 .include "../../devel/pkgconfig/buildlink2.mk"
 .include "../../devel/glib2/buildlink2.mk"
>Release-Note:
>Audit-Trail:

From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23013 CVS commit: pkgsrc/net/libIDL
Date: Sat,  6 Mar 2004 06:30:33 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	reed
 Date:		Sat Mar  6 06:30:33 UTC 2004

 Modified Files:
 	pkgsrc/net/libIDL: Makefile

 Log Message:
 Build uses YACC. This is to close my PR pkg/23013.


 To generate a diff of this commit:
 cvs rdiff -r1.22 -r1.23 pkgsrc/net/libIDL/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: reed 
State-Changed-When: Sat Mar 6 06:31:35 UTC 2004 
State-Changed-Why:  
mk/tools.mk handles YACC. 
I made this use yacc too. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.