mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
Fixed build of pkgs/development/libraries/buddy with gcc 4.3.3.
svn path=/nixpkgs/trunk/; revision=16150
This commit is contained in:
parent
aded9986c5
commit
17d75b8168
|
@ -1,20 +1,21 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, bison }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "buddy-2.4";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/buddy/${name}.tar.gz";
|
||||
sha256 = "0dl86l9xkl33wnkz684xa9axhcxx2zzi4q5lii0axnb9lsk81pyk";
|
||||
};
|
||||
|
||||
buildInputs = [ bison ];
|
||||
patches = [ ./gcc-4.3.3-fixes.patch ];
|
||||
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3";
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = "http://sourceforge.net/projects/buddy/";
|
||||
description = "binary decision diagram package";
|
||||
license = "as-is";
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/buddy/${name}.tar.gz";
|
||||
sha256 = "0dl86l9xkl33wnkz684xa9axhcxx2zzi4q5lii0axnb9lsk81pyk";
|
||||
};
|
||||
|
||||
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3";
|
||||
|
||||
doCheck = true;
|
||||
}
|
||||
|
|
22
pkgs/development/libraries/buddy/gcc-4.3.3-fixes.patch
Normal file
22
pkgs/development/libraries/buddy/gcc-4.3.3-fixes.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff -uwr buddy-2.4.orig/examples/bddcalc/parser.yxx buddy-2.4/examples/bddcalc/parser.yxx
|
||||
--- buddy-2.4.orig/examples/bddcalc/parser.yxx 2009-07-02 17:12:48.000000000 +0200
|
||||
+++ buddy-2.4/examples/bddcalc/parser.yxx 2009-07-02 17:18:36.000000000 +0200
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
+#include <cstdlib>
|
||||
#include <stdarg.h>
|
||||
#include <fstream>
|
||||
#include <getopt.h>
|
||||
diff -uwr buddy-2.4.orig/src/bddtest.cxx buddy-2.4/src/bddtest.cxx
|
||||
--- buddy-2.4.orig/src/bddtest.cxx 2009-07-02 17:12:48.000000000 +0200
|
||||
+++ buddy-2.4/src/bddtest.cxx 2009-07-02 17:14:05.000000000 +0200
|
||||
@@ -28,6 +28,7 @@
|
||||
========================================================================*/
|
||||
|
||||
#include <string>
|
||||
+#include <cstdlib>
|
||||
#include "bdd.h"
|
||||
#include "bvec.h"
|
||||
|
|
@ -2895,7 +2895,7 @@ let
|
|||
};
|
||||
|
||||
buddy = import ../development/libraries/buddy {
|
||||
inherit fetchurl stdenv;
|
||||
inherit fetchurl stdenv bison;
|
||||
};
|
||||
|
||||
cairo = import ../development/libraries/cairo {
|
||||
|
|
Loading…
Reference in a new issue