From 6a0a5489f691bc2d8bfee693d014cf78ddc342d2 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 6 Dec 2010 12:12:32 +0100 Subject: [PATCH] bc 1.06: fix segfault when using -l Signed-off-by: Koen Kooi --- recipes/bc/bc/bc-1.06-fixes-1.patch | 27 +++++++++++++++++++++++++++ recipes/bc/bc_1.06.bb | 14 +++++++++----- 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 recipes/bc/bc/bc-1.06-fixes-1.patch 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 0000000000..afcdba20d9 --- /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 + #include + #include ++#include + #include /* 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 151ab1c27f..8cce522464 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" -- 2.39.5