add mozldap support
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@629 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
37
dev-libs/log4cxx/files/0.10.0-missing_includes.patch
Normal file
37
dev-libs/log4cxx/files/0.10.0-missing_includes.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
diff -Naur apache-log4cxx-0.10.0.orig/src/examples/cpp/console.cpp apache-log4cxx-0.10.0/src/examples/cpp/console.cpp
|
||||
--- apache-log4cxx-0.10.0.orig/src/examples/cpp/console.cpp 2008-04-01 00:34:52.000000000 +0200
|
||||
+++ apache-log4cxx-0.10.0/src/examples/cpp/console.cpp 2008-05-06 05:40:52.000000000 +0200
|
||||
@@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
-#include <stdlib.h>
|
||||
+#include <cstdlib>
|
||||
+#include <cstring>
|
||||
#include <log4cxx/logger.h>
|
||||
#include <log4cxx/consoleappender.h>
|
||||
#include <log4cxx/simplelayout.h>
|
||||
diff -Naur apache-log4cxx-0.10.0.orig/src/main/cpp/inputstreamreader.cpp apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp
|
||||
--- apache-log4cxx-0.10.0.orig/src/main/cpp/inputstreamreader.cpp 2008-04-01 00:34:09.000000000 +0200
|
||||
+++ apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp 2008-05-06 05:32:31.000000000 +0200
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <log4cxx/helpers/pool.h>
|
||||
#include <log4cxx/helpers/bytebuffer.h>
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
using namespace log4cxx;
|
||||
using namespace log4cxx::helpers;
|
||||
|
||||
diff -Naur apache-log4cxx-0.10.0.orig/src/main/cpp/socketoutputstream.cpp apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp
|
||||
--- apache-log4cxx-0.10.0.orig/src/main/cpp/socketoutputstream.cpp 2008-04-01 00:34:09.000000000 +0200
|
||||
+++ apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp 2008-05-06 05:35:55.000000000 +0200
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <log4cxx/helpers/socket.h>
|
||||
#include <log4cxx/helpers/bytebuffer.h>
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
using namespace log4cxx;
|
||||
using namespace log4cxx::helpers;
|
||||
|
||||
12
dev-libs/log4cxx/files/log4cxx-0.9.7-gcc41.patch
Normal file
12
dev-libs/log4cxx/files/log4cxx-0.9.7-gcc41.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -uNr log4cxx-0.9.7.orig/include/log4cxx/xml/domconfigurator.h log4cxx-0.9.7/include/log4cxx/xml/domconfigurator.h
|
||||
--- log4cxx-0.9.7.orig/include/log4cxx/xml/domconfigurator.h 2004-05-10 13:42:04.000000000 +0100
|
||||
+++ log4cxx-0.9.7/include/log4cxx/xml/domconfigurator.h 2006-03-19 13:15:30.000000000 +0000
|
||||
@@ -208,7 +208,7 @@
|
||||
spi::LoggerRepositoryPtr& repository);
|
||||
|
||||
protected:
|
||||
- String DOMConfigurator::subst(const String& value);
|
||||
+ String subst(const String& value);
|
||||
|
||||
protected:
|
||||
void * appenderBag;
|
||||
55
dev-libs/log4cxx/files/log4cxx-0.9.7-gentoo.diff
Normal file
55
dev-libs/log4cxx/files/log4cxx-0.9.7-gentoo.diff
Normal file
@@ -0,0 +1,55 @@
|
||||
diff --exclude='*~' -urN log4cxx-0.9.7.orig/include/log4cxx/helpers/class.h log4cxx-0.9.7/include/log4cxx/helpers/class.h
|
||||
--- log4cxx-0.9.7.orig/include/log4cxx/helpers/class.h 2005-03-16 02:27:08.783682464 -0500
|
||||
+++ log4cxx-0.9.7/include/log4cxx/helpers/class.h 2005-03-16 02:27:26.479992216 -0500
|
||||
@@ -53,6 +53,7 @@
|
||||
{
|
||||
public:
|
||||
Class(const String& name);
|
||||
+ virtual ~Class() {};
|
||||
virtual ObjectPtr newInstance() const;
|
||||
const String& toString() const;
|
||||
const String& getName() const;
|
||||
diff --exclude='*~' -urN log4cxx-0.9.7.orig/src/msxml.cpp log4cxx-0.9.7/src/msxml.cpp
|
||||
--- log4cxx-0.9.7.orig/src/msxml.cpp 2005-03-16 02:27:08.733690064 -0500
|
||||
+++ log4cxx-0.9.7/src/msxml.cpp 2005-03-16 02:27:38.852111368 -0500
|
||||
@@ -289,4 +289,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
-#endif
|
||||
\ No newline at end of file
|
||||
+#endif
|
||||
+
|
||||
diff --exclude='*~' -urN log4cxx-0.9.7.orig/src/smtpappender.cpp log4cxx-0.9.7/src/smtpappender.cpp
|
||||
--- log4cxx-0.9.7.orig/src/smtpappender.cpp 2005-03-16 02:27:08.725691280 -0500
|
||||
+++ log4cxx-0.9.7/src/smtpappender.cpp 2005-03-16 02:27:38.853111216 -0500
|
||||
@@ -134,7 +134,7 @@
|
||||
for (i = recipients.begin(); i != recipients.end(); i++)
|
||||
{
|
||||
if (::libsmtp_add_recipient(LIBSMTP_REC_TO,
|
||||
- (TCHAR *)T2A(i->c_str()),
|
||||
+ T2A((TCHAR *)i->c_str()),
|
||||
(libsmtp_session_struct *)session) != 0)
|
||||
{
|
||||
LogLog::error(_T("Could not add recipient ")+*i+_T("."));
|
||||
@@ -316,6 +316,8 @@
|
||||
*/
|
||||
void SMTPAppender::sendBuffer()
|
||||
{
|
||||
+ USES_CONVERSION;
|
||||
+
|
||||
// Note: this code already owns the monitor for this
|
||||
// appender. This frees us from needing to synchronize on 'cb'.
|
||||
try
|
||||
diff --exclude='*~' -urN log4cxx-0.9.7.orig/src/stringtokenizer.cpp log4cxx-0.9.7/src/stringtokenizer.cpp
|
||||
--- log4cxx-0.9.7.orig/src/stringtokenizer.cpp 2005-03-16 02:27:08.727690976 -0500
|
||||
+++ log4cxx-0.9.7/src/stringtokenizer.cpp 2005-03-16 02:27:26.480992064 -0500
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
StringTokenizer::~StringTokenizer()
|
||||
{
|
||||
- delete this->str;
|
||||
+ delete[] this->str;
|
||||
}
|
||||
|
||||
bool StringTokenizer::hasMoreTokens() const
|
||||
12
dev-libs/log4cxx/files/log4cxx-0.9.7-tchar.patch
Normal file
12
dev-libs/log4cxx/files/log4cxx-0.9.7-tchar.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- log4cxx-0.9.7.orig/include/log4cxx/helpers/tchar.h 2004-05-10 14:54:50.000000000 +0200
|
||||
+++ log4cxx-0.9.7/include/log4cxx/helpers/tchar.h 2007-01-17 12:46:44.000000000 +0100
|
||||
@@ -142,7 +142,9 @@
|
||||
#define _T(x) x
|
||||
#endif
|
||||
|
||||
+#ifndef TCHAR
|
||||
typedef char TCHAR;
|
||||
+#endif
|
||||
#define totupper toupper
|
||||
#define totlower tolower
|
||||
#define tcout std::cout
|
||||
25
dev-libs/log4cxx/files/log4cxx-0.9.7-use-SQLWCHAR.diff
Normal file
25
dev-libs/log4cxx/files/log4cxx-0.9.7-use-SQLWCHAR.diff
Normal file
@@ -0,0 +1,25 @@
|
||||
diff -urN log4cxx-0.9.7.post-gentoo-diff/src/odbcappender.cpp log4cxx-0.9.7/src/odbcappender.cpp
|
||||
--- log4cxx-0.9.7.post-gentoo-diff/src/odbcappender.cpp 2005-01-07 01:30:56.466447632 -0500
|
||||
+++ log4cxx-0.9.7/src/odbcappender.cpp 2005-01-07 01:31:29.045494864 -0500
|
||||
@@ -111,7 +111,7 @@
|
||||
ret = SQLExecDirect(stmt, (SQLTCHAR *)sql.c_str(), SQL_NTS);
|
||||
#else
|
||||
USES_CONVERSION;
|
||||
- ret = SQLExecDirect(stmt, (SQLCHAR *)T2A(sql.c_str()), SQL_NTS);
|
||||
+ ret = SQLExecDirect(stmt, (SQLWCHAR *)T2A(sql.c_str()), SQL_NTS);
|
||||
#endif
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -182,9 +182,9 @@
|
||||
std::string user = T2A(databaseUser.c_str());
|
||||
std::string password = T2A(databasePassword.c_str());
|
||||
ret = SQLConnect(connection,
|
||||
- (SQLCHAR *)URL.c_str(), SQL_NTS,
|
||||
- (SQLCHAR *)user.c_str(), SQL_NTS,
|
||||
- (SQLCHAR *)password.c_str(), SQL_NTS);
|
||||
+ (SQLWCHAR *)URL.c_str(), SQL_NTS,
|
||||
+ (SQLWCHAR *)user.c_str(), SQL_NTS,
|
||||
+ (SQLWCHAR *)password.c_str(), SQL_NTS);
|
||||
#endif
|
||||
if (ret < 0)
|
||||
{
|
||||
Reference in New Issue
Block a user