about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch')
-rw-r--r--nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch b/nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch
new file mode 100644
index 000000000000..d11ad1299f0e
--- /dev/null
+++ b/nixpkgs/pkgs/servers/gpsd/sconstruct-env-fixes.patch
@@ -0,0 +1,16 @@
+diff -Naur gpsd-3.22.orig/SConscript gpsd-3.22/SConscript
+--- gpsd-3.22.orig/SConscript	2021-01-09 05:35:30.000000000 +0300
++++ gpsd-3.22/SConscript	2021-02-25 21:06:47.921044438 +0300
+@@ -518,9 +518,11 @@
+     'CWRAPPERS_CONFIG_DIR',      # pkgsrc
+     # Variables used in testing
+     'WRITE_PAD',       # So we can test WRITE_PAD values on the fly.
++    'LD_LIBRARY_PATH', # Allows running 'scons check' without 'chrpath'
++    'XML_CATALOG_FILES', # Enables validating the manual with 'xmlto' using nix build system
+ )
+ 
+-envs = {}
++envs = os.environ
+ for var in import_env:
+     if var in os.environ:
+         envs[var] = os.environ[var]