Subject: Re: ruby18: db4 is not an acceptable, can't read y.tab.c
To: rudolf <netbsd@eq.cz>
From: Takahiro Kambe <taca@back-street.net>
List: tech-pkg
Date: 12/24/2005 00:20:25
In message <20051222193230.GA5853@NetBSD.org>
	on Thu, 22 Dec 2005 19:32:30 +0000,
	"Johnny C. Lam" <jlam@pkgsrc.org> wrote:
> > > What about patching the Makefile to correctly use TOOLS_ARGS.yacc
> > > instead?
> > I've never see TOOLS_ARGS.* except files under /usr/pkgsrc/mk.
> > Is there any guideline or documentation for using them?
> > 
> > Anyway, these patch files and update patch-aa and patch-ab solve the
> > problem.
> 
> I've committed revision 1.145 of pkgsrc/mk/tools/replace.mk which
> should fix the YACC problem.  It should set YACC="bison -y" in the
> environment before calling the configure script.  You should be able
> to remove those changes from your patch.
Oh, thanks.

I could test next Monday.  rudolf, would you please test after update
your pkgsrc tree and apply below patch?

-- 
Takahiro Kambe <taca@back-street.net>

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/ruby18-base/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	8 Dec 2005 09:52:15 -0000	1.14
+++ Makefile	23 Dec 2005 15:19:46 -0000
@@ -46,7 +46,14 @@
 FILES_SUBST+=	DATE=${DATE:Q}
 
 #
-# IRIX work around should be fixed.
+# Use Berkley DB unless a system has real ndbm(3).
+#
+.if !exists(/usr/include/ndbm.h)
+.include "../../mk/bdb.buildlink3.mk"
+.endif
+
+#
+# IRIX work around which should be fixed.
 #
 .if ${OPSYS} == "IRIX"
 PLIST_SUBST+=  HAS_IO="@comment "
@@ -130,15 +137,6 @@
 	${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_EXAMPLESDIR}/pty
 .endfor
 
-#
-# XXX:	Ruby extconf shuld select native ndbm(3) or Berkley DB's
-#	ndbm(3) compatible support.
-#
-.if ${OPSYS} != "IRIX" && ${OPSYS} != "SunOS"
-BDB_ACCEPTED?=		db1
-.include "../../mk/bdb.buildlink3.mk"
-.endif
-
 .include "../../lang/ruby/Makefile.common"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"