diff -r 3d7d8c68b2fc -r 442a711da911 perl-net/perl-net.patch --- a/perl-net/perl-net.patch Tue Sep 20 17:37:48 2011 +0200 +++ b/perl-net/perl-net.patch Wed Sep 21 13:46:39 2011 +0200 @@ -1,17 +1,50 @@ -Index: Net-Packet-3.26/Makefile.PL ---- Net-Packet-3.26/Makefile.PL.orig 2006-12-16 16:26:26 +0100 -+++ Net-Packet-3.26/Makefile.PL 2008-01-01 22:05:18 +0100 -@@ -14,7 +14,6 @@ - Net::Libdnet => 0, +Index: Net-IRC-0.79/Makefile.PL +--- Net-IRC-0.79/Makefile.PL.orig 2009-12-23 18:05:52.000000000 +0100 ++++ Net-IRC-0.79/Makefile.PL 2010-12-19 13:16:21.000000000 +0100 +@@ -4,29 +4,6 @@ + # the contents of the Makefile that is written. + + exit 0 if $ENV{AUTOMATED_TESTING}; +-my $ok = 'I acknowledge that Net::IRC is unsupported and I wish to proceed.'; +-my $warning = <); +-die "Refusing to install due to lack of confirmation" unless $acceptance eq $ok; +- + + WriteMakefile( + 'NAME' => 'Net::IRC', +Index: Net-Packet-3.27/Makefile.PL +--- Net-Packet-3.27/Makefile.PL.orig 2009-11-09 18:58:29.000000000 +0100 ++++ Net-Packet-3.27/Makefile.PL 2010-12-19 13:15:40.000000000 +0100 +@@ -15,7 +15,6 @@ Time::HiRes => 0, Net::IPv6Addr => 0, + Net::IPv4Addr => 0, - Socket6 => 0, Bit::Vector => 0, }, ABSTRACT_FROM => 'lib/Net/Packet.pm', -Index: Net-Patricia-1.014/libpatricia/patricia.c ---- Net-Patricia-1.014/libpatricia/patricia.c.orig 2005-12-07 21:55:39 +0100 -+++ Net-Patricia-1.014/libpatricia/patricia.c 2008-01-01 22:05:18 +0100 +Index: Net-Patricia-1.15/libpatricia/patricia.c +--- Net-Patricia-1.15/libpatricia/patricia.c.orig 2009-04-19 06:28:15.000000000 +0200 ++++ Net-Patricia-1.15/libpatricia/patricia.c 2010-12-19 13:15:40.000000000 +0100 @@ -38,24 +38,24 @@ /* prefix_tochar * convert prefix information to bytes @@ -119,9 +152,9 @@ int i, j, r; assert (patricia); -Index: Net-Patricia-1.014/libpatricia/patricia.h ---- Net-Patricia-1.014/libpatricia/patricia.h.orig 2005-12-07 21:54:52 +0100 -+++ Net-Patricia-1.014/libpatricia/patricia.h 2008-01-01 22:05:18 +0100 +Index: Net-Patricia-1.15/libpatricia/patricia.h +--- Net-Patricia-1.15/libpatricia/patricia.h.orig 2009-04-19 06:28:15.000000000 +0200 ++++ Net-Patricia-1.15/libpatricia/patricia.h 2010-12-19 13:15:40.000000000 +0100 @@ -15,10 +15,10 @@ #ifndef _PATRICIA_H #define _PATRICIA_H @@ -174,21 +207,21 @@ } patricia_tree_t; Index: Net-Pcap-0.16/Makefile.PL ---- Net-Pcap-0.16/Makefile.PL.orig 2007-12-24 00:06:15 +0100 -+++ Net-Pcap-0.16/Makefile.PL 2008-01-01 22:08:20 +0100 +--- Net-Pcap-0.16/Makefile.PL.orig 2007-12-24 00:06:15.000000000 +0100 ++++ Net-Pcap-0.16/Makefile.PL 2010-12-19 13:15:40.000000000 +0100 @@ -23,7 +23,8 @@ } else { $options{CCFLAGS} = '-Wall -Wwrite-strings' if $Config{ccname} eq 'gcc' and $] >= 5.006; - $options{LIBS} = '-lpcap'; -+ $options{INC} = '-I@l_prefix@/include'; -+ $options{LIBS} = '-L@l_prefix@/lib -lpcap'; ++ $options{INC} = '-I/openpkg/include'; ++ $options{LIBS} = '-L/openpkg/lib -lpcap'; } for my $arg (@ARGV) { Index: Net-Pcap-0.16/Pcap.xs ---- Net-Pcap-0.16/Pcap.xs.orig 2008-01-01 05:22:22 +0100 -+++ Net-Pcap-0.16/Pcap.xs 2008-01-01 22:05:18 +0100 +--- Net-Pcap-0.16/Pcap.xs.orig 2008-01-01 05:22:22.000000000 +0100 ++++ Net-Pcap-0.16/Pcap.xs 2010-12-19 13:15:40.000000000 +0100 @@ -33,7 +33,7 @@ #define NEED_sv_2pv_nolen 1 #include "ppport.h" @@ -198,3 +231,73 @@ #ifdef _CYGWIN #include +Index: Net-RabbitMQ-0.0.4/Makefile.PL +--- Net-RabbitMQ-0.0.4/Makefile.PL.orig 2009-11-12 21:15:45.000000000 +0100 ++++ Net-RabbitMQ-0.0.4/Makefile.PL 2010-12-19 13:15:40.000000000 +0100 +@@ -2,12 +2,16 @@ + use ExtUtils::MakeMaker 5.16 ; + use Config ; + +-my @parts = qw/api connection debug framing mem socket table/; +-my $cfiles = join(' ', map { "librabbitmq/amqp_$_.c" } @parts); +- + WriteMakefile( + NAME => 'Net::RabbitMQ', + VERSION_FROM => 'RabbitMQ.pm', +- OBJECT => "RabbitMQ.o $cfiles", ++ 'MYEXTLIB' => 'librabbitmq/librabbitmq$(LIB_EXT)', ++ OBJECT => "RabbitMQ.o", + ); + ++sub MY::postamble { ++' ++$(MYEXTLIB): librabbitmq/Makefile ++ cd librabbitmq && $(MAKE) $(PASTHRU) ++'; ++} +Index: Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL +--- Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL.orig 2010-12-19 13:15:40.000000000 +0100 ++++ Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL 2010-12-19 13:15:40.000000000 +0100 +@@ -0,0 +1,22 @@ ++ ++use ExtUtils::MakeMaker; ++ ++$Verbose = 1; ++ ++WriteMakefile( ++ NAME => 'Net::RabbitMQ::librabbitmq', ++ SKIP => [ qw(all static static_lib dynamic dynamic_lib test) ], ++ clean => { 'FILES' => 'librabbitmq$(LIB_EXT)' }, ++); ++ ++sub MY::top_targets { ++' ++all :: static ++test :: ++static :: librabbitmq$(LIB_EXT) ++librabbitmq$(LIB_EXT): $(O_FILES) ++ $(AR) cr librabbitmq$(LIB_EXT) $(O_FILES) ++ $(RANLIB) librabbitmq$(LIB_EXT) ++ ++'; ++} +Index: Net-RabbitMQ-0.0.4/librabbitmq/amqp.h +--- Net-RabbitMQ-0.0.4/librabbitmq/amqp.h.orig 2009-12-19 08:59:44.000000000 +0100 ++++ Net-RabbitMQ-0.0.4/librabbitmq/amqp.h 2010-12-19 13:15:40.000000000 +0100 +@@ -5,6 +5,9 @@ + extern "C" { + #endif + ++#include ++#include ++ + typedef int amqp_boolean_t; + typedef uint32_t amqp_method_number_t; + typedef uint32_t amqp_flags_t; +Index: Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h +--- Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h.orig 2009-11-12 21:15:45.000000000 +0100 ++++ Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h 2010-12-19 13:15:40.000000000 +0100 +@@ -1,2 +1,3 @@ ++#undef VERSION + #define VERSION "0.0.1" +