OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   07-Oct-2004 21:26:53
  Branch: HEAD                             Handle: 2004100720265300

  Added files:
    openpkg-src/rie         rie.patch
  Modified files:
    openpkg-src/rie         rie.spec

  Log:
    make portable and this way fix building under FreeBSD 5.3

  Summary:
    Revision    Changes     Path
    1.1         +50 -0      openpkg-src/rie/rie.patch
    1.15        +3  -1      openpkg-src/rie/rie.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/rie/rie.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rie.patch
  --- /dev/null 2004-10-07 21:26:53 +0200
  +++ rie.patch 2004-10-07 21:26:53 +0200
  @@ -0,0 +1,50 @@
  +Index: src/conflicts.c
  +--- src/conflicts.c.orig     1995-08-15 17:40:40 +0200
  ++++ src/conflicts.c  2004-10-07 21:25:01 +0200
  +@@ -17,9 +17,6 @@
  + along with Bison; see the file COPYING.  If not, write to
  + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  + 
  +-#ifdef _AIX
  +- #pragma alloca
  +-#endif
  + #include <stdio.h>
  + #include "system.h"
  + #include "machine.h"
  +@@ -35,19 +32,6 @@
  + #endif
  + #endif
  + 
  +-#ifndef __GNUC__
  +-#undef alloca
  +-#define alloca __builtin_alloca
  +-#else
  +-#ifdef HAVE_ALLOCA_H
  +-#include <alloca.h>
  +-#else
  +-#ifndef _AIX
  +-extern char *alloca ();
  +-#endif
  +-#endif
  +-#endif
  +-
  + extern void print_synthesize();             /* printsem.c  */
  + 
  + extern char **tags;
  +@@ -201,7 +185,7 @@
  +   register unsigned *fp2;
  +   register int redprec;
  +   /* Extra parens avoid errors on Ultrix 4.3.  */
  +-  errs *errp = (errs *) alloca ((sizeof(errs) + ntokens * sizeof(short)));
  ++  errs *errp = (errs *) xmalloc ((sizeof(errs) + ntokens * sizeof(short)));
  +   short *errtokens = errp->errs;
  + 
  +   /* find the rule to reduce by to get precedence of reduction  */
  +@@ -286,6 +270,7 @@
  +     }
  +   else
  +     err_table[state] = 0;
  ++  free (errp);
  + }
  + 
  + 
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/rie/rie.spec
  ============================================================================
  $ cvs diff -u -r1.14 -r1.15 rie.spec
  --- openpkg-src/rie/rie.spec  7 Feb 2004 17:58:26 -0000       1.14
  +++ openpkg-src/rie/rie.spec  7 Oct 2004 19:26:53 -0000       1.15
  @@ -34,10 +34,11 @@
   Group:        Compiler
   License:      GPL
   Version:      1.0.6
  -Release:      20040207
  +Release:      20041007
   
   #   list of sources
   Source0:      ftp://ftp.is.titech.ac.jp/pub/Rie/rie-%{version}.tar.gz
  +Patch0:       rie.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -72,6 +73,7 @@
   
   %prep
       %setup -q
  +    %patch -p0
       %{l_shtool} subst \
           -e 's;/share;/share/rie;' \
           src/Makefile.in
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to