tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gpsd: set rundir deterministically for reproducible builds
3pleX-dev
9 months ago
116ca6b9
0c58dc37
+22
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
gp
gpsd
package.nix
sconstrict-rundir-fixes.patch
+1
pkgs/by-name/gp/gpsd/package.nix
···
84
84
85
85
patches = [
86
86
./sconstruct-env-fixes.patch
87
87
+
./sconstrict-rundir-fixes.patch
87
88
88
89
# fix build with Python 3.12
89
90
(fetchpatch {
+21
pkgs/by-name/gp/gpsd/sconstrict-rundir-fixes.patch
···
1
1
+
diff -Naur gpsd-3.25.orig/SConscript gpsd-3.25/SConscript
2
2
+
--- gpsd-3.25.orig/SConscript 2025-03-29 13:33:34
3
3
+
+++ gpsd-3.25/SConscript 2025-03-29 13:34:24
4
4
+
@@ -15,6 +15,7 @@
5
5
+
import os
6
6
+
import pickle
7
7
+
import re
8
8
+
+import platform
9
9
+
# replacement for functions from the commands module, which is deprecated.
10
10
+
import subprocess
11
11
+
import sys
12
12
+
@@ -399,7 +400,7 @@
13
13
+
def_group = "dialout"
14
14
+
15
15
+
# darwin and BSDs do not have /run, maybe others.
16
16
+
-if os.path.exists("/run"):
17
17
+
+if "BSD" in os.uname().sysname or platform.system() == "Darwin":
18
18
+
rundir = "/run"
19
19
+
else:
20
20
+
rundir = "/var/run"
21
21
+