Resurrect old cloog and isl for gcc-4.9

Fixes #7723

Refs 8af39c1cf7
Refs 5cd11989c5
This commit is contained in:
Shea Levy
2015-05-06 08:32:03 -04:00
parent 09af6d4572
commit 3aff74a7a2
4 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{ stdenv, fetchurl, gmp }:
stdenv.mkDerivation rec {
name = "isl-0.11.1"; # CLooG 0.16.3 fails to build with ISL 0.08.
src = fetchurl {
url = "http://pkgs.fedoraproject.org/repo/pkgs/gcc/isl-0.11.1.tar.bz2/bce1586384d8635a76d2f017fb067cd2/isl-0.11.1.tar.bz2";
sha256 = "13d9cqa5rzhbjq0xf0b2dyxag7pqa72xj9dhsa03m8ccr1a4npq9";
};
buildInputs = [ gmp ];
patches = [ ./fix-gcc-build.diff ];
enableParallelBuilding = true;
meta = {
homepage = http://www.kotnet.org/~skimo/isl/;
license = stdenv.lib.licenses.lgpl21;
description = "A library for manipulating sets and relations of integer points bounded by linear constraints";
maintainers = [ stdenv.lib.maintainers.shlevy ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@@ -0,0 +1,12 @@
diff -ru isl-0.11.1/include/isl/int.h isl-0.11.1.new/include/isl/int.h
--- isl-0.11.1/include/isl/int.h 2012-11-29 09:47:32.000000000 +0100
+++ isl-0.11.1.new/include/isl/int.h 2013-10-27 15:35:31.348553812 +0100
@@ -14,7 +14,7 @@
#include <string.h>
#include <gmp.h>
#if defined(__cplusplus)
-#include <iostream>
+#include <ostream>
#endif
#if defined(__cplusplus)