bsc: disable hardening in some packages

This commit is contained in:
Rodrigo Arias 2021-04-21 19:42:37 +02:00
parent a4b8f8e94b
commit 760787858a
10 changed files with 15 additions and 2 deletions

View File

@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib libuuid popt elfutils python3 swig4 ncurses breakpointHook ]; buildInputs = [ glib libuuid popt elfutils python3 swig4 ncurses breakpointHook ];
hardeningDisable = [ "all" ];
configureFlags = [ configureFlags = [
"--enable-python-plugins" "--enable-python-plugins"

View File

@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
patches = [ ./use-command.patch ]; patches = [ ./use-command.patch ];
enableParallelBuilding = true; enableParallelBuilding = true;
hardeningDisable = [ "all" ];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -49,7 +49,9 @@ stdenv.mkDerivation rec {
# Error with -D_FORTIFY_SOURCE=2, see https://bugs.gentoo.org/636604: # Error with -D_FORTIFY_SOURCE=2, see https://bugs.gentoo.org/636604:
# /build/source/compiler-rt/lib/tsan/dd/dd_interceptors.cpp:225:20: # /build/source/compiler-rt/lib/tsan/dd/dd_interceptors.cpp:225:20:
# error: redefinition of 'realpath' # error: redefinition of 'realpath'
hardeningDisable = [ "fortify" ]; # Requires disabling the "fortify" set of flags, however, for performance we
# disable all:
hardeningDisable = [ "all" ];
cmakeBuildType = if enableDebug then "Debug" else "Release"; cmakeBuildType = if enableDebug then "Debug" else "Release";

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
sed -i "s@/bin/rm@rm@g" $(find . -name Makefile) sed -i "s@/bin/rm@rm@g" $(find . -name Makefile)
''; '';
hardeningDisable = [ "format" ]; hardeningDisable = [ "all" ];
enableParallelBuilding = false; enableParallelBuilding = false;

View File

@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
buildInputs = [ perl gfortran openssh hwloc libfabric ]; buildInputs = [ perl gfortran openssh hwloc libfabric ];
hardeningDisable = [ "all" ];
# doCheck = true; # Fails # doCheck = true; # Fails

View File

@ -76,6 +76,8 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
hardeningDisable = [ "all" ];
postInstall = '' postInstall = ''
rm -f $out/lib/*.la rm -f $out/lib/*.la
''; '';

View File

@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
enableParallelBuilding = true; enableParallelBuilding = true;
buildInputs = [ mpi ]; buildInputs = [ mpi ];
hardeningDisable = [ "all" ];
configureFlags = [ configureFlags = [
"CC=${mpi}/bin/mpicc" "CC=${mpi}/bin/mpicc"
"CXX=${mpi}/bin/mpicxx" "CXX=${mpi}/bin/mpicxx"

View File

@ -24,4 +24,6 @@ stdenv.mkDerivation rec {
rev = "6b11368ea522cd7095cfcf163831b8285faeee7e"; rev = "6b11368ea522cd7095cfcf163831b8285faeee7e";
sha256 = "0519lb1rinhzkk0iy5cjjiqnk1bzhnnzhfigj9ac2c3wl0zcsrvy"; sha256 = "0519lb1rinhzkk0iy5cjjiqnk1bzhnnzhfigj9ac2c3wl0zcsrvy";
}; };
hardeningDisable = [ "all" ];
} }

View File

@ -22,4 +22,5 @@ stdenv.mkDerivation rec {
url = "ssh://git@bscpm03.bsc.es/interoperability/tampi"; url = "ssh://git@bscpm03.bsc.es/interoperability/tampi";
ref = "master"; ref = "master";
}; };
hardeningDisable = [ "all" ];
} }

View File

@ -93,6 +93,8 @@ let
"--with-jemalloc-prefix=nanos6_je_" "--with-jemalloc-prefix=nanos6_je_"
"--enable-stats" "--enable-stats"
]; ];
hardeningDisable = [ "all" ];
}); });
# ================================================================= # =================================================================