Commit 0b1fd6ec authored by Natanael Copa's avatar Natanael Copa

main/bison: upgrade to 2.5

parent e4aed32d
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison
pkgver=2.4.3
pkgrel=1
pkgver=2.5
pkgrel=0
pkgdesc="The GNU general-purpose parser generator"
arch="all"
license="GPL"
url="http://www.gnu.org/software/bison/bison.html"
depends="m4"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz
gnulib-uclibc.patch"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz"
subpackages="$pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/gnulib-uclibc.patch
}
build() {
......@@ -31,5 +29,4 @@ package() {
make DESTDIR="$pkgdir" install
}
md5sums="ea45c778b36bdc7a720096819e292a73 bison-2.4.3.tar.gz
20a7dedec0e9e0ee7107e33e798ffdbe gnulib-uclibc.patch"
md5sums="687e1dcd29452789d34eaeea4c25abe4 bison-2.5.tar.gz"
diff --git a/lib/spawn.in.h b/lib/spawn.in.h
index 84ba93c..6df4599 100644
--- a/lib/spawn.in.h
+++ b/lib/spawn.in.h
@@ -31,7 +31,7 @@
/* Get definitions of 'struct sched_param' and 'sigset_t'.
But avoid namespace pollution on glibc systems. */
-#ifndef __GLIBC__
+#if !defined(__GLIBC__) || defined(__UCLIBC__)
# include <sched.h>
# include <signal.h>
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment