e3d748a338
This fixes the read() function that doesn't terminate on newlines in bc 1.07 (an upstream bug has been reported). Patch due to educated guesswork on the diff between 1.06.95 and 1.07. This fixes building Linux 4.10 with bc.
29 lines
709 B
Bash
29 lines
709 B
Bash
# Template file for 'bc'
|
|
pkgname=bc
|
|
version=1.07
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-readline"
|
|
hostmakedepends="ed flex"
|
|
makedepends="readline-devel"
|
|
short_desc="An arbitrary precision numeric processing language"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnu.org/software/${pkgname}/"
|
|
license="GPL-3"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=55cf1fc33a728d7c3d386cc7b0cb556eb5bacf8e0cb5a3fcca7f109fc61205ad
|
|
disable_parallel_build=yes
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" bc"
|
|
pre_build() {
|
|
(
|
|
cd bc
|
|
bc -c libmath.b </dev/null >libmath.h
|
|
./fix-libmath_h
|
|
)
|
|
}
|
|
fi
|
|
do_build() {
|
|
make ${makejobs} LEX="flex -I"
|
|
}
|