summaryrefslogtreecommitdiff
path: root/devel/rpc2
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2007-08-06 12:54:25 +0000
committergdt <gdt@pkgsrc.org>2007-08-06 12:54:25 +0000
commit00527980b4c10c188763c922f86fa1d6f5c7c3a3 (patch)
tree5e566774d3d7d90493c95bb1bad529eff86cd323 /devel/rpc2
parent40c367fcf6b366ff5ebb2aa0ba54f09aecebf6b3 (diff)
downloadpkgsrc-00527980b4c10c188763c922f86fa1d6f5c7c3a3.tar.gz
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 (limited to 'devel/rpc2')
-rw-r--r--devel/rpc2/Makefile3
-rw-r--r--devel/rpc2/distinfo4
-rw-r--r--devel/rpc2/patches/patch-aa16
-rw-r--r--devel/rpc2/patches/patch-ab89
4 files changed, 110 insertions, 2 deletions
diff --git a/devel/rpc2/Makefile b/devel/rpc2/Makefile
index 71d52ca72db..1d9933f9356 100644
--- a/devel/rpc2/Makefile
+++ b/devel/rpc2/Makefile
@@ -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 --git a/devel/rpc2/distinfo b/devel/rpc2/distinfo
index c339eb1bd4f..65742b15f6b 100644
--- a/devel/rpc2/distinfo
+++ b/devel/rpc2/distinfo
@@ -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 --git a/devel/rpc2/patches/patch-aa b/devel/rpc2/patches/patch-aa
new file mode 100644
index 00000000000..3cc132ba756
--- /dev/null
+++ b/devel/rpc2/patches/patch-aa
@@ -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 --git a/devel/rpc2/patches/patch-ab b/devel/rpc2/patches/patch-ab
new file mode 100644
index 00000000000..369af61affe
--- /dev/null
+++ b/devel/rpc2/patches/patch-ab
@@ -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