glibc: add "/run/current-system/sw/bin" to the default search path returned by "getconf CS_PATH"

wip/yesman
Peter Simons 11 years ago
parent 2a0479fc48
commit aa2044099d
  1. 5
      pkgs/development/libraries/glibc/2.17/common.nix
  2. 6
      pkgs/development/libraries/glibc/2.17/fix_path_attribute_in_getconf.patch

@ -55,6 +55,11 @@ stdenv.mkDerivation ({
rfc3484_sort: Assertion `src->results[i].native == -1 ||
src->results[i].native == a2_native' failed." crashes. */
./glibc-rh739743.patch
/* The command "getconf CS_PATH" returns the default search path
"/bin:/usr/bin", which is inappropriate on NixOS machines. This
patch extends the search path by "/run/current-system/sw/bin". */
./fix_path_attribute_in_getconf.patch
];
postPatch = ''

@ -0,0 +1,6 @@
diff -ubr glibc-2.17-orig/sysdeps/unix/confstr.h glibc-2.17/sysdeps/unix/confstr.h
--- glibc-2.17-orig/sysdeps/unix/confstr.h 2013-06-03 22:01:44.829726968 +0200
+++ glibc-2.17/sysdeps/unix/confstr.h 2013-06-03 22:04:39.469376740 +0200
@@ -1 +1 @@
-#define CS_PATH "/bin:/usr/bin"
+#define CS_PATH "/run/current-system/sw/bin:/bin:/usr/bin"
Loading…
Cancel
Save