bugzilla: 140563, nptl doesnt act like linuxthreads; threads have no PIDs

This commit is contained in:
cturner 2004-12-01 18:53:51 +00:00
parent 542ab8a1f8
commit e98c83fc63
2 changed files with 23 additions and 1 deletions

15
perl-5.8.0-nptlhint.patch Normal file
View File

@ -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="$*"

View File

@ -5,7 +5,7 @@
%define multilib_64_archs x86_64 s390x ppc64 sparc64 %define multilib_64_archs x86_64 s390x ppc64 sparc64
%define perlver 5.8.5 %define perlver 5.8.5
%define perlrel 10 %define perlrel 11
%define perlepoch 3 %define perlepoch 3
Provides: perl(:WITH_PERLIO) Provides: perl(:WITH_PERLIO)
@ -101,6 +101,8 @@ Patch24: perl-5.8.3-empty-rpath.patch
Patch100: perl-5.8.1-fpic.patch Patch100: perl-5.8.1-fpic.patch
Patch101: perl-5.8.0-libdir64.patch Patch101: perl-5.8.0-libdir64.patch
Patch32002: perl-5.8.0-nptlhint.patch
# module updatesd # module updatesd
# Patch202: perl-5.8.0-Safe2.09.patch # Patch202: perl-5.8.0-Safe2.09.patch
@ -221,6 +223,8 @@ more secure running of setuid perl scripts.
%patch101 -p1 %patch101 -p1
%endif %endif
%patch32002 -p1
find . -name \*.orig -exec rm -fv {} \; find . -name \*.orig -exec rm -fv {} \;
%build %build
@ -405,6 +409,9 @@ find $RPM_BUILD_ROOT%{_libdir}/perl* \
%endif %endif
%changelog %changelog
* Wed Dec 1 2004 Chip Turner <cturner@redhat.com> 3:5.8.5-11
- bugzilla: 140563, nptl doesn't act like linuxthreads; threads have no PIDs
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 3:5.8.5-10 * Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 3:5.8.5-10
- rebuild against db-4.3.21. - rebuild against db-4.3.21.