about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch')
-rw-r--r--pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch b/pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch
new file mode 100644
index 000000000000..313de0fa58c3
--- /dev/null
+++ b/pkgs/development/tools/misc/ccache/env-instead-of-compgen.patch
@@ -0,0 +1,18 @@
+diff --git a/test/run b/test/run
+index cbdd98f0..bc930200 100755
+--- a/test/run
++++ b/test/run
+@@ -346,11 +346,11 @@ expect_perm() {
+ }
+ 
+ reset_environment() {
+-    while IFS= read -r name; do
++    while IFS='=' read -r name value; do
+         if [[ $name =~ ^CCACHE_[A-Z0-9_]*$ ]]; then
+             unset $name
+         fi
+-    done < <(compgen -e)
++    done < <(env)
+ 
+     unset GCC_COLORS
+     unset TERM