From e98c83fc63c85c72ea2901ba5d617a3dce49eb35 Mon Sep 17 00:00:00 2001 From: cturner Date: Wed, 1 Dec 2004 18:53:51 +0000 Subject: [PATCH] bugzilla: 140563, nptl doesnt act like linuxthreads; threads have no PIDs --- perl-5.8.0-nptlhint.patch | 15 +++++++++++++++ perl.spec | 9 ++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 perl-5.8.0-nptlhint.patch diff --git a/perl-5.8.0-nptlhint.patch b/perl-5.8.0-nptlhint.patch new file mode 100644 index 0000000..fbab567 --- /dev/null +++ b/perl-5.8.0-nptlhint.patch @@ -0,0 +1,15 @@ +Remove the THREADS_HAVE_PIDS hint for NTPL-enabled Linux +systems. Otherwise ppids are cached too aggressively, +resulting in broken behavior. + +--- perl-5.8.0/hints/linux.sh.nptl 2004-12-01 12:38:16.021664783 -0500 ++++ perl-5.8.0/hints/linux.sh 2004-12-01 12:38:28.213470553 -0500 +@@ -249,7 +249,7 @@ + cat > UU/usethreads.cbu <<'EOCBU' + case "$usethreads" in + $define|true|[yY]*) +- ccflags="-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS $ccflags" ++ ccflags="-D_REENTRANT -D_GNU_SOURCE $ccflags" + set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` + shift + libswanted="$*" diff --git a/perl.spec b/perl.spec index 2088c59..454e77d 100644 --- a/perl.spec +++ b/perl.spec @@ -5,7 +5,7 @@ %define multilib_64_archs x86_64 s390x ppc64 sparc64 %define perlver 5.8.5 -%define perlrel 10 +%define perlrel 11 %define perlepoch 3 Provides: perl(:WITH_PERLIO) @@ -101,6 +101,8 @@ Patch24: perl-5.8.3-empty-rpath.patch Patch100: perl-5.8.1-fpic.patch Patch101: perl-5.8.0-libdir64.patch +Patch32002: perl-5.8.0-nptlhint.patch + # module updatesd # Patch202: perl-5.8.0-Safe2.09.patch @@ -221,6 +223,8 @@ more secure running of setuid perl scripts. %patch101 -p1 %endif +%patch32002 -p1 + find . -name \*.orig -exec rm -fv {} \; %build @@ -405,6 +409,9 @@ find $RPM_BUILD_ROOT%{_libdir}/perl* \ %endif %changelog +* Wed Dec 1 2004 Chip Turner 3:5.8.5-11 +- bugzilla: 140563, nptl doesn't act like linuxthreads; threads have no PIDs + * Thu Nov 11 2004 Jeff Johnson 3:5.8.5-10 - rebuild against db-4.3.21.