glibc/glibc-RHEL-86018-2.patch
Patsy Griffin 68ae5c20b5 libio: Fix a deadlock after fork in popen
libio: Correctly link tst-popen-fork against libpthread (RHEL-86018)

Resolves: RHEL-86018
2025-04-30 12:26:16 -04:00

30 lines
952 B
Diff

commit 6a290b2895b77be839fcb7c44a6a9879560097ad
Author: Arjun Shankar <arjun@redhat.com>
Date: Fri Oct 25 09:33:45 2024 +0200
libio: Correctly link tst-popen-fork against libpthread
tst-popen-fork failed to build for Hurd due to not being linked with
libpthread. This commit fixes that.
Tested with build-many-glibcs.py for i686-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Conflicts:
libio/Makefile
(Usual conflict when adding tests due to missing backports.)
diff -Nrup a/libio/Makefile b/libio/Makefile
--- a/libio/Makefile 2025-04-23 16:41:58.028210552 -0400
+++ b/libio/Makefile 2025-04-23 16:41:30.195050679 -0400
@@ -67,6 +67,8 @@ tests = tst_swprintf tst_wprintf tst_sws
tst-ftell-append tst-fputws tst-bz22415 tst-fgetc-after-eof \
tst-wfile-sync
+$(objpfx)tst-popen-fork: $(shared-thread-library)
+
tests-internal = tst-vtables tst-vtables-interposed
ifeq (yes,$(build-shared))