Commit 9cd3b9ef authored by Natanael Copa's avatar Natanael Copa

main/bison: upgrade to 2.4.2

parent 4fe58eca
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison pkgname=bison
pkgver=2.4.1 pkgver=2.4.2
pkgrel=5 pkgrel=0
pkgdesc="The GNU general-purpose parser generator" pkgdesc="The GNU general-purpose parser generator"
license="GPL" license="GPL"
url="http://www.gnu.org/software/bison/bison.html" url="http://www.gnu.org/software/bison/bison.html"
depends="uclibc 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"
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/gnulib-uclibc.patch
}
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$_builddir"
./configure --prefix=/usr \ ./configure --prefix=/usr \
--datadir=/usr/share \ --datadir=/usr/share \
--infodir=/usr/share/info \ --infodir=/usr/share/info \
--mandir=/usr/share/man --mandir=/usr/share/man
make || return 1 make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
md5sums="c58aa1da418dc9704070872489e89bf5 bison-2.4.1.tar.gz" md5sums="6fc502f135738e98fecf1e5c8de38d62 bison-2.4.2.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