aboutsummaryrefslogtreecommitdiffstats
path: root/main/bc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-09 17:40:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-09 17:45:23 +0000
commit28ef54953b35475a1ee3814b4d32b17685976fc2 (patch)
tree5c5e06b29cf1a826c4d8fd3afab120d86696df1d /main/bc
parentea2ae6eb2d732e7e2530b6a04c1519c9c9b9a057 (diff)
downloadaports-28ef54953b35475a1ee3814b4d32b17685976fc2.tar.bz2
aports-28ef54953b35475a1ee3814b4d32b17685976fc2.tar.xz
main/bc: upgrade to 1.06.95
Diffstat (limited to 'main/bc')
-rw-r--r--main/bc/APKBUILD28
-rw-r--r--main/bc/bc-1.06.95-void_uninitialized.patch13
2 files changed, 34 insertions, 7 deletions
diff --git a/main/bc/APKBUILD b/main/bc/APKBUILD
index 337dbe60a6..1dd5cd96f8 100644
--- a/main/bc/APKBUILD
+++ b/main/bc/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bc
-pkgver=1.06
-pkgrel=3
+pkgver=1.06.95
+pkgrel=0
pkgdesc="arbitrary precision numeric processing language (calculator)"
url="http://www.gnu.org/software/bc/bc.html"
arch="all"
@@ -11,18 +11,32 @@ depends=
makedepends="flex readline-dev"
install=
subpackages="$pkgname-doc"
-source="http://mirrors.kernel.org/gnu/bc/$pkgname-$pkgver.tar.gz"
+source="ftp://alpha.gnu.org/gnu/bc/bc-$pkgver.tar.bz2
+ bc-1.06.95-void_uninitialized.patch"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ local i
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
-
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
- make DESTDIR="$pkgdir" install
+}
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz"
+md5sums="5126a721b73f97d715bb72c13c889035 bc-1.06.95.tar.bz2
+c83b1973eb393d3b3254d7815a7e152b bc-1.06.95-void_uninitialized.patch"
diff --git a/main/bc/bc-1.06.95-void_uninitialized.patch b/main/bc/bc-1.06.95-void_uninitialized.patch
new file mode 100644
index 0000000000..c591f782a8
--- /dev/null
+++ b/main/bc/bc-1.06.95-void_uninitialized.patch
@@ -0,0 +1,13 @@
+http://www.pixelbeat.org/programming/oss_bug_flow.html
+https://bugs.gentoo.org/349339
+
+--- ./bc/storage.c
++++ ./bc/storage.c
+@@ -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;