aws-sdk-cpp: unpin i686 instead remove failing test and mark broken when building ec2, little cleanup
This commit is contained in:
parent
966ee5c147
commit
a6be71e6fc
1 changed files with 11 additions and 16 deletions
|
@ -31,17 +31,19 @@ in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "aws-sdk-cpp";
|
pname = "aws-sdk-cpp";
|
||||||
version = if stdenv.system == "i686-linux" then "1.9.150"
|
version = "1.9.294";
|
||||||
else "1.9.294";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aws";
|
owner = "aws";
|
||||||
repo = "aws-sdk-cpp";
|
repo = "aws-sdk-cpp";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = if version == "1.9.150" then "fgLdXWQKHaCwulrw9KV3vpQ71DjnQAL4heIRW7Rk7UY="
|
sha256 = "sha256-Z1eRKW+8nVD53GkNyYlZjCcT74MqFqqRMeMc33eIQ9g=";
|
||||||
else "sha256-Z1eRKW+8nVD53GkNyYlZjCcT74MqFqqRMeMc33eIQ9g=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./cmake-dirs.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Missing includes for GCC11
|
# Missing includes for GCC11
|
||||||
sed '5i#include <thread>' -i \
|
sed '5i#include <thread>' -i \
|
||||||
|
@ -65,6 +67,9 @@ stdenv.mkDerivation rec {
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
# TestRandomURLMultiThreaded fails
|
# TestRandomURLMultiThreaded fails
|
||||||
rm aws-cpp-sdk-core-tests/http/HttpClientTest.cpp
|
rm aws-cpp-sdk-core-tests/http/HttpClientTest.cpp
|
||||||
|
'' + lib.optionalString stdenv.isi686 ''
|
||||||
|
# EPSILON is exceeded
|
||||||
|
rm aws-cpp-sdk-core-tests/aws/client/AdaptiveRetryStrategyTest.cpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# FIXME: might be nice to put different APIs in different outputs
|
# FIXME: might be nice to put different APIs in different outputs
|
||||||
|
@ -94,9 +99,6 @@ stdenv.mkDerivation rec {
|
||||||
] ++ lib.optional (apis != ["*"])
|
] ++ lib.optional (apis != ["*"])
|
||||||
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
|
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
|
||||||
|
|
||||||
# fix build with gcc9, can be removed after bumping to current version
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
|
|
||||||
|
|
||||||
# aws-cpp-sdk-core-tests/aws/client/AWSClientTest.cpp
|
# aws-cpp-sdk-core-tests/aws/client/AWSClientTest.cpp
|
||||||
# seem to have a datarace
|
# seem to have a datarace
|
||||||
enableParallelChecking = false;
|
enableParallelChecking = false;
|
||||||
|
@ -109,15 +111,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
patches = [
|
|
||||||
./cmake-dirs.patch
|
|
||||||
]
|
|
||||||
++ lib.optional (lib.versionOlder version "1.9.163")
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/aws/aws-sdk-cpp/commit/b102aaf5693c4165c84b616ab9ffb9edfb705239.diff";
|
|
||||||
sha256 = "sha256-38QBo3MEFpyHPb8jZEURRPkoeu4DqWhVeErJayiHKF0=";
|
|
||||||
});
|
|
||||||
|
|
||||||
# Builds in 2+h with 2 cores, and ~10m with a big-parallel builder.
|
# Builds in 2+h with 2 cores, and ~10m with a big-parallel builder.
|
||||||
requiredSystemFeatures = [ "big-parallel" ];
|
requiredSystemFeatures = [ "big-parallel" ];
|
||||||
|
|
||||||
|
@ -127,5 +120,7 @@ stdenv.mkDerivation rec {
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ eelco orivej ];
|
maintainers = with maintainers; [ eelco orivej ];
|
||||||
|
# building ec2 runs out of memory: cc1plus: out of memory allocating 33554372 bytes after a total of 74424320 bytes
|
||||||
|
broken = ((builtins.elem "ec2" apis) || (builtins.elem "*" apis));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue