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

main/bison: upgrade to 2.5

parent e4aed32d
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison pkgname=bison
pkgver=2.4.3 pkgver=2.5
pkgrel=1 pkgrel=0
pkgdesc="The GNU general-purpose parser generator" pkgdesc="The GNU general-purpose parser generator"
arch="all" arch="all"
license="GPL" license="GPL"
url="http://www.gnu.org/software/bison/bison.html" url="http://www.gnu.org/software/bison/bison.html"
depends="m4" depends="m4"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz"
gnulib-uclibc.patch"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver" _builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
patch -p1 -i "$srcdir"/gnulib-uclibc.patch
} }
build() { build() {
...@@ -31,5 +29,4 @@ package() { ...@@ -31,5 +29,4 @@ package() {
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
md5sums="ea45c778b36bdc7a720096819e292a73 bison-2.4.3.tar.gz md5sums="687e1dcd29452789d34eaeea4c25abe4 bison-2.5.tar.gz"
20a7dedec0e9e0ee7107e33e798ffdbe gnulib-uclibc.patch"
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