Subversion Repositories pike-old

Compare Revisions

Ignore whitespace Rev 19 → Rev 20

/trunk/debian/patches/11_pthread_stub.dpatch
0,0 → 1,32
#! /bin/sh
## 11_pthread_stub.dpatch by Magnus Holmgren <holmgren@debian.org>
##
## DP: Add check for stubbiness of pthread_atfork().
 
dpatch_patch() {
perl -pi - src/configure <<'END_PERL'
$already_patched = 1 if (/^\Q#if defined(__stub_pthread_atfork)\E/);
if (/\Qpthread_atfork(0,0,0)\E/ && !$already_patched) {
$found = 1; print <<'EOT';
#if defined(__stub_pthread_atfork) || defined(__stub___pthread_atfork)
#error pthread_atfork is just a stub
#endif
EOT
}
END { exit !$found }
END_PERL
}
 
dpatch_unpatch() {
perl -pi - src/configure <<'END_PERL'
if (/\Q#if defined(__stub_pthread_atfork)\E/ .. /#endif/) {
$found = 1; $_ = '';
}
END { exit !$found }
END_PERL
}
 
 
DPATCH_LIB_NO_DEFAULT=1
 
. /usr/share/dpatch/dpatch.lib.sh
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: patches/00list
===================================================================
--- patches/00list (revision 19)
+++ patches/00list (revision 20)
@@ -4,3 +4,4 @@
05_install.pike
07_dynamic_module_makefile.in-libgcc
10_misplaced_MAXPATHLEN
+11_pthread_stub
Index: changelog
===================================================================
--- changelog (revision 19)
+++ changelog (revision 20)
@@ -11,8 +11,11 @@
* Drop the versioned dependency on freeglut3-dev (>= 2.2.0-6.1) for
alpha and hppa since even sarge has 2.2.0-8.
* Correct doc-base section according to new section list.
+ * 11_pthread_stub.dpatch: Make sure configure doesn't think
+ pthread_atfork() works just because it exists, when it's in fact a
+ stub. (Closes: #462998). Thanks to Samuel Thibault.
- -- Magnus Holmgren <holmgren@debian.org> Sat, 22 Dec 2007 15:45:42 +0100
+ -- Magnus Holmgren <holmgren@debian.org> Fri, 09 May 2008 21:11:28 +0200
pike7.6 (7.6.112-1) unstable; urgency=low