[oe-commits] Koen Kooi : bc 1.06: fix segfault when using -l

git version control git at git.openembedded.org
Mon Dec 6 12:52:48 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 276cdd45784abe9573e98eb1442e4c82c442d1f1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=276cdd45784abe9573e98eb1442e4c82c442d1f1

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon Dec  6 12:12:32 2010 +0100

bc 1.06: fix segfault when using -l

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/bc/bc/bc-1.06-fixes-1.patch |   27 +++++++++++++++++++++++++++
 recipes/bc/bc_1.06.bb               |   14 +++++++++-----
 2 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/recipes/bc/bc/bc-1.06-fixes-1.patch b/recipes/bc/bc/bc-1.06-fixes-1.patch
new file mode 100644
index 0000000..afcdba2
--- /dev/null
+++ b/recipes/bc/bc/bc-1.06-fixes-1.patch
@@ -0,0 +1,27 @@
+Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
+Date: 2003-09-26
+Initial Package Version: 1.06
+Origin: Mandrake CVS
+Description: Fixes a few typos
+ 
+--- bc-1.06/lib/number.c.orig	2003-09-26 21:14:02.000000000 +0000
++++ bc-1.06/lib/number.c	2003-09-26 21:14:26.000000000 +0000
+@@ -34,6 +34,7 @@
+ #include <number.h>
+ #include <assert.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <ctype.h>/* Prototypes needed for external utility routines. */
+ 
+ #define bc_rt_warn rt_warn
+--- bc-1.06/bc/load.c.orig	2003-09-26 21:14:14.000000000 +0000
++++ bc-1.06/bc/load.c	2003-09-26 21:14:26.000000000 +0000
+@@ -156,7 +156,7 @@
+   long  label_no;
+   long  vaf_name;	/* variable, array or function number. */
+   long  func;
+-  program_counter save_adr;
++  static program_counter save_adr;
+ 
+   /* Initialize. */
+   str = code;
diff --git a/recipes/bc/bc_1.06.bb b/recipes/bc/bc_1.06.bb
index 151ab1c..8cce522 100644
--- a/recipes/bc/bc_1.06.bb
+++ b/recipes/bc/bc_1.06.bb
@@ -1,8 +1,14 @@
 DESCRIPTION = "An arbitrary precision calculator language."
 SECTION = "console/utils"
-SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz"
-LICENSE = "GPL"
-PR = "r1"
+LICENSE = "GPLv2 LGPLv2.1"
+
+PR = "r2"
+
+SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz \
+           file://bc-1.06-fixes-1.patch"
+
+SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117"
+SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33"
 
 inherit autotools
 
@@ -19,5 +25,3 @@ pkg_prerm_${PN} () {
 	update-alternatives --remove dc dc.${PN}
 }
 
-SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117"
-SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33"





More information about the Openembedded-commits mailing list