bc: update to 1.07.
This commit is contained in:
parent
c72dd2764d
commit
3e158736ce
@ -1,11 +0,0 @@
|
||||
--- doc/bc.info.info-dir-entry 2000-10-03 20:36:31.000000000 +0200
|
||||
+++ doc/bc.info 2003-01-06 14:07:40.000000000 +0100
|
||||
@@ -1,5 +1,8 @@
|
||||
This is bc.info, produced by makeinfo version 4.0 from bc.texi.
|
||||
|
||||
+START-INFO-DIR-ENTRY
|
||||
+* bc: (bc). Arbritrary precision calculator language.
|
||||
+END-INFO-DIR-ENTRY
|
||||
|
||||
File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
|
||||
|
@ -1,38 +0,0 @@
|
||||
Submitted By: Bruce Dubbs (bdubbs at linuxfromscratch dot org)
|
||||
Date: 2014-04-18
|
||||
Initial Package Version: 1.06.95
|
||||
Origin: Gentoo
|
||||
Description: Fixes memory leaks and an uninitialized variable
|
||||
|
||||
--- bc/bc.y 2006-09-04 21:39:31.000000000 -0500
|
||||
+++ bc/bc.y 2014-04-09 13:27:04.602661243 -0500
|
||||
@@ -569,6 +569,7 @@
|
||||
generate (">");
|
||||
break;
|
||||
}
|
||||
+ free($2);
|
||||
}
|
||||
| expression '+' expression
|
||||
{
|
||||
--- bc/storage.c 2006-09-04 21:39:31.000000000 -0500
|
||||
+++ bc/storage.c 2014-04-09 13:28:11.770763410 -0500
|
||||
@@ -99,6 +99,7 @@
|
||||
{
|
||||
f = &functions[indx];
|
||||
f->f_defined = FALSE;
|
||||
+ f->f_void = FALSE;
|
||||
f->f_body = (char *) bc_malloc (BC_START_SIZE);
|
||||
f->f_body_size = BC_START_SIZE;
|
||||
f->f_code_size = 0;
|
||||
--- bc/util.c 2006-09-04 21:39:31.000000000 -0500
|
||||
+++ bc/util.c 2014-04-09 13:27:39.841190064 -0500
|
||||
@@ -602,8 +602,7 @@
|
||||
case FUNCTDEF:
|
||||
if (id->f_name != 0)
|
||||
{
|
||||
- if (namekind != FUNCT)
|
||||
- free(name);
|
||||
+ free(name);
|
||||
/* Check to see if we are redefining a math lib function. */
|
||||
if (use_math && namekind == FUNCTDEF && id->f_name <= 6)
|
||||
id->f_name = next_func++;
|
@ -1,18 +1,29 @@
|
||||
# Template file for 'bc'
|
||||
pkgname=bc
|
||||
version=1.06.95
|
||||
revision=7
|
||||
version=1.07
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-readline"
|
||||
hostmakedepends="flex"
|
||||
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="http://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${version}.tar.bz2"
|
||||
checksum=7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc
|
||||
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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user