bc: 1.06 -> 1.07.1

This commit is contained in:
Armijn Hemel 2017-04-23 22:15:31 +02:00 committed by Tuomas Tynkkynen
parent 45470c65f5
commit b5530755a5
2 changed files with 4 additions and 21 deletions

View file

@ -1,21 +1,15 @@
{stdenv, fetchurl, flex, readline}:
{stdenv, fetchurl, flex, readline, ed, texinfo}:
stdenv.mkDerivation rec {
name = "bc-1.06";
name = "bc-1.07.1";
src = fetchurl {
url = "mirror://gnu/bc/${name}.tar.gz";
sha256 = "0cqf5jkwx6awgd2xc2a0mkpxilzcfmhncdcfg7c9439wgkqxkxjf";
sha256 = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a";
};
patches = [ ./readlinefix.patch ];
preConfigure = ''
sed -i 's/program.*save/static &/' bc/load.c
'';
configureFlags = [ "--with-readline" ];
buildInputs = [flex readline];
buildInputs = [flex readline ed texinfo];
doCheck = true;

View file

@ -1,11 +0,0 @@
diff -Naur bc-1.06.orig/bc/scan.l bc-1.06/bc/scan.l
--- bc-1.06.orig/bc/scan.l 2000-09-13 13:25:47.000000000 -0500
+++ bc-1.06/bc/scan.l 2002-07-09 14:36:34.000000000 -0500
@@ -143,7 +143,6 @@
/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
/* rl_input puts upto MAX characters into BUF with the number put in
BUF placed in *RESULT. If the yy input file is the same as