perl-net/perl-net.patch

changeset 372
442a711da911
parent 99
161326b4f1f9
     1.1 --- a/perl-net/perl-net.patch	Tue Sep 20 17:37:48 2011 +0200
     1.2 +++ b/perl-net/perl-net.patch	Wed Sep 21 13:46:39 2011 +0200
     1.3 @@ -1,17 +1,50 @@
     1.4 -Index: Net-Packet-3.26/Makefile.PL
     1.5 ---- Net-Packet-3.26/Makefile.PL.orig	2006-12-16 16:26:26 +0100
     1.6 -+++ Net-Packet-3.26/Makefile.PL	2008-01-01 22:05:18 +0100
     1.7 -@@ -14,7 +14,6 @@
     1.8 -       Net::Libdnet  => 0,
     1.9 +Index: Net-IRC-0.79/Makefile.PL
    1.10 +--- Net-IRC-0.79/Makefile.PL.orig	2009-12-23 18:05:52.000000000 +0100
    1.11 ++++ Net-IRC-0.79/Makefile.PL	2010-12-19 13:16:21.000000000 +0100
    1.12 +@@ -4,29 +4,6 @@
    1.13 + # the contents of the Makefile that is written.
    1.14 + 
    1.15 + exit 0 if $ENV{AUTOMATED_TESTING};
    1.16 +-my $ok = 'I acknowledge that Net::IRC is unsupported and I wish to proceed.';
    1.17 +-my $warning = <<WILLROBINSON;
    1.18 +---------------------------------------------------------------------------------
    1.19 +-********************************************************************************
    1.20 +-DANGER, WILL ROBINSON! DANGER!
    1.21 +-
    1.22 +-This module has been deprecated, abandoned, and is no longer supported. It has
    1.23 +-not seen active development in five years, and its original author has moved on.
    1.24 +-We *STRONGLY* recommend you port your code to either Bot::BasicBot or
    1.25 +-POE::Component::IRC. Please feel free to stop by irc.freenode.net/#perl for help
    1.26 +-making this transition. Or, if you insist on proceeding, please type the
    1.27 +-following line exactly as is and then press Enter:
    1.28 +-
    1.29 +-$ok
    1.30 +-********************************************************************************
    1.31 +---------------------------------------------------------------------------------
    1.32 +-WILLROBINSON
    1.33 +-
    1.34 +--t STDIN or die $warning;
    1.35 +-warn $warning;
    1.36 +-chomp(my $acceptance = <STDIN>);
    1.37 +-die "Refusing to install due to lack of confirmation" unless $acceptance eq $ok;
    1.38 +-
    1.39 + 
    1.40 + WriteMakefile(
    1.41 + 	      'NAME'  => 'Net::IRC',
    1.42 +Index: Net-Packet-3.27/Makefile.PL
    1.43 +--- Net-Packet-3.27/Makefile.PL.orig	2009-11-09 18:58:29.000000000 +0100
    1.44 ++++ Net-Packet-3.27/Makefile.PL	2010-12-19 13:15:40.000000000 +0100
    1.45 +@@ -15,7 +15,6 @@
    1.46         Time::HiRes   => 0,
    1.47         Net::IPv6Addr => 0,
    1.48 +       Net::IPv4Addr => 0,
    1.49  -      Socket6       => 0,
    1.50         Bit::Vector   => 0,
    1.51      },
    1.52      ABSTRACT_FROM => 'lib/Net/Packet.pm',
    1.53 -Index: Net-Patricia-1.014/libpatricia/patricia.c
    1.54 ---- Net-Patricia-1.014/libpatricia/patricia.c.orig	2005-12-07 21:55:39 +0100
    1.55 -+++ Net-Patricia-1.014/libpatricia/patricia.c	2008-01-01 22:05:18 +0100
    1.56 +Index: Net-Patricia-1.15/libpatricia/patricia.c
    1.57 +--- Net-Patricia-1.15/libpatricia/patricia.c.orig	2009-04-19 06:28:15.000000000 +0200
    1.58 ++++ Net-Patricia-1.15/libpatricia/patricia.c	2010-12-19 13:15:40.000000000 +0100
    1.59  @@ -38,24 +38,24 @@
    1.60   /* prefix_tochar
    1.61    * convert prefix information to bytes
    1.62 @@ -119,9 +152,9 @@
    1.63       int i, j, r;
    1.64   
    1.65       assert (patricia);
    1.66 -Index: Net-Patricia-1.014/libpatricia/patricia.h
    1.67 ---- Net-Patricia-1.014/libpatricia/patricia.h.orig	2005-12-07 21:54:52 +0100
    1.68 -+++ Net-Patricia-1.014/libpatricia/patricia.h	2008-01-01 22:05:18 +0100
    1.69 +Index: Net-Patricia-1.15/libpatricia/patricia.h
    1.70 +--- Net-Patricia-1.15/libpatricia/patricia.h.orig	2009-04-19 06:28:15.000000000 +0200
    1.71 ++++ Net-Patricia-1.15/libpatricia/patricia.h	2010-12-19 13:15:40.000000000 +0100
    1.72  @@ -15,10 +15,10 @@
    1.73   #ifndef _PATRICIA_H
    1.74   #define _PATRICIA_H
    1.75 @@ -174,21 +207,21 @@
    1.76   } patricia_tree_t;
    1.77   
    1.78  Index: Net-Pcap-0.16/Makefile.PL
    1.79 ---- Net-Pcap-0.16/Makefile.PL.orig	2007-12-24 00:06:15 +0100
    1.80 -+++ Net-Pcap-0.16/Makefile.PL	2008-01-01 22:08:20 +0100
    1.81 +--- Net-Pcap-0.16/Makefile.PL.orig	2007-12-24 00:06:15.000000000 +0100
    1.82 ++++ Net-Pcap-0.16/Makefile.PL	2010-12-19 13:15:40.000000000 +0100
    1.83  @@ -23,7 +23,8 @@
    1.84   }
    1.85   else {
    1.86       $options{CCFLAGS} = '-Wall -Wwrite-strings' if $Config{ccname} eq 'gcc' and $] >= 5.006;
    1.87  -    $options{LIBS}    = '-lpcap';
    1.88 -+    $options{INC}     = '-I@l_prefix@/include';
    1.89 -+    $options{LIBS}    = '-L@l_prefix@/lib -lpcap';
    1.90 ++    $options{INC}     = '-I/openpkg/include';
    1.91 ++    $options{LIBS}    = '-L/openpkg/lib -lpcap';
    1.92   }
    1.93   
    1.94   for my $arg (@ARGV) {
    1.95  Index: Net-Pcap-0.16/Pcap.xs
    1.96 ---- Net-Pcap-0.16/Pcap.xs.orig	2008-01-01 05:22:22 +0100
    1.97 -+++ Net-Pcap-0.16/Pcap.xs	2008-01-01 22:05:18 +0100
    1.98 +--- Net-Pcap-0.16/Pcap.xs.orig	2008-01-01 05:22:22.000000000 +0100
    1.99 ++++ Net-Pcap-0.16/Pcap.xs	2010-12-19 13:15:40.000000000 +0100
   1.100  @@ -33,7 +33,7 @@
   1.101   #define NEED_sv_2pv_nolen 1
   1.102   #include "ppport.h"
   1.103 @@ -198,3 +231,73 @@
   1.104   
   1.105   #ifdef _CYGWIN
   1.106   #include <Win32-Extensions.h>
   1.107 +Index: Net-RabbitMQ-0.0.4/Makefile.PL
   1.108 +--- Net-RabbitMQ-0.0.4/Makefile.PL.orig	2009-11-12 21:15:45.000000000 +0100
   1.109 ++++ Net-RabbitMQ-0.0.4/Makefile.PL	2010-12-19 13:15:40.000000000 +0100
   1.110 +@@ -2,12 +2,16 @@
   1.111 + use ExtUtils::MakeMaker 5.16 ;
   1.112 + use Config ;
   1.113 + 
   1.114 +-my @parts = qw/api connection debug framing mem socket table/;
   1.115 +-my $cfiles = join(' ', map { "librabbitmq/amqp_$_.c" } @parts);
   1.116 +-
   1.117 + WriteMakefile(
   1.118 +         NAME            => 'Net::RabbitMQ',
   1.119 +         VERSION_FROM    => 'RabbitMQ.pm',
   1.120 +-	OBJECT          => "RabbitMQ.o $cfiles",
   1.121 ++	'MYEXTLIB'	=> 'librabbitmq/librabbitmq$(LIB_EXT)',
   1.122 ++	OBJECT          => "RabbitMQ.o",
   1.123 +         );
   1.124 + 
   1.125 ++sub MY::postamble {
   1.126 ++'
   1.127 ++$(MYEXTLIB): librabbitmq/Makefile
   1.128 ++	cd librabbitmq && $(MAKE) $(PASTHRU)
   1.129 ++';
   1.130 ++}
   1.131 +Index: Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL
   1.132 +--- Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL.orig	2010-12-19 13:15:40.000000000 +0100
   1.133 ++++ Net-RabbitMQ-0.0.4/librabbitmq/Makefile.PL	2010-12-19 13:15:40.000000000 +0100
   1.134 +@@ -0,0 +1,22 @@
   1.135 ++
   1.136 ++use ExtUtils::MakeMaker;
   1.137 ++
   1.138 ++$Verbose = 1;
   1.139 ++
   1.140 ++WriteMakefile(
   1.141 ++    NAME  => 'Net::RabbitMQ::librabbitmq',
   1.142 ++    SKIP  => [ qw(all static static_lib dynamic dynamic_lib test) ],
   1.143 ++    clean => { 'FILES' => 'librabbitmq$(LIB_EXT)' },
   1.144 ++);
   1.145 ++
   1.146 ++sub MY::top_targets {
   1.147 ++'
   1.148 ++all :: static
   1.149 ++test ::
   1.150 ++static :: librabbitmq$(LIB_EXT)
   1.151 ++librabbitmq$(LIB_EXT): $(O_FILES)
   1.152 ++	$(AR) cr librabbitmq$(LIB_EXT) $(O_FILES)
   1.153 ++	$(RANLIB) librabbitmq$(LIB_EXT)
   1.154 ++
   1.155 ++';
   1.156 ++}
   1.157 +Index: Net-RabbitMQ-0.0.4/librabbitmq/amqp.h
   1.158 +--- Net-RabbitMQ-0.0.4/librabbitmq/amqp.h.orig	2009-12-19 08:59:44.000000000 +0100
   1.159 ++++ Net-RabbitMQ-0.0.4/librabbitmq/amqp.h	2010-12-19 13:15:40.000000000 +0100
   1.160 +@@ -5,6 +5,9 @@
   1.161 + extern "C" {
   1.162 + #endif
   1.163 + 
   1.164 ++#include <sys/types.h>
   1.165 ++#include <unistd.h>
   1.166 ++
   1.167 + typedef int amqp_boolean_t;
   1.168 + typedef uint32_t amqp_method_number_t;
   1.169 + typedef uint32_t amqp_flags_t;
   1.170 +Index: Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h
   1.171 +--- Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h.orig	2009-11-12 21:15:45.000000000 +0100
   1.172 ++++ Net-RabbitMQ-0.0.4/librabbitmq/amqp_config.h	2010-12-19 13:15:40.000000000 +0100
   1.173 +@@ -1,2 +1,3 @@
   1.174 ++#undef VERSION
   1.175 + #define VERSION "0.0.1"
   1.176 + 

mercurial