From a10ea767c403055439be761047cbfc07aedb358e Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Mon, 1 Jul 2024 14:00:08 +0000 Subject: [PATCH] epics-base: re-disable fortify3 on older epics --- pkgs/epnix/epics-base/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/epnix/epics-base/default.nix b/pkgs/epnix/epics-base/default.nix index 58524070..2d61ae84 100644 --- a/pkgs/epnix/epics-base/default.nix +++ b/pkgs/epnix/epics-base/default.nix @@ -136,6 +136,15 @@ in # TODO: Some tests fail doCheck = false; + # _FORTIFY_SOURCE=3 detects a false-positive buffer overflow in some cases: + # *** buffer overflow detected ***: terminated + # + # EPICS automatically falls back to _FORTIFY_SOURCE=2 since 7.0.8.1 + # Being tracked in https://github.com/epics-base/epics-base/issues/514, hopefully with a fix + # in EPICS 7.0.9 + + hardeningDisable = optional (versionOlder version "7.0.8.1") "fortify3"; + meta = { description = "The Experimental Physics and Industrial Control System"; homepage = "https://epics-controls.org/";