Subversion Repositories pike-old

Compare Revisions

Ignore whitespace Rev 9 → 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: 00list
===================================================================
--- 00list (revision 9)
+++ 00list (revision 20)
@@ -4,3 +4,4 @@
05_install.pike
07_dynamic_module_makefile.in-libgcc
10_misplaced_MAXPATHLEN
+11_pthread_stub