mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
Merge pull request #13932 from anderspapitto/distcc
distcc: 3.1 -> 2016-02-16
This commit is contained in:
commit
2a0b0dbdf2
@ -1,12 +0,0 @@
|
|||||||
diff -ubr distcc-3.1-orig/src/io.c distcc-3.1-patched/src/io.c
|
|
||||||
--- distcc-3.1-orig/src/io.c 2008-12-02 22:50:25.000000000 +0100
|
|
||||||
+++ distcc-3.1-patched/src/io.c 2010-01-07 15:07:18.000000000 +0100
|
|
||||||
@@ -64,7 +64,7 @@
|
|
||||||
|
|
||||||
/** Timeout for all IO other than opening connections. Much longer, because
|
|
||||||
* compiling files can take a long time. **/
|
|
||||||
-const int dcc_io_timeout = 300; /* seconds */
|
|
||||||
+const int dcc_io_timeout = 1200; /* seconds */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
@ -1,21 +1,25 @@
|
|||||||
{ stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk, runCommand, gcc
|
{ stdenv, fetchFromGitHub, popt, avahi, pkgconfig, python, gtk, runCommand, gcc, autoconf, automake, which, procps
|
||||||
, sysconfDir ? "" # set this parameter to override the default value $out/etc
|
, sysconfDir ? "" # set this parameter to override the default value $out/etc
|
||||||
, static ? false
|
, static ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "distcc";
|
name = "distcc";
|
||||||
version = "3.1";
|
version = "2016-02-24";
|
||||||
distcc = stdenv.mkDerivation {
|
distcc = stdenv.mkDerivation {
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://distcc.googlecode.com/files/${name}-${version}.tar.bz2";
|
owner = "distcc";
|
||||||
sha256 = "f55dbafd76bed3ce57e1bbcdab1329227808890d90f4c724fcd2d53f934ddd89";
|
repo = "distcc";
|
||||||
|
rev = "b2fa4e21b4029e13e2c33f7b03ca43346f2cecb8";
|
||||||
|
sha256 = "1vj31wcdas8wy52hy6749mlrca9v6ynycdiigx5ay8pnya9z73c6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [popt avahi pkgconfig python gtk];
|
buildInputs = [popt avahi pkgconfig python gtk autoconf automake pkgconfig which procps];
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
''
|
||||||
|
export CPATH=$(ls -d ${gcc.cc}/lib/gcc/*/${gcc.cc.version}/plugin/include)
|
||||||
|
|
||||||
configureFlagsArray=( CFLAGS="-O2 -fno-strict-aliasing"
|
configureFlagsArray=( CFLAGS="-O2 -fno-strict-aliasing"
|
||||||
CXXFLAGS="-O2 -fno-strict-aliasing"
|
CXXFLAGS="-O2 -fno-strict-aliasing"
|
||||||
--mandir=$out/share/man
|
--mandir=$out/share/man
|
||||||
@ -29,8 +33,9 @@ let
|
|||||||
--disable-Werror # a must on gcc 4.6
|
--disable-Werror # a must on gcc 4.6
|
||||||
)
|
)
|
||||||
installFlags="sysconfdir=$out/etc";
|
installFlags="sysconfdir=$out/etc";
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
patches = [ ./20-minute-io-timeout.patch ];
|
|
||||||
|
|
||||||
# The test suite fails because it uses hard-coded paths, i.e. /usr/bin/gcc.
|
# The test suite fails because it uses hard-coded paths, i.e. /usr/bin/gcc.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -69,7 +74,7 @@ let
|
|||||||
license = "GPL";
|
license = "GPL";
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
maintainers = with stdenv.lib.maintainers; [ simons anderspapitto ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user