==== Changes ([http://ports.haiku-files.org/browser/haikuports/trunk/dev-lang/perl/perl-5.10.1.diff patch]) ====

The changes for 5.10.0 were applied upstream, so the following issues were caused by changes in haiku.

{{{lib/File/Temp/t/lock.t}}}:
 - O_EXLOCK is defined in haiku, but not implemented - so we have to skip corresponding tests.
{{{lib/File/Temp.pm}}}:
 - haiku seems to not maintain the link count of stat as is done on unix (probably because of BFS not supporting hard links at all?). 
   We need to bypass a subcheck in unlink0() as a result.
{{{t/run/exit.t}}}:
 - passing $!^CHILD_ERROR_NATIVE to the POSIX::W...-macros seems wrong, at least the documentation mentions invoking them on $?, which contains the munged, i.e. non-native value. This causes the test to work on haiku and shouldn't influence any other system. Another possibility would be that the perl documentation is simply wrong about that (i.e. it hasn't been adjusted since the introduction of $!^CHILD_ERROR_NATIVE with 5.10.0).

==== Configuring/Building ====

We must disallow the use of 'nm' to determine the list of available c-library symbols, as - because of symbol versioning in haiku's libroot - several symbols would be missing, e.g. stat(), fstat() and lstat().

{{{
./Configure -Dcf_email=zooey@hirschkaefer.de -Uusenm -de
make
make test
}}}

Replace email address with that of the porter.

==== Tests ====

Three tests fail:
 - {{{ext/Socket/t/socketpair.t}}}: Haiku doesn't support Unix datagram sockets yet.
 - {{{lib/Net/Ping/t/450_service.t}}}: Bug in TCP/network stack.
 - {{{lib/Net/Ping/t/510_ping_udp.t}}}: Probably a bug in UDP/network stack.

==== Install ====
{{{
make install
chmod a+x /boot/common/bin/perl
cd /boot/common/lib; ln -s perl5/5.10.1/BePC-haiku/CORE/libperl.so .
}}}

For some reason the perl executable isn't installed with executable permissions. The symlink /boot/common/lib/libperl.so is missing.
