Skip to contentSkip to conversation

Bump bc version to 1.06.95

PATCH New grepper 2 participants 2 messages Jun 12, 2015 – Jun 13, 2015

lore
Share & tools
lore

grepper

author
#0 lore raw

PATCH v2 1/1 Bump bc version to 1.06.95

From: Robert Sohn <[email protected]>

The current version of bc being used (1.06) is from the year 2000. As well it has a serious bug when the math library is used (segfault). Even the 1.06.95 version is 9 years old.

Though the source for the buildroot package is downloaded from
http://alpha.gnu.org/gnu/bc, I have included several patches from the Debian bc package in Jessie, version 1.06.95-9. It was downloaded from:
https://packages.debian.org/jessie/bc.
The first patch is self-explanatory, it fixes a small bug in initializing an array. The patch author is Phil Nelson.
The second patch 02_notice_read_write_errors is described by its author Ian Jackson (iwj at ubuntu.com):
"Make dc notice read and write errors on its input and output". So better error checking and error messages.

---
 package/bc/01_array_initialize.patch         |  20 +
 package/bc/02_notice_read_write_errors.patch | 708 +++++++++++++++++++++++++++
 package/bc/bc.hash                           |   2 +-
 package/bc/bc.mk                             |   5 +-
 4 files changed, 732 insertions(+), 3 deletions(-)
 create mode 100644 package/bc/01_array_initialize.patch
 create mode 100644 package/bc/02_notice_read_write_errors.patch
package/bc/01_array_initialize.patch new file +20 -0
new file mode 100644
index 0000000..9520d82
@@ -0,0 +1,20 @@
+Description: Fix array initialization bug
+Author: Phil Nelson
+Origin: upstream
+Bug-Debian: http://bugs.debian.org/586969
+Bug-Debian: http://bugs.debian.org/671513
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: bc/bc/storage.c
+===================================================================
+--- bc.orig/bc/storage.c	2013-06-02 20:34:09.401273864 -0400
++++ bc/bc/storage.c	2013-06-02 20:34:11.000000000 -0400
+@@ -179,7 +179,7 @@
+ 
+ 
+   /* Initialize the new elements. */
+-  for (; indx < v_count; indx++)
++  for (; indx < a_count; indx++)
+     arrays[indx] = NULL;
+ 
+   /* Free the old elements. */
package/bc/02_notice_read_write_errors.patch new file +708 -0

708 lines not on this page · raw message

package/bc/bc.hash +1 -1
index 241e9a2..c9c786a 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256	4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33  bc-1.06.tar.gz
+sha256  7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc  bc-1.06.95.tar.bz2
package/bc/bc.mk +3 -2
index 60530bd..63948a0 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-BC_VERSION = 1.06
-BC_SITE = $(BR2_GNU_MIRROR)/bc
+BC_VERSION = 1.06.95
+BC_SITE = http://alpha.gnu.org/gnu/bc
+BC_SOURCE    = bc-$(BC_VERSION).tar.bz2
 BC_DEPENDENCIES = host-flex
 BC_LICENSE = GPLv2+ LGPLv2.1+
 BC_LICENSE_FILES = COPYING COPYING.LIB
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 Bump bc version to 1.06.95

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"grepper" == grepper <[email protected]> writes:

From: Robert Sohn <[email protected]>
The current version of bc being used (1.06) is from the year 2000. As well it has a serious bug when the math library is used (segfault). Even the 1.06.95 version is 9 years old.

Committed with some formatting and commit message tweaks, thanks!

Signature · 1 line
Bye, Peter Korsgaard