Merge pull request #165732 from LibreCybernetics/linux-stdenv-upgrade-gcc

[staging] linux.stdenv: gcc_10 → gcc_11
This commit is contained in:
Kevin Cox 2022-03-25 20:51:31 -04:00 committed by GitHub
commit 074b441ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 4 deletions

View File

@ -28,6 +28,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102823
NIX_CFLAGS_COMPILE = "-fno-ipa-modref";
cmakeFlags = [
"-DBUILD_SHARED_LIBS=OFF"
"-DBUILD_STATIC_LIBS=OFF"

View File

@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
# TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
doCheck = !stdenv.isDarwin;
# There are some non-thread safe tests that can fail
enableParallelChecking = false;
checkInputs = [ perl ];
meta = with lib; {

View File

@ -4,13 +4,13 @@
stdenv.mkDerivation rec {
pname = "pmdk";
version = "1.9.2";
version = "1.11.1";
src = fetchFromGitHub {
owner = "pmem";
repo = "pmdk";
rev = "refs/tags/${version}";
sha256 = "0awmkj6j9y2pbqqmp9ql00s7qa3mnpppa82dfy5324lindq0z8a1";
hash = "sha256-8bnyLtgkKfgIjJkfY/ZS1I9aCYcrz0nrdY7m/TUVWAk=";
};
nativeBuildInputs = [ autoconf pkg-config gnum4 pandoc ];
@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
patchPhase = "patchShebangs utils";
NIX_CFLAGS_COMPILE = "-Wno-error";
installPhase = ''
make install prefix=$out

View File

@ -1,4 +1,11 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config }:
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "rlottie";
@ -11,6 +18,14 @@ stdenv.mkDerivation rec {
sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3";
};
patches = [
# Fixed build with GCC 11
(fetchpatch {
url = "https://github.com/Samsung/rlottie/commit/2d7b1fa2b005bba3d4b45e8ebfa632060e8a157a.patch";
hash = "sha256-2JPsj0WiBMMu0N3NUYDrHumvPN2YS8nPq5Zwagx6UWE=";
})
];
nativeBuildInputs = [ meson ninja pkg-config ];
meta = with lib; {

View File

@ -5330,7 +5330,8 @@ with pkgs;
};
exempi = callPackage ../development/libraries/exempi {
stdenv = if stdenv.isi686 then gcc6Stdenv else stdenv;
stdenv = if stdenv.isi686 then gcc6Stdenv else gcc9Stdenv;
boost = boost15x;
};
execline = skawarePackages.execline;
@ -12141,6 +12142,7 @@ with pkgs;
num =
if (with stdenv.targetPlatform; isVc4 || libc == "relibc") then 6
else if (stdenv.targetPlatform.isAarch64 && stdenv.isDarwin) then 11
else if (stdenv.targetPlatform.isx86_64 && stdenv.isLinux) then 11
else if stdenv.targetPlatform.isAarch64 then 9
else 10;
numS = toString num;