diff options
author | Torsten Veller <tove@gentoo.org> | 2009-08-16 08:54:47 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2009-08-16 08:54:47 +0000 |
commit | 8b5d9654e361a19bb38d224ed35bc173d8b1b6b8 (patch) | |
tree | f17681287e188a6b6ed32a834f69fe94927e098c /dev-perl/X11-Protocol | |
parent | Migrate to EAPI 2. Extend portmap dependency atom (#280931) and move it from ... (diff) | |
download | gentoo-2-8b5d9654e361a19bb38d224ed35bc173d8b1b6b8.tar.gz gentoo-2-8b5d9654e361a19bb38d224ed35bc173d8b1b6b8.tar.bz2 gentoo-2-8b5d9654e361a19bb38d224ed35bc173d8b1b6b8.zip |
Remove unused patches
(Portage version: 2.2_rc38/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/X11-Protocol')
-rw-r--r-- | dev-perl/X11-Protocol/ChangeLog | 8 | ||||
-rw-r--r-- | dev-perl/X11-Protocol/files/X11-Protocol-0.51.s2.patch | 182 | ||||
-rw-r--r-- | dev-perl/X11-Protocol/files/X11-Protocol-0.51_2.patch | 129 |
3 files changed, 6 insertions, 313 deletions
diff --git a/dev-perl/X11-Protocol/ChangeLog b/dev-perl/X11-Protocol/ChangeLog index 8c56080f33fd..62f307a083c4 100644 --- a/dev-perl/X11-Protocol/ChangeLog +++ b/dev-perl/X11-Protocol/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-perl/X11-Protocol -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/X11-Protocol/ChangeLog,v 1.41 2008/09/15 19:34:12 tove Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/X11-Protocol/ChangeLog,v 1.42 2009/08/16 08:54:47 tove Exp $ + + 16 Aug 2009; Torsten Veller <tove@gentoo.org> + -files/X11-Protocol-0.51_2.patch, -files/X11-Protocol-0.51.s2.patch: + Remove unused patches 15 Sep 2008; Torsten Veller <tove@gentoo.org> -X11-Protocol-0.53.ebuild, -X11-Protocol-0.54.ebuild, -X11-Protocol-0.55.ebuild: diff --git a/dev-perl/X11-Protocol/files/X11-Protocol-0.51.s2.patch b/dev-perl/X11-Protocol/files/X11-Protocol-0.51.s2.patch deleted file mode 100644 index 8eded5a697cd..000000000000 --- a/dev-perl/X11-Protocol/files/X11-Protocol-0.51.s2.patch +++ /dev/null @@ -1,182 +0,0 @@ -*** Protocol.pm.orig Fri Aug 22 18:39:18 2003 ---- Protocol.pm Sat Oct 11 13:09:04 2003 -*************** -*** 15,21 **** - - @EXPORT_OK = qw(pad padding padded hexi make_num_hash default_error_handler); - -! $VERSION = "0.51"; - - sub padding ($) { - my($x) = @_; ---- 15,21 ---- - - @EXPORT_OK = qw(pad padding padded hexi make_num_hash default_error_handler); - -! $VERSION = "0.51.s2"; - - sub padding ($) { - my($x) = @_; -*************** -*** 571,593 **** - return $mask; - } - - sub default_error_handler { -! my($self, $data) = @_; -! my($type, $seq, $info, $minor_op, $major_op) -! = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -! my($t); -! $t = join("", "Protocol error: bad $type (", -! $self->do_interp('Error', $type), "); ", -! "Sequence Number $seq\n", -! " Opcode ($major_op, $minor_op) = ", -! ($self->do_interp('Request', $major_op) -! or $self->{'ext_request'}{$major_op}[$minor_op][0]), "\n"); -! if ($type == 2) { -! $t .= " Bad value $info (" . hexi($info) . ")\n"; -! } elsif ($self->{'error_type'}[$type] & 1) { -! $t .= " Bad resource $info (" . hexi($info) . ")\n"; -! } -! croak($t); - } - - sub handle_input { ---- 571,598 ---- - return $mask; - } - -+ sub make_error_msg { -+ my($self, $data) = @_; -+ my($type, $seq, $info, $minor_op, $major_op) -+ = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -+ my($t); -+ $t = join("", "Protocol error: bad $type (", -+ $self->do_interp('Error', $type), "); ", -+ "Sequence Number $seq\n", -+ " Opcode ($major_op, $minor_op) = ", -+ ($self->do_interp('Request', $major_op) -+ or $self->{'ext_request'}{$major_op}[$minor_op][0]), "\n"); -+ if ($type == 2) { -+ $t .= " Bad value $info (" . hexi($info) . ")\n"; -+ } elsif ($self->{'error_type'}[$type] & 1) { -+ $t .= " Bad resource $info (" . hexi($info) . ")\n"; -+ } -+ return $t; -+ } -+ - sub default_error_handler { -! my($self, $data) = @_; -! croak($self->make_error_msg($data)); - } - - sub handle_input { -*************** -*** 597,604 **** - $type_b = $self->get(1); - $type = unpack "C", $type_b; - if ($type == 0) { -! &{$self->{'error_handler'}}($self, $type_b . $self->get(31)); -! return 0; - } elsif ($type > 1) { - if ($self->{'event_handler'} eq "queue") { - push @{$self->{'event_queue'}}, $type_b . $self->get(31); ---- 602,614 ---- - $type_b = $self->get(1); - $type = unpack "C", $type_b; - if ($type == 0) { -! my $data = $type_b . $self->get(31); -! my ($type, $seq, $info, $minor_op, $major_op) -! = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -! &{$self->{'error_handler'}}($self, $data); -! # return 0 to denote an error & the sequence number to identify -! # which request it applies to. -! return (0, $seq); - } elsif ($type > 1) { - if ($self->{'event_handler'} eq "queue") { - push @{$self->{'event_queue'}}, $type_b . $self->get(31); -*************** -*** 2031,2036 **** ---- 2041,2047 ---- - my($op, $args, $major, $minor) = (@_, 0); - my($data); - ($data, $minor) = (&{$op->[1]}($self, @$args), $minor); -+ # print($op->[0] . " req has seq: " . $self->{sequence_num} . "\n"); - $minor = 0 unless defined $minor; - my($len) = (length($data) / 4) + 1; - croak "Request too long!\n" if $len > $self->{'maximum_request_length'}; -*************** -*** 2054,2061 **** - $self->give($self->assemble_request($op, \@args, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); -! $self->handle_input() until $data; - $self->delete_reply($seq & 0xffff); - return &{$op->[2]}($self, $data); - } elsif (@$op == 4) { # Many replies - my($seq, $data, @stuff, @ret); ---- 2065,2077 ---- - $self->give($self->assemble_request($op, \@args, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); -! while (1) -! { -! my @ret = $self->handle_input(); -! last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -! } - $self->delete_reply($seq & 0xffff); -+ return undef unless $data; - return &{$op->[2]}($self, $data); - } elsif (@$op == 4) { # Many replies - my($seq, $data, @stuff, @ret); -*************** -*** 2063,2069 **** - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); - for (;;) { -! $data = 0; $self->handle_input() until $data; - @stuff = &{$op->[2]}($self, $data); - last unless @stuff; - if ($op->[3] eq "ARRAY") { ---- 2079,2095 ---- - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); - for (;;) { -! $data = 0; -! while (1) -! { -! my @ret = $self->handle_input(); -! last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -! } -! if (!$data) -! { -! $self->delete_reply($seq & 0xffff); -! return undef; -! } - @stuff = &{$op->[2]}($self, $data); - last unless @stuff; - if ($op->[3] eq "ARRAY") { -*************** -*** 2392,2399 **** - $self->give($self->assemble_request($op, \@_, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq, \$data); -! $self->handle_input() until $data; - $self->delete_reply($seq); - return &{$op->[2]}($self, $data); - }; - } else { # ListFontsWithInfo ---- 2418,2430 ---- - $self->give($self->assemble_request($op, \@_, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq, \$data); -! while (1) -! { -! my @ret = $self->handle_input(); -! last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -! } - $self->delete_reply($seq); -+ return undef unless $data; - return &{$op->[2]}($self, $data); - }; - } else { # ListFontsWithInfo diff --git a/dev-perl/X11-Protocol/files/X11-Protocol-0.51_2.patch b/dev-perl/X11-Protocol/files/X11-Protocol-0.51_2.patch deleted file mode 100644 index 82c5f0a4cfcd..000000000000 --- a/dev-perl/X11-Protocol/files/X11-Protocol-0.51_2.patch +++ /dev/null @@ -1,129 +0,0 @@ ---- Protocol.pm.orig Fri Aug 22 18:39:18 2003 -+++ Protocol.pm Sun Oct 12 11:57:47 2003 -@@ -15,7 +15,7 @@ - - @EXPORT_OK = qw(pad padding padded hexi make_num_hash default_error_handler); - --$VERSION = "0.51"; -+$VERSION = "0.51_2"; - - sub padding ($) { - my($x) = @_; -@@ -571,23 +571,28 @@ - return $mask; - } - -+sub make_error_msg { -+ my($self, $data) = @_; -+ my($type, $seq, $info, $minor_op, $major_op) -+ = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -+ my($t); -+ $t = join("", "Protocol error: bad $type (", -+ $self->do_interp('Error', $type), "); ", -+ "Sequence Number $seq\n", -+ " Opcode ($major_op, $minor_op) = ", -+ ($self->do_interp('Request', $major_op) -+ or $self->{'ext_request'}{$major_op}[$minor_op][0]), "\n"); -+ if ($type == 2) { -+ $t .= " Bad value $info (" . hexi($info) . ")\n"; -+ } elsif ($self->{'error_type'}[$type] & 1) { -+ $t .= " Bad resource $info (" . hexi($info) . ")\n"; -+ } -+ return $t; -+} -+ - sub default_error_handler { -- my($self, $data) = @_; -- my($type, $seq, $info, $minor_op, $major_op) -- = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -- my($t); -- $t = join("", "Protocol error: bad $type (", -- $self->do_interp('Error', $type), "); ", -- "Sequence Number $seq\n", -- " Opcode ($major_op, $minor_op) = ", -- ($self->do_interp('Request', $major_op) -- or $self->{'ext_request'}{$major_op}[$minor_op][0]), "\n"); -- if ($type == 2) { -- $t .= " Bad value $info (" . hexi($info) . ")\n"; -- } elsif ($self->{'error_type'}[$type] & 1) { -- $t .= " Bad resource $info (" . hexi($info) . ")\n"; -- } -- croak($t); -+ my($self, $data) = @_; -+ croak($self->make_error_msg($data)); - } - - sub handle_input { -@@ -597,8 +602,13 @@ - $type_b = $self->get(1); - $type = unpack "C", $type_b; - if ($type == 0) { -- &{$self->{'error_handler'}}($self, $type_b . $self->get(31)); -- return 0; -+ my $data = $type_b . $self->get(31); -+ my ($type, $seq, $info, $minor_op, $major_op) -+ = unpack("xCSLSCxxxxxxxxxxxxxxxxxxxxx", $data); -+ &{$self->{'error_handler'}}($self, $data); -+ # return 0 to denote an error & the sequence number to identify -+ # which request it applies to. -+ return (0, $seq); - } elsif ($type > 1) { - if ($self->{'event_handler'} eq "queue") { - push @{$self->{'event_queue'}}, $type_b . $self->get(31); -@@ -2031,6 +2041,7 @@ - my($op, $args, $major, $minor) = (@_, 0); - my($data); - ($data, $minor) = (&{$op->[1]}($self, @$args), $minor); -+ # print($op->[0] . " req has seq: " . $self->{sequence_num} . "\n"); - $minor = 0 unless defined $minor; - my($len) = (length($data) / 4) + 1; - croak "Request too long!\n" if $len > $self->{'maximum_request_length'}; -@@ -2054,8 +2065,13 @@ - $self->give($self->assemble_request($op, \@args, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); -- $self->handle_input() until $data; -+ while (1) -+ { -+ my @ret = $self->handle_input(); -+ last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -+ } - $self->delete_reply($seq & 0xffff); -+ return undef unless $data; - return &{$op->[2]}($self, $data); - } elsif (@$op == 4) { # Many replies - my($seq, $data, @stuff, @ret); -@@ -2063,7 +2079,17 @@ - $seq = $self->next_sequence(); - $self->add_reply($seq & 0xffff, \$data); - for (;;) { -- $data = 0; $self->handle_input() until $data; -+ $data = 0; -+ while (1) -+ { -+ my @ret = $self->handle_input(); -+ last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -+ } -+ if (!$data) -+ { -+ $self->delete_reply($seq & 0xffff); -+ return undef; -+ } - @stuff = &{$op->[2]}($self, $data); - last unless @stuff; - if ($op->[3] eq "ARRAY") { -@@ -2392,8 +2418,13 @@ - $self->give($self->assemble_request($op, \@_, $major, $minor)); - $seq = $self->next_sequence(); - $self->add_reply($seq, \$data); -- $self->handle_input() until $data; -+ while (1) -+ { -+ my @ret = $self->handle_input(); -+ last if ($data || ($ret[0] == 0 && $ret[1] == $seq)); -+ } - $self->delete_reply($seq); -+ return undef unless $data; - return &{$op->[2]}($self, $data); - }; - } else { # ListFontsWithInfo |