[arch-commits] Commit in bison/trunk (PKGBUILD bison-2.5-undefined-reference.patch)

Allan McRae allan at archlinux.org
Thu Nov 24 22:22:44 EST 2011


    Date: Thursday, November 24, 2011 @ 22:22:43
  Author: allan
Revision: 143497

upgpkg: bison 2.5-3

fix undefined reference issue (FS#26794)

Added:
  bison/trunk/bison-2.5-undefined-reference.patch
Modified:
  bison/trunk/PKGBUILD

-------------------------------------+
 PKGBUILD                            |   20 +++++++++++++-------
 bison-2.5-undefined-reference.patch |   11 +++++++++++
 2 files changed, 24 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-25 03:20:54 UTC (rev 143496)
+++ PKGBUILD	2011-11-25 03:22:43 UTC (rev 143497)
@@ -4,7 +4,7 @@
 
 pkgname=bison
 pkgver=2.5
-pkgrel=2
+pkgrel=3
 pkgdesc="The GNU general-purpose parser generator"
 arch=('i686' 'x86_64')
 license=('GPL3')
@@ -12,22 +12,28 @@
 depends=('glibc' 'm4' 'sh')
 groups=('base-devel')
 install=bison.install
-source=(ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.bz2{,.sig})
+source=(ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.bz2{,.sig}
+        bison-2.5-undefined-reference.patch)
 md5sums=('9dba20116b13fc61a0846b0058fbe004'
-         '610b73db67bd4760209458efe7554ca3')
+         '610b73db67bd4760209458efe7554ca3'
+         '2015c5421b2ad99032154f27bf5c4772')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${srcdir}/${pkgname}-${pkgver}
+  
+  # workaround for FS#26794
+  patch -Np1 -i $srcdir/bison-2.5-undefined-reference.patch
+  
   ./configure --prefix=/usr --datadir=/usr/share
   make
 }
 
 check() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${srcdir}/${pkgname}-${pkgver}
   make check
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install
 }

Added: bison-2.5-undefined-reference.patch
===================================================================
--- bison-2.5-undefined-reference.patch	                        (rev 0)
+++ bison-2.5-undefined-reference.patch	2011-11-25 03:22:43 UTC (rev 143497)
@@ -0,0 +1,11 @@
+diff -Naur bison-2.5-orig/lib/yyerror.c bison-2.5/lib/yyerror.c
+--- bison-2.5-orig/lib/yyerror.c	2011-01-04 00:50:42.000000000 +1000
++++ bison-2.5/lib/yyerror.c	2011-11-09 22:01:48.725507079 +1000
+@@ -18,6 +18,7 @@
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+ 
+ #include <stdio.h>
++#undef fprintf
+ 
+ int yyerror (char const *);
+ 



More information about the arch-commits mailing list