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
85
patches = [
86
./sconstruct-env-fixes.patch
0
87
88
# fix build with Python 3.12
89
(fetchpatch {
···
84
85
patches = [
86
./sconstruct-env-fixes.patch
87
+
./sconstrict-rundir-fixes.patch
88
89
# fix build with Python 3.12
90
(fetchpatch {
+21
pkgs/by-name/gp/gpsd/sconstrict-rundir-fixes.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff -Naur gpsd-3.25.orig/SConscript gpsd-3.25/SConscript
2
+
--- gpsd-3.25.orig/SConscript 2025-03-29 13:33:34
3
+
+++ gpsd-3.25/SConscript 2025-03-29 13:34:24
4
+
@@ -15,6 +15,7 @@
5
+
import os
6
+
import pickle
7
+
import re
8
+
+import platform
9
+
# replacement for functions from the commands module, which is deprecated.
10
+
import subprocess
11
+
import sys
12
+
@@ -399,7 +400,7 @@
13
+
def_group = "dialout"
14
+
15
+
# darwin and BSDs do not have /run, maybe others.
16
+
-if os.path.exists("/run"):
17
+
+if "BSD" in os.uname().sysname or platform.system() == "Darwin":
18
+
rundir = "/run"
19
+
else:
20
+
rundir = "/var/run"
21
+