Files
nixpkgs/pkgs/by-name/gp/gpsd/sconstrict-rundir-fixes.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

21 lines
584 B
Diff

diff -Naur gpsd-3.25.orig/SConscript gpsd-3.25/SConscript
--- gpsd-3.25.orig/SConscript 2025-03-29 13:33:34
+++ gpsd-3.25/SConscript 2025-03-29 13:34:24
@@ -15,6 +15,7 @@
import os
import pickle
import re
+import platform
# replacement for functions from the commands module, which is deprecated.
import subprocess
import sys
@@ -399,7 +400,7 @@
def_group = "dialout"
# darwin and BSDs do not have /run, maybe others.
-if os.path.exists("/run"):
+if "BSD" in os.uname().sysname or platform.system() == "Darwin":
rundir = "/run"
else:
rundir = "/var/run"