Merge pull request #242466 from risicle/ris-fortify3-disable-various

disable `fortify3` hardening flag on various packages
This commit is contained in:
Mauricio Collares 2023-07-12 13:49:08 +01:00 committed by GitHub
commit e2622eee41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 42 additions and 2 deletions

View File

@ -51,8 +51,12 @@ stdenv.mkDerivation rec {
# similarly here
"-DCMAKE_INSTALL_LOCALSTATEDIR=/var/lib/mympd"
];
# See https://github.com/jcorporation/myMPD/issues/315
hardeningDisable = [ "strictoverflow" ];
hardeningDisable = [
# See https://github.com/jcorporation/myMPD/issues/315
"strictoverflow"
# causes redefinition of _FORTIFY_SOURCE
"fortify3"
];
meta = {
homepage = "https://jcorporation.github.io/myMPD";

View File

@ -87,6 +87,9 @@ mkDerivation rec {
"-DNO_SHIBBOLETH=1" # allows to compile without qtwebkit
];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
postBuild = ''
make doc-man
'';

View File

@ -66,6 +66,9 @@ stdenv.mkDerivation rec {
})
];
# https://github.com/root-project/root/issues/13216
hardeningDisable = [ "fortify3" ];
preConfigure = ''
# binutils 2.37 fixes
fixupList=(

View File

@ -149,6 +149,9 @@ in
++ extraConfigureFlags
;
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
# Packages to prefix to the Apptainer/Singularity container runtime default PATH
# Use overrideAttrs to override
defaultPathInputs = [

View File

@ -86,6 +86,9 @@ stdenv.mkDerivation rec {
"-DIGC_PREFERRED_LLVM_VERSION=${lib.getVersion llvm}"
];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
homepage = "https://github.com/intel/intel-graphics-compiler";
description = "LLVM-based compiler for OpenCL targeting Intel Gen graphics hardware";

View File

@ -60,6 +60,9 @@ stdenv.mkDerivation rec {
"-DGVM_RUN_DIR=${placeholder "out"}/run/gvm"
];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "Libraries module for the Greenbone Vulnerability Management Solution";
homepage = "https://github.com/greenbone/gvm-libs";

View File

@ -52,6 +52,9 @@ stdenv.mkDerivation rec {
"--enable-sage"
];
# https://github.com/linbox-team/linbox/issues/304
hardeningDisable = [ "fortify3" ];
doCheck = true;
enableParallelBuilding = true;

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
makeFlags = [ "prefix=${placeholder "out"}"];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "The advanced PC speaker beeper";
homepage = "https://github.com/spkr-beep/beep";

View File

@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "ChromiumOS libevdev. Renamed to avoid conflicts with the standard libevdev found in Linux distros";
license = licenses.bsd3;

View File

@ -35,6 +35,9 @@ let
};
nativeBuildInputs = [ cmake ninja flex bison ];
# https://github.com/nanomq/idl-serial/issues/36
hardeningDisable = [ "fortify3" ];
};
in stdenv.mkDerivation (finalAttrs: {

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation {
doCheck = true;
checkPhase = "./hash_extender --test";
# https://github.com/iagox86/hash_extender/issues/26
hardeningDisable = [ "fortify3" ];
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
installPhase = ''

View File

@ -58,6 +58,9 @@ stdenv.mkDerivation rec {
"-DDISABLE_LTO=ON"
];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "yubihsm-shell and libyubihsm";
homepage = "https://github.com/Yubico/yubihsm-shell";

View File

@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
patchShebangs platform2_preinstall.sh
'';
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
installPhase = ''
./platform2_preinstall.sh ${version} $out/include/chromeos