Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/gnash/files: gnash-0.8.9-cygnal-sshclient.patch
Date: Sat, 26 Nov 2011 02:24:30
Message-Id: 20111126022420.F08032004E@flycatcher.gentoo.org
1 chithanh 11/11/26 02:24:20
2
3 Added: gnash-0.8.9-cygnal-sshclient.patch
4 Log:
5 Fix building of cygnal sshclient, bug #391915.
6
7 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 www-plugins/gnash/files/gnash-0.8.9-cygnal-sshclient.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/files/gnash-0.8.9-cygnal-sshclient.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/files/gnash-0.8.9-cygnal-sshclient.patch?rev=1.1&content-type=text/plain
14
15 Index: gnash-0.8.9-cygnal-sshclient.patch
16 ===================================================================
17 diff -ur a/cygnal/libnet/sshclient.cpp b/cygnal/libnet/sshclient.cpp
18 --- a/cygnal/libnet/sshclient.cpp 2011-02-26 19:11:07.000000000 +0100
19 +++ b/cygnal/libnet/sshclient.cpp 2011-11-26 02:58:31.314227874 +0100
20 @@ -103,7 +103,7 @@
21
22 // Read bytes from the already opened SSH connection
23 int
24 -SSHClient::sshRead(amf::Buffer &buf)
25 +SSHClient::sshRead(cygnal::Buffer &buf)
26 {
27 GNASH_REPORT_FUNCTION;
28
29 @@ -125,7 +125,7 @@
30
31 // Write bytes to the already opened SSH connection
32 int
33 -SSHClient::sshWrite(amf::Buffer &buf)
34 +SSHClient::sshWrite(cygnal::Buffer &buf)
35 {
36 GNASH_REPORT_FUNCTION;
37
38 @@ -401,7 +401,7 @@
39 }
40
41 int
42 -SSHClient::readChannel(ssh_channel channel, amf::Buffer &buf)
43 +SSHClient::readChannel(ssh_channel channel, cygnal::Buffer &buf)
44 {
45 // GNASH_REPORT_FUNCTION;
46 int ret = -1;
47 @@ -416,7 +416,7 @@
48 }
49
50 int
51 -SSHClient::writeChannel(ssh_channel channel, amf::Buffer &buf)
52 +SSHClient::writeChannel(ssh_channel channel, cygnal::Buffer &buf)
53 {
54 // GNASH_REPORT_FUNCTION;
55 int ret = -1;
56 diff -ur a/cygnal/libnet/sshclient.h b/cygnal/libnet/sshclient.h
57 --- a/cygnal/libnet/sshclient.h 2011-02-26 19:11:07.000000000 +0100
58 +++ b/cygnal/libnet/sshclient.h 2011-11-26 02:58:57.203229777 +0100
59 @@ -32,6 +32,7 @@
60 #include <libssh/sftp.h>
61 }
62
63 +#include "dsodefs.h"
64 #include "cque.h"
65 #include "network.h"
66 #include "buffer.h"
67 @@ -56,12 +57,12 @@
68 ~SSHClient();
69
70 // Read bytes from the already opened SSH connection
71 - int sshRead(amf::Buffer &buf);
72 + int sshRead(cygnal::Buffer &buf);
73 int sshRead(boost::uint8_t *buf, size_t length);
74 int sshRead(std::string &buf);
75
76 // Write bytes to the already opened SSH connection
77 - int sshWrite(amf::Buffer &buf);
78 + int sshWrite(cygnal::Buffer &buf);
79 int sshWrite(const boost::uint8_t *buf, size_t length);
80 int sshWrite(std::string &buf);
81
82 @@ -104,13 +105,13 @@
83 // Accessors
84 ssh_channel getChannel() { return _channel; };
85 ssh_session getSession() { return _session; };
86 - boost::shared_ptr<amf::Buffer> &getBuffer() { return _buffer; };
87 + boost::shared_ptr<cygnal::Buffer> &getBuffer() { return _buffer; };
88
89 // Dump internal data to the screen for debugging
90 void dump();
91 protected:
92 - int readChannel (ssh_channel channel, amf::Buffer &buf);
93 - int writeChannel(ssh_channel channel, amf::Buffer &buf);
94 + int readChannel (ssh_channel channel, cygnal::Buffer &buf);
95 + int writeChannel(ssh_channel channel, cygnal::Buffer &buf);
96
97 std::string _hostname;
98 std::string _user;
99 @@ -126,7 +127,7 @@
100 ssh_session _session;
101 ssh_channel _channel;
102 #endif
103 - boost::shared_ptr<amf::Buffer> _buffer;
104 + boost::shared_ptr<cygnal::Buffer> _buffer;
105 };
106
107 } // end of gnash namespace