summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-11 06:15:03 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-11 06:15:03 +0000
commita8badc89e898a29f7fd409924337f4f65fe5ed13 (patch)
tree3a860d02a844d5d765ba8ab96e99d8c4545d3523 /sys-devel/bc/files
parentVersion bump. (diff)
downloadgentoo-2-a8badc89e898a29f7fd409924337f4f65fe5ed13.tar.gz
gentoo-2-a8badc89e898a29f7fd409924337f4f65fe5ed13.tar.bz2
gentoo-2-a8badc89e898a29f7fd409924337f4f65fe5ed13.zip
Add patch to fix longopts handling #51525 and a patch from fedora to fix saved register handling.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-devel/bc/files')
-rw-r--r--sys-devel/bc/files/bc-1.06-longopts.patch28
-rw-r--r--sys-devel/bc/files/bc-1.06-static-save.patch16
-rw-r--r--sys-devel/bc/files/digest-bc-1.06-r61
3 files changed, 45 insertions, 0 deletions
diff --git a/sys-devel/bc/files/bc-1.06-longopts.patch b/sys-devel/bc/files/bc-1.06-longopts.patch
new file mode 100644
index 000000000000..f450e3fa0b2e
--- /dev/null
+++ b/sys-devel/bc/files/bc-1.06-longopts.patch
@@ -0,0 +1,28 @@
+a bug in the argument processing of 'bc' (v1.06) prevents it from properly
+reading long-format options.
+
+patch by joe bruin
+
+http://bugs.gentoo.org/show_bug.cgi?id=51525
+
+--- bc-1.06.orig/bc/main.c
++++ bc-1.06/bc/main.c
+@@ -63,7 +63,7 @@
+ printf ("usage: %s [options] [file ...]\n%s%s%s%s%s%s%s", progname,
+ " -h --help print this usage and exit\n",
+ " -i --interactive force interactive mode\n",
+- " -l --mathlib use the predefine math routnes\n",
++ " -l --mathlib use the predefined math routines\n",
+ " -q --quiet don't print initial banner\n",
+ " -s --standard non-standard bc constructs are errors\n",
+ " -w --warn warn about non-standard bc constructs\n",
+@@ -93,6 +93,9 @@
+
+ switch (optch)
+ {
++ case 0: /* Long option setting a var. */
++ break;
++
+ case 'c': /* compile only */
+ compile_only = TRUE;
+ break;
diff --git a/sys-devel/bc/files/bc-1.06-static-save.patch b/sys-devel/bc/files/bc-1.06-static-save.patch
new file mode 100644
index 000000000000..0ee543b262ac
--- /dev/null
+++ b/sys-devel/bc/files/bc-1.06-static-save.patch
@@ -0,0 +1,16 @@
+ripped from fedora !
+
+--- bc-1.06/bc/load.c.s390 Wed Sep 13 20:22:38 2000
++++ bc-1.06/bc/load.c Wed Sep 5 16:10:18 2001
+@@ -156,7 +156,10 @@
+ long label_no;
+ long vaf_name; /* variable, array or function number. */
+ long func;
+- program_counter save_adr;
++ /* Make save_adr static. Otherwise the whole address save stuff doesn't make
++ any sense at all and break e.g. on S390.
++ 09/05/01 Phil Knirsch <pknirsch@redhat.de> */
++ static program_counter save_adr;
+
+ /* Initialize. */
+ str = code;
diff --git a/sys-devel/bc/files/digest-bc-1.06-r6 b/sys-devel/bc/files/digest-bc-1.06-r6
new file mode 100644
index 000000000000..e470cb55f0e4
--- /dev/null
+++ b/sys-devel/bc/files/digest-bc-1.06-r6
@@ -0,0 +1 @@
+MD5 d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz 278926