forked from pool/coreutils
Dirk Mueller
2b6b7ce591
- coreutils-tests-workaround-make-fdleak.patch: Add patch to work around a GNU make bug which leaks file descriptors when using the jobserver; this makes some tests fail on OBS. - coreutils.spec: Reference the patch. OBS-URL: https://build.opensuse.org/request/show/1030521 OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=342
26 lines
854 B
Diff
26 lines
854 B
Diff
---
|
|
tests/init.sh | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
Index: tests/init.sh
|
|
===================================================================
|
|
--- tests/init.sh.orig
|
|
+++ tests/init.sh
|
|
@@ -685,6 +685,16 @@ compare ()
|
|
}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
+# OpenSUSE/OSC workaround.
|
|
+# GNU make 4.3.90 leaks a lot of file descriptors when using the jobserver.
|
|
+# Close all of them pointing to files matching '/tmp/Gm*'.
|
|
+p=$$
|
|
+for n in $(find /proc/$p/fd -lname '/tmp/Gm*' -printf '%P\n'); do
|
|
+ exec {n}>&-
|
|
+done
|
|
+# -----------------------------------------------------------------------------
|
|
+
|
|
+# -----------------------------------------------------------------------------
|
|
|
|
# If you want to override the testdir_prefix_ function,
|
|
# or to add more utility functions, use this file.
|