X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-test-noproc.patch;h=8967e770c59696063ae9dbec0ab53cfbe66f24d1;hb=ab73d51cc96a53d341b2401cb6778fc42809fceb;hp=9f6337f766003f9bc3f4f7416ddfc38ec89722a0;hpb=443951d5c1a9768c30300fe9a114733f82e18103;p=packages%2Fperl.git diff --git a/perl-test-noproc.patch b/perl-test-noproc.patch index 9f6337f..8967e77 100644 --- a/perl-test-noproc.patch +++ b/perl-test-noproc.patch @@ -1,21 +1,22 @@ ---- perl-5.8.2/ext/threads/t/join.t.orig Tue Sep 30 19:10:32 2003 -+++ perl-5.8.2/ext/threads/t/join.t Mon Dec 8 14:49:12 2003 -@@ -93,6 +93,10 @@ +--- perl-5.12.0/dist/threads/t/join.t.orig Tue Sep 30 19:10:32 2003 ++++ perl-5.12.0/dist/threads/t/join.t Mon Dec 8 14:49:12 2003 +@@ -118,6 +118,10 @@ # We parse ps output so this is OS-dependent. if ($^O eq 'linux') { -+ if (! -d "/proc/$$") { -+ # proc not mounted? skip. -+ skip("\$0 check: /proc not mounted?"); -+ } else { - # First modify $0 in a subthread. - print "# mainthread: \$0 = $0\n"; - threads->new( sub { -@@ -123,6 +127,7 @@ - } else { - skip("\$0 check: opening 'ps -f |' failed: $!"); - } -+ } ++ if (! -d "/proc/$$") { ++ # proc not mounted? skip. ++ skip("\$0 check: /proc not mounted?"); ++ } else { + # First modify $0 in a subthread. + #print "# mainthread: \$0 = $0\n"; + threads->create(sub{ #print "# subthread: \$0 = $0\n"; +@@ -148,6 +152,7 @@ + } else { + skip("\$0 check: opening 'ps -f |' failed: $!"); + } ++ } } else { - skip("\$0 check: only on Linux"); + skip("\$0 check: only on Linux"); } +