systemd: suppress certain warnings to compile under gcc8

This commit is contained in:
Patrick Hilhorst 2018-05-09 22:34:04 +02:00
parent c10842fe0b
commit 3a395ccb57
No known key found for this signature in database
GPG Key ID: 589BB0A8DAFEF2B2

View File

@ -17,6 +17,7 @@ let
pythonLxmlEnv = buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]);
in stdenv.mkDerivation rec {
# To whoever updates this to 239: check the todo on line 173.
version = "238";
name = "systemd-${version}";
@ -166,6 +167,12 @@ in stdenv.mkDerivation rec {
"-USYSTEMD_CGROUP_AGENT_PATH" "-DSYSTEMD_CGROUP_AGENT_PATH=\"/run/current-system/systemd/lib/systemd/systemd-cgroups-agent\""
"-USYSTEMD_BINARY_PATH" "-DSYSTEMD_BINARY_PATH=\"/run/current-system/systemd/lib/systemd/systemd\""
# Temporary flags to get this to compile under GCC8.
# TODO when updating (to systemd 239): remove this.
"-Wno-maybe-uninitialized"
"-Wno-error=format-truncation"
];
postInstall = ''