tlsrpt-reporter: apply patch for fetcher issue when no db exists (#418434)

authored by Martin Weinelt and committed by GitHub b18bbc99 6a3d2917

+10
+1
nixos/tests/tlsrpt.nix
··· 31 31 machine.wait_for_file("/run/tlsrpt/collectd.sock") 32 32 machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-collectd | grep -Pq 'Database .* setup finished'") 33 33 machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-reportd | grep -Pq 'Database .* setup finished'") 34 + machine.wait_until_succeeds("journalctl -o cat -u tlsrpt-reportd | grep -Pq 'Fetcher .* finished'") 34 35 35 36 # Enabling postfix should put sendmail as the sendmail setting 36 37 machine.succeed("grep -q sendmail_script=sendmail /etc/tlsrpt/reportd.cfg")
+9
pkgs/by-name/tl/tlsrpt-reporter/package.nix
··· 5 5 installShellFiles, 6 6 python3, 7 7 fetchFromGitHub, 8 + fetchpatch, 8 9 nixosTests, 9 10 }: 10 11 ··· 24 25 tag = "v${version}"; 25 26 hash = "sha256-IH8hJX9l+YonqOuszcMome4mjdIaedgGNIptxTyH1ng="; 26 27 }; 28 + 29 + patches = [ 30 + (fetchpatch { 31 + # https://github.com/sys4/tlsrpt-reporter/issues/43 32 + url = "https://github.com/sys4/tlsrpt-reporter/commit/32d00c13508dd7f9695b77e253e88c88dc838fbd.patch"; 33 + hash = "sha256-RUNF86RkTu6DLv6/7eaY//fFB8kGzmZxQ70kdNpLxj8="; 34 + }) 35 + ]; 27 36 28 37 nativeBuildInputs = [ 29 38 asciidoctor