git.iko.soy/typeable/nixpkgs
on master help sign in
Fixes the lldpd service failing to start

Backports a patch that will be included in later upstream versions. The patch removes a call to /bin/mkdir.

commit8a03ec0a32f1ef97a1290a0f0ad75e1f33f1fa46 authorJesper Geertsen Jonsson <yesbox@users.noreply.github.com> dateSat 8 Sep 2018, 15:04 (8 years ago) parent6960a96
1 file changed+11−1
pkgs/tools/networking/lldpd/default.nix+11−1
pkgs/tools/networking/lldpd/default.nix+11−1
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, pkgconfig, removeReferencesTo
1+{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, removeReferencesTo
22, libevent, readline, net_snmp }:
33
44stdenv.mkDerivation rec {
@@ -10,6 +10,16 @@ stdenv.mkDerivation rec {
1010 sha256 = "0lgiappbjm95r1m0xyxb6gzz4izcjixknbzq3s7pbqbsmhm642s5";
1111 };
1212
13+ patches = [
14+ # Fixes #44507: The service fails to start due to a /bin/mkdir call.
15+ # Should be included in the upstream release after 1.0.1.
16+ # Please remove this patch when updating and ensure the NixOS service starts.
17+ (fetchpatch {
18+ url = "https://github.com/vincentbernat/lldpd/commit/90a50860ebdcdeb5b7dc85790b18bed23c97ec32.patch";
19+ sha256 = "005i4ldc4mfzfmvbnid6849ax2i93mx8nkyf8vjv8k73bfpdza8z";
20+ })
21+ ];
22+
1323 configureFlags = [
1424 "--localstatedir=/var"
1525 "--enable-pie"