Merge pull request #376 from pcapriotti/master

Fix bip build
This commit is contained in:
Peter Simons 2013-03-13 02:55:00 -07:00
commit ea804dfb1a
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;
};
}
}