1 |
polynomial-c 13/09/28 15:03:35 |
2 |
|
3 |
Added: licq-1.8.0-socks5.patch licq-1.8.0-doxygen.patch |
4 |
Log: |
5 |
Fixed bug #484706 and #486126. Took over maintenance |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-im/licq/files/licq-1.8.0-socks5.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/licq/files/licq-1.8.0-socks5.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/licq/files/licq-1.8.0-socks5.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: licq-1.8.0-socks5.patch |
16 |
=================================================================== |
17 |
From 6b5f463697739be42948a052a03cc706f06c2150 Mon Sep 17 00:00:00 2001 |
18 |
From: Anders Olofsson <flynd@××××.org> |
19 |
Date: Thu, 19 Sep 2013 20:33:16 +0200 |
20 |
Subject: [PATCH] core: Workaround defines in socks.h |
21 |
|
22 |
socks.h defines send to Rsend which also affected the name of |
23 |
TCPSocket::send(). |
24 |
|
25 |
Fixes Gentoo bug 484706 |
26 |
--- |
27 |
licq/src/socket.cpp | 6 +++++- |
28 |
1 file changed, 5 insertions(+), 1 deletion(-) |
29 |
|
30 |
diff --git a/licq/src/socket.cpp b/licq/src/socket.cpp |
31 |
index 9d4cb3f..c06c266 100644 |
32 |
--- a/licq/src/socket.cpp |
33 |
+++ b/licq/src/socket.cpp |
34 |
@@ -49,6 +49,10 @@ |
35 |
extern "C" { |
36 |
#include <socks.h> |
37 |
} |
38 |
+#define socket_send Rsend |
39 |
+#undef send |
40 |
+#else |
41 |
+#define socket_send send |
42 |
#endif // SOCKS5 |
43 |
|
44 |
#ifdef SOCKS5_OPTLEN |
45 |
@@ -477,7 +481,7 @@ bool INetSocket::send(Buffer& buf) |
46 |
char* dataPos = buf.getDataStart(); |
47 |
while (bytesLeft > 0) |
48 |
{ |
49 |
- ssize_t bytesSent = ::send(myDescriptor, dataPos, bytesLeft, 0); |
50 |
+ ssize_t bytesSent = ::socket_send(myDescriptor, dataPos, bytesLeft, 0); |
51 |
if (bytesSent < 0) |
52 |
{ |
53 |
if (errno == EINTR) |
54 |
-- |
55 |
1.8.4 |
56 |
|
57 |
|
58 |
|
59 |
|
60 |
1.1 net-im/licq/files/licq-1.8.0-doxygen.patch |
61 |
|
62 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/licq/files/licq-1.8.0-doxygen.patch?rev=1.1&view=markup |
63 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/licq/files/licq-1.8.0-doxygen.patch?rev=1.1&content-type=text/plain |
64 |
|
65 |
Index: licq-1.8.0-doxygen.patch |
66 |
=================================================================== |
67 |
From b05d42fda3da5d1b42bd89feb3b49516ce7d85b3 Mon Sep 17 00:00:00 2001 |
68 |
From: Anders Olofsson <flynd@××××.org> |
69 |
Date: Fri, 27 Sep 2013 21:55:54 +0200 |
70 |
Subject: [PATCH] core: Make Doxygen usage optional |
71 |
|
72 |
Patch by Ben Kohler to solve Gentoo bug 486126. |
73 |
--- |
74 |
licq/CMakeLists.txt | 5 +++-- |
75 |
1 file changed, 3 insertions(+), 2 deletions(-) |
76 |
|
77 |
diff --git a/licq/CMakeLists.txt b/licq/CMakeLists.txt |
78 |
index 9e84538..f90d9d5 100644 |
79 |
--- a/licq/CMakeLists.txt |
80 |
+++ b/licq/CMakeLists.txt |
81 |
@@ -12,6 +12,7 @@ include(CheckFileOffsetBits) |
82 |
|
83 |
# Options |
84 |
option(ENABLE_NLS "Enable translation of program messages" ON) |
85 |
+option(USE_DOXYGEN "Build docs via doxygen" OFF) |
86 |
option(USE_FIFO "Use Licq FIFO" ON) |
87 |
option(USE_HEBREW "Include support for hebrew reverse string" OFF) |
88 |
option(USE_OPENSSL "Enable secure communication channels" ON) |
89 |
@@ -142,7 +143,7 @@ include(cmake/LicqVersion.cmake) |
90 |
# Doxygen is option |
91 |
find_package(Doxygen) |
92 |
|
93 |
-if (DOXYGEN_FOUND) |
94 |
+if (USE_DOXYGEN) |
95 |
if (NOT DOXYGEN_DOT_FOUND) |
96 |
message(SEND_ERROR "Need the dot program to build documentation") |
97 |
endif (NOT DOXYGEN_DOT_FOUND) |
98 |
@@ -158,7 +159,7 @@ if (DOXYGEN_FOUND) |
99 |
DEPENDS ${DOXY_CONFIG} |
100 |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
101 |
COMMENT "Generating doxygen documentation" VERBATIM) |
102 |
-endif (DOXYGEN_FOUND) |
103 |
+endif (USE_DOXYGEN) |
104 |
|
105 |
# make uninstall (file added to top binary dir to work with build_all) |
106 |
configure_file( |
107 |
-- |
108 |
1.8.4 |