From ce0684a81a2596a9a2b4a3072f7cb5ca01961bb7 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Sun, 22 Oct 2017 21:09:46 +0100 Subject: [PATCH] torcs: re-enable -Wformat hardening --- pkgs/games/torcs/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/games/torcs/default.nix b/pkgs/games/torcs/default.nix index e7c1c38fd15..3a4b8bdb021 100644 --- a/pkgs/games/torcs/default.nix +++ b/pkgs/games/torcs/default.nix @@ -15,6 +15,10 @@ stdenv.mkDerivation rec { url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/gcc6-isnan.patch"; sha256 = "16scmq30vwb8429ah9d4ws0v1w6ai59lvn7hcgnvfzyap42ry876"; }) + (fetchpatch { + url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/format-argument.patch"; + sha256 = "04advcx88yh23ww767iysydzhp370x7cqp2wf9hk2y1qvw7mxsja"; + }) ]; postPatch = '' @@ -28,8 +32,6 @@ stdenv.mkDerivation rec { installTargets = "install datainstall"; - hardeningDisable = [ "format" ]; - postInstall = '' wrapProgram $out/bin/torcs \ --prefix LD_LIBRARY_PATH : ${mesa}/lib