torcs: re-enable -Wformat hardening
This commit is contained in:
parent
5711bfdefb
commit
ce0684a81a
1 changed files with 4 additions and 2 deletions
|
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/gcc6-isnan.patch";
|
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/gcc6-isnan.patch";
|
||||||
sha256 = "16scmq30vwb8429ah9d4ws0v1w6ai59lvn7hcgnvfzyap42ry876";
|
sha256 = "16scmq30vwb8429ah9d4ws0v1w6ai59lvn7hcgnvfzyap42ry876";
|
||||||
})
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/format-argument.patch";
|
||||||
|
sha256 = "04advcx88yh23ww767iysydzhp370x7cqp2wf9hk2y1qvw7mxsja";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -28,8 +32,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installTargets = "install datainstall";
|
installTargets = "install datainstall";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/torcs \
|
wrapProgram $out/bin/torcs \
|
||||||
--prefix LD_LIBRARY_PATH : ${mesa}/lib
|
--prefix LD_LIBRARY_PATH : ${mesa}/lib
|
||||||
|
|
Loading…
Reference in a new issue