pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/rpc2 Check for yacc as bison -y, byacc, yacc, ra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f62cd9c692b1
branches:  trunk
changeset: 531783:f62cd9c692b1
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Mon Aug 06 12:54:25 2007 +0000

description:
Check for yacc as bison -y, byacc, yacc, rather than the first two
only and defaulting to yacc.  This package might need a working yacc
in theory, but it doesn't run it.

diffstat:

 devel/rpc2/Makefile         |   3 +-
 devel/rpc2/distinfo         |   4 +-
 devel/rpc2/patches/patch-aa |  16 ++++++++
 devel/rpc2/patches/patch-ab |  89 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 110 insertions(+), 2 deletions(-)

diffs (138 lines):

diff -r 7b25ac5e7b61 -r f62cd9c692b1 devel/rpc2/Makefile
--- a/devel/rpc2/Makefile       Mon Aug 06 12:31:25 2007 +0000
+++ b/devel/rpc2/Makefile       Mon Aug 06 12:54:25 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2007/08/04 14:02:10 gdt Exp $
+# $NetBSD: Makefile,v 1.29 2007/08/06 12:54:25 gdt Exp $
 #
 
 DISTNAME=      rpc2-2.6
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  http://www.coda.cs.cmu.edu/pub/rpc2/src/
 
diff -r 7b25ac5e7b61 -r f62cd9c692b1 devel/rpc2/distinfo
--- a/devel/rpc2/distinfo       Mon Aug 06 12:31:25 2007 +0000
+++ b/devel/rpc2/distinfo       Mon Aug 06 12:54:25 2007 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.12 2007/08/04 14:02:10 gdt Exp $
+$NetBSD: distinfo,v 1.13 2007/08/06 12:54:25 gdt Exp $
 
 SHA1 (rpc2-2.6.tar.gz) = cd3ffc77e57df90ae690673eaf77b4b30e09d8b0
 RMD160 (rpc2-2.6.tar.gz) = 6aceb4b7f610ee550334daa0f709762b9499b455
 Size (rpc2-2.6.tar.gz) = 614750 bytes
+SHA1 (patch-aa) = 70ad75acf0d955aeb39d5713ae0ba0bbe55fe9a0
+SHA1 (patch-ab) = c2bb9e8a7c2d0ec127cd9a57938bcdfd2e38197c
diff -r 7b25ac5e7b61 -r f62cd9c692b1 devel/rpc2/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rpc2/patches/patch-aa       Mon Aug 06 12:54:25 2007 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.7 2007/08/06 12:54:25 gdt Exp $
+
+--- configure.in.orig  2007-06-28 12:16:52.000000000 -0400
++++ configure.in
+@@ -30,10 +30,7 @@ AM_PROG_LEX
+ if test -z "${ac_cv_prog_LEX}" ; then
+     AC_MSG_ERROR([Build requires flex or lex lexical analyzer generator])
+ fi
+-AC_PROG_YACC
+-if test -z "${ac_cv_prog_YACC}" ; then
+-    AC_MSG_ERROR([Build requires bison, byacc or yacc parser generator])
+-fi
++AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+ AC_PROG_LIBTOOL
diff -r 7b25ac5e7b61 -r f62cd9c692b1 devel/rpc2/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rpc2/patches/patch-ab       Mon Aug 06 12:54:25 2007 +0000
@@ -0,0 +1,89 @@
+$NetBSD: patch-ab,v 1.1 2007/08/06 12:54:26 gdt Exp $
+
+--- configure.orig     2007-08-02 00:53:15.000000000 -0400
++++ configure
+@@ -854,7 +854,6 @@ LEX
+ LEX_OUTPUT_ROOT
+ LEXLIB
+ YACC
+-YFLAGS
+ build
+ build_cpu
+ build_vendor
+@@ -903,8 +902,6 @@ LDFLAGS
+ LIBS
+ CPPFLAGS
+ CPP
+-YACC
+-YFLAGS
+ CXX
+ CXXFLAGS
+ CCC
+@@ -1522,11 +1519,6 @@ Some influential environment variables:
+   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+               you have headers in a nonstandard directory <include dir>
+   CPP         C preprocessor
+-  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
+-              the first program found out of: `bison -y', `byacc', `yacc'.
+-  YFLAGS      The list of arguments that will be passed by default to $YACC.
+-              This script will default YFLAGS to the empty string to avoid a
+-              default value of `-d' given by some make applications.
+   CXX         C++ compiler command
+   CXXFLAGS    C++ compiler flags
+   CXXCPP      C++ preprocessor
+@@ -4101,7 +4093,7 @@ if test -z "${ac_cv_prog_LEX}" ; then
+ echo "$as_me: error: Build requires flex or lex lexical analyzer generator" >&2;}
+    { (exit 1); exit 1; }; }
+ fi
+-for ac_prog in 'bison -y' byacc
++for ac_prog in 'bison -y' byacc yacc
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2
+@@ -4142,13 +4134,7 @@ fi
+ 
+   test -n "$YACC" && break
+ done
+-test -n "$YACC" || YACC="yacc"
+ 
+-if test -z "${ac_cv_prog_YACC}" ; then
+-    { { echo "$as_me:$LINENO: error: Build requires bison, byacc or yacc parser generator" >&5
+-echo "$as_me: error: Build requires bison, byacc or yacc parser generator" >&2;}
+-   { (exit 1); exit 1; }; }
+-fi
+ # Find a good install program.  We prefer a C program (faster),
+ # so one script is as good as another.  But avoid the broken or
+ # incompatible versions:
+@@ -22928,7 +22914,6 @@ LEX!$LEX$ac_delim
+ LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
+ LEXLIB!$LEXLIB$ac_delim
+ YACC!$YACC$ac_delim
+-YFLAGS!$YFLAGS$ac_delim
+ build!$build$ac_delim
+ build_cpu!$build_cpu$ac_delim
+ build_vendor!$build_vendor$ac_delim
+@@ -22938,6 +22923,7 @@ host_cpu!$host_cpu$ac_delim
+ host_vendor!$host_vendor$ac_delim
+ host_os!$host_os$ac_delim
+ SED!$SED$ac_delim
++GREP!$GREP$ac_delim
+ _ACEOF
+ 
+   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
+@@ -22979,7 +22965,6 @@ _ACEOF
+ ac_delim='%!_!# '
+ for ac_last_try in false false false false false :; do
+   cat >conf$$subs.sed <<_ACEOF
+-GREP!$GREP$ac_delim
+ EGREP!$EGREP$ac_delim
+ LN_S!$LN_S$ac_delim
+ ECHO!$ECHO$ac_delim
+@@ -23010,7 +22995,7 @@ LIBOBJS!$LIBOBJS$ac_delim
+ LTLIBOBJS!$LTLIBOBJS$ac_delim
+ _ACEOF
+ 
+-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
++  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
+     break
+   elif $ac_last_try; then
+     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5



Home | Main Index | Thread Index | Old Index