Add patch to fix build for bip.

This commit is contained in:
Paolo Capriotti 2013-03-12 18:22:48 +00:00
parent 9ec69c077e
commit 03e6a6f85f
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- bip-0.8.8/src/lex.l.orig
+++ bip-0.8.8/src/lex.l
@@ -16,7 +16,7 @@
int linec;
#include "util.h"
extern list_t *root_list;
-void yyparse(void);
+int yyparse(void);
void free_conf(list_t*);
int conf_error;
typedef struct bip bip_t;

View file

@ -36,6 +36,10 @@ in stdenv.mkDerivation {
}
];
postPatch = ''
patch -p1 < ${./bip-0.8.8-yyparse.patch}
'';
configureFlags = [ "--disable-pie" ];
buildInputs = [ bison flex autoconf automake openssl ];
@ -45,4 +49,4 @@ in stdenv.mkDerivation {
homepage = http://bip.milkypond.org/;
license = stdenv.lib.licenses.gpl2;
};
}
}