Merge gcc-9 into staging (#68029)
This commit is contained in:
@@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ocl-icd opencl-headers ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -18,6 +18,16 @@ stdenv.mkDerivation rec {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/rhboot/efivar/pull/133.patch";
|
||||
sha256 = "038cwldb8sqnal5l6mhys92cqv8x7j8rgsl8i4fiv9ih9znw26i6";
|
||||
})
|
||||
(fetchurl {
|
||||
name = "fix-misaligned-pointer.patch";
|
||||
url = "https://github.com/rhboot/efivar/commit/b98ba8921010d03f46704a476c69861515deb1ca.patch";
|
||||
sha256 = "0ni9mz7y40a2wf1d1q5n9y5dhcbydxvfdhqic7zsmgnaxs3a0p27";
|
||||
})
|
||||
(fetchurl {
|
||||
name = "fix-gcc9-error.patch";
|
||||
url = "https://github.com/rhboot/efivar/commit/c3c553db85ff10890209d0fe48fb4856ad68e4e0.patch";
|
||||
sha256 = "0lc38npydp069nlcga25wzzm204ww9l6mpjfn6wmhdfhn0pgjwky";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -14,11 +14,13 @@ stdenv.mkDerivation rec {
|
||||
CXXFLAGS = "-fpermissive -Wno-error=catch-value";
|
||||
NIX_LDFLAGS = "-lblkid";
|
||||
|
||||
cmakeFlags = [
|
||||
cmakeFlags = [
|
||||
"-DFACTER_RUBY=${ruby}/lib/libruby.so"
|
||||
"-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-copy";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ boost cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
|
||||
|
||||
|
||||
@@ -30,8 +30,6 @@ stdenv.mkDerivation rec {
|
||||
] ++ stdenv.lib.optional (libmysqlclient != null) libmysqlclient
|
||||
++ stdenv.lib.optional stdenv.isLinux systemd;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
@@ -95,9 +93,7 @@ stdenv.mkDerivation rec {
|
||||
(mkFlag (hadoop != null) "omhdfs")
|
||||
(mkFlag (rdkafka != null) "omkafka")
|
||||
(mkFlag (libmongo-client != null) "ommongodb")
|
||||
(mkFlag (czmq != null) "imzmq3")
|
||||
(mkFlag (czmq != null) "imczmq")
|
||||
(mkFlag (czmq != null) "omzmq3")
|
||||
(mkFlag (czmq != null) "omczmq")
|
||||
(mkFlag (rabbitmq-c != null) "omrabbitmq")
|
||||
(mkFlag (hiredis != null) "omhiredis")
|
||||
|
||||
@@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./dont_static_link.patch ];
|
||||
|
||||
# fix build with gcc9
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
|
||||
|
||||
Reference in New Issue
Block a user