diff options
Diffstat (limited to 'dev-libs/log4cxx')
-rw-r--r-- | dev-libs/log4cxx/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/log4cxx/files/log4cxx-0.10.0-fix-c++14.patch | 100 | ||||
-rw-r--r-- | dev-libs/log4cxx/files/log4cxx-0.10.0-gcc44.patch | 12 | ||||
-rw-r--r-- | dev-libs/log4cxx/files/log4cxx-0.10.0-missing_includes.patch | 37 | ||||
-rw-r--r-- | dev-libs/log4cxx/files/log4cxx-0.10.0-unixODBC.patch | 75 | ||||
-rw-r--r-- | dev-libs/log4cxx/log4cxx-0.10.0-r1.ebuild | 65 |
6 files changed, 0 insertions, 290 deletions
diff --git a/dev-libs/log4cxx/Manifest b/dev-libs/log4cxx/Manifest index a4d520b5750b..672c69d34f73 100644 --- a/dev-libs/log4cxx/Manifest +++ b/dev-libs/log4cxx/Manifest @@ -1,2 +1 @@ -DIST apache-log4cxx-0.10.0.tar.gz 1667425 BLAKE2B f753e1ddb1f2d7abfca92e60883752acfacc0491aa93cfe0ac26c12b32c1f6406df7be2aa83b65a176671debdaa67a69d68af6cb7901cb626eee572425de40c4 SHA512 1c34d80983db5648bc4582ddcf6b4fdefdc6594c2769f95235f5441cd6d03cf279cc8f365e9a687085b113f79ebac9d7d33a54b6aa3b3b808c0e1a56a15ffa37 DIST apache-log4cxx-0.11.0.tar.gz 1145075 BLAKE2B 786f3374923a5d47172bdaba7edb1725bedc766cb310b7b1237cfcc2fdd84cf2e390b47d55284ad0ce65631798e545523723090f4c0f7ab262f6cbe41a03e327 SHA512 f8aa37c9c094e7a4d6ca92dff13c032f69f1e078c51ea55e284fcb931c13256b08950af3ea6eaf7a12282240f6073e9acab19bfe217f88dbd62a5d2360f3fbdd diff --git a/dev-libs/log4cxx/files/log4cxx-0.10.0-fix-c++14.patch b/dev-libs/log4cxx/files/log4cxx-0.10.0-fix-c++14.patch deleted file mode 100644 index 86ebdcccd5b8..000000000000 --- a/dev-libs/log4cxx/files/log4cxx-0.10.0-fix-c++14.patch +++ /dev/null @@ -1,100 +0,0 @@ -Fix building with C++14, which errors out due to narrowing conversions. -See also: https://bugs.gentoo.org/show_bug.cgi?id=593874 - ---- a/src/main/cpp/locationinfo.cpp -+++ b/src/main/cpp/locationinfo.cpp -@@ -153,8 +153,8 @@ - 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2E, 0x6C, - 0x6F, 0x67, 0x34, 0x6A, 0x2E, 0x73, 0x70, 0x69, - 0x2E, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, -- 0x6E, 0x49, 0x6E, 0x66, 0x6F, 0xED, 0x99, 0xBB, -- 0xE1, 0x4A, 0x91, 0xA5, 0x7C, 0x02, 0x00, 0x01, -+ 0x6E, 0x49, 0x6E, 0x66, 0x6F, (char)0xED, (char)0x99, (char)0xBB, -+ (char)0xE1, 0x4A, (char)0x91, (char)0xA5, 0x7C, 0x02, 0x00, 0x01, - 0x4C, 0x00, 0x08, 0x66, 0x75, 0x6C, 0x6C, 0x49, - 0x6E, 0x66, 0x6F, - 0x74, 0x00, 0x12, 0x4C, 0x6A, ---- a/src/main/cpp/loggingevent.cpp -+++ b/src/main/cpp/loggingevent.cpp -@@ -242,7 +242,7 @@ - 0x68, 0x65, 0x2E, 0x6C, 0x6F, 0x67, 0x34, 0x6A, - 0x2E, 0x73, 0x70, 0x69, 0x2E, 0x4C, 0x6F, 0x67, - 0x67, 0x69, 0x6E, 0x67, 0x45, 0x76, 0x65, 0x6E, -- 0x74, 0xF3, 0xF2, 0xB9, 0x23, 0x74, 0x0B, 0xB5, -+ 0x74, (char)0xF3, (char)0xF2, (char)0xB9, 0x23, 0x74, 0x0B, (char)0xB5, - 0x3F, 0x03, 0x00, 0x0A, 0x5A, 0x00, 0x15, 0x6D, - 0x64, 0x63, 0x43, 0x6F, 0x70, 0x79, 0x4C, 0x6F, - 0x6F, 0x6B, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, ---- a/src/main/cpp/objectoutputstream.cpp -+++ b/src/main/cpp/objectoutputstream.cpp -@@ -36,7 +36,7 @@ - objectHandle(0x7E0000), - classDescriptions(new ClassDescriptionMap()) - { -- char start[] = { 0xAC, 0xED, 0x00, 0x05 }; -+ char start[] = { (char)0xAC, (char)0xED, 0x00, 0x05 }; - ByteBuffer buf(start, sizeof(start)); - os->write(buf, p); - } -@@ -85,7 +85,7 @@ - 0x72, 0x00, 0x13, 0x6A, 0x61, 0x76, 0x61, - 0x2E, 0x75, 0x74, 0x69, 0x6C, 0x2E, 0x48, 0x61, - 0x73, 0x68, 0x74, 0x61, 0x62, 0x6C, 0x65, 0x13, -- 0xBB, 0x0F, 0x25, 0x21, 0x4A, 0xE4, 0xB8, 0x03, -+ (char)0xBB, 0x0F, 0x25, 0x21, 0x4A, (char)0xE4, (char)0xB8, 0x03, - 0x00, 0x02, 0x46, 0x00, 0x0A, 0x6C, 0x6F, 0x61, - 0x64, 0x46, 0x61, 0x63, 0x74, 0x6F, 0x72, 0x49, - 0x00, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, ---- a/src/main/cpp/synchronized.cpp -+++ b/src/main/cpp/synchronized.cpp -@@ -38,6 +38,9 @@ - } - - synchronized::~synchronized() -+#if __cplusplus >= 201103L -+ noexcept(false) -+#endif - { - #if APR_HAS_THREADS - apr_status_t stat = apr_thread_mutex_unlock( ---- a/src/main/include/log4cxx/helpers/synchronized.h -+++ b/src/main/include/log4cxx/helpers/synchronized.h -@@ -29,7 +29,11 @@ - { - public: - synchronized(const Mutex& mutex); -- ~synchronized(); -+ ~synchronized() -+#if __cplusplus >= 201103L -+ noexcept(false) -+#endif -+; - - - private: ---- a/src/test/cpp/xml/domtestcase.cpp -+++ b/src/test/cpp/xml/domtestcase.cpp -@@ -190,9 +190,9 @@ - DOMConfigurator::configure(LOG4CXX_TEST_STR("input/xml/DOMTestCase3.xml")); - LOG4CXX_INFO(logger, "File name is expected to end with a superscript 3"); - #if LOG4CXX_LOGCHAR_IS_UTF8 -- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xC2, 0xB3, 0 }; -+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, (logchar)0xC2, (logchar)0xB3, 0 }; - #else -- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xB3, 0 }; -+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, (logchar)0xB3, 0 }; - #endif - File file; - file.setPath(fname); -@@ -209,9 +209,9 @@ - DOMConfigurator::configure(LOG4CXX_TEST_STR("input/xml/DOMTestCase4.xml")); - LOG4CXX_INFO(logger, "File name is expected to end with an ideographic 4"); - #if LOG4CXX_LOGCHAR_IS_UTF8 -- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xE3, 0x86, 0x95, 0 }; -+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, (logchar)0xE3, (logchar)0x86, (logchar)0x95, 0 }; - #else -- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0x3195, 0 }; -+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, (logchar)0x3195, 0 }; - #endif - File file; - file.setPath(fname); diff --git a/dev-libs/log4cxx/files/log4cxx-0.10.0-gcc44.patch b/dev-libs/log4cxx/files/log4cxx-0.10.0-gcc44.patch deleted file mode 100644 index 854d34a17492..000000000000 --- a/dev-libs/log4cxx/files/log4cxx-0.10.0-gcc44.patch +++ /dev/null @@ -1,12 +0,0 @@ -Fix for gcc-4.4 ---- apache-log4cxx-0.10.0-orig/src/examples/cpp/console.cpp 2009-06-12 13:01:06.000000000 +0200 -+++ apache-log4cxx-0.10.0/src/examples/cpp/console.cpp 2009-06-12 13:07:05.000000000 +0200 -@@ -15,6 +15,7 @@ - * limitations under the License. - */ - -+#include <cstdio> - #include <cstdlib> - #include <cstring> - #include <log4cxx/logger.h> - diff --git a/dev-libs/log4cxx/files/log4cxx-0.10.0-missing_includes.patch b/dev-libs/log4cxx/files/log4cxx-0.10.0-missing_includes.patch deleted file mode 100644 index 78a57916bde0..000000000000 --- a/dev-libs/log4cxx/files/log4cxx-0.10.0-missing_includes.patch +++ /dev/null @@ -1,37 +0,0 @@ -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; - diff --git a/dev-libs/log4cxx/files/log4cxx-0.10.0-unixODBC.patch b/dev-libs/log4cxx/files/log4cxx-0.10.0-unixODBC.patch deleted file mode 100644 index cedca2ccdf42..000000000000 --- a/dev-libs/log4cxx/files/log4cxx-0.10.0-unixODBC.patch +++ /dev/null @@ -1,75 +0,0 @@ -http://issues.apache.org/jira/browse/LOGCXX-299 -http://bugs.gentoo.org/show_bug.cgi?id=254920 - -diff -ur apache-log4cxx-0.10.0.orig/src/main/cpp/odbcappender.cpp apache-log4cxx-0.10.0/src/main/cpp/odbcappender.cpp ---- apache-log4cxx-0.10.0.orig/src/main/cpp/odbcappender.cpp 2008-04-01 01:34:09.000000000 +0300 -+++ apache-log4cxx-0.10.0/src/main/cpp/odbcappender.cpp 2010-02-24 14:39:37.000000000 +0200 -@@ -167,7 +167,8 @@ - throw SQLException( SQL_HANDLE_DBC, con, "Failed to allocate sql handle.", p); - } - -- SQLWCHAR* wsql = Transcoder::wencode(sql, p); -+ SQLWCHAR* wsql; -+ encode(&wsql, sql, p); - ret = SQLExecDirectW(stmt, wsql, SQL_NTS); - - if (ret < 0) -@@ -237,9 +238,10 @@ - } - - -- SQLWCHAR* wURL = Transcoder::wencode(databaseURL, p); -+ SQLWCHAR* wURL; -+ encode(&wURL, databaseURL, p); - -- wchar_t szOutConnectionString[1024]; -+ SQLWCHAR szOutConnectionString[1024]; - SQLSMALLINT nOutConnctionLength = 0; - - ret = SQLDriverConnectW( connection, NULL, -@@ -331,3 +333,31 @@ - } - } - } -+ -+void ODBCAppender::encode(wchar_t** dest, const LogString& src, Pool& p) { -+ *dest = Transcoder::wencode(src, p); -+} -+ -+void ODBCAppender::encode(unsigned short** dest, -+ const LogString& src, Pool& p) { -+ // worst case double number of characters from UTF-8 or wchar_t -+ *dest = (unsigned short*) -+ p.palloc((src.size() + 1) * 2 * sizeof(unsigned short)); -+ unsigned short* current = *dest; -+ for(LogString::const_iterator i = src.begin(); -+ i != src.end();) { -+ unsigned int sv = Transcoder::decode(src, i); -+ if (sv < 0x10000) { -+ *current++ = (unsigned short) sv; -+ } else { -+ unsigned char u = (unsigned char) (sv >> 16); -+ unsigned char w = (unsigned char) (u - 1); -+ unsigned short hs = (0xD800 + ((w & 0xF) << 6) + ((sv & 0xFFFF) >> 10)); -+ unsigned short ls = (0xDC00 + (sv && 0x3FF)); -+ *current++ = (unsigned short) hs; -+ *current++ = (unsigned short) ls; -+ } -+ } -+ *current = 0; -+} -+ -diff -ur apache-log4cxx-0.10.0.orig/src/main/include/log4cxx/db/odbcappender.h apache-log4cxx-0.10.0/src/main/include/log4cxx/db/odbcappender.h ---- apache-log4cxx-0.10.0.orig/src/main/include/log4cxx/db/odbcappender.h 2008-04-01 01:34:09.000000000 +0300 -+++ apache-log4cxx-0.10.0/src/main/include/log4cxx/db/odbcappender.h 2010-02-24 14:39:39.000000000 +0200 -@@ -279,6 +279,10 @@ - private: - ODBCAppender(const ODBCAppender&); - ODBCAppender& operator=(const ODBCAppender&); -+ static void encode(wchar_t** dest, const LogString& src, -+ log4cxx::helpers::Pool& p); -+ static void encode(unsigned short** dest, const LogString& src, -+ log4cxx::helpers::Pool& p); - }; // class ODBCAppender - LOG4CXX_PTR_DEF(ODBCAppender); - diff --git a/dev-libs/log4cxx/log4cxx-0.10.0-r1.ebuild b/dev-libs/log4cxx/log4cxx-0.10.0-r1.ebuild deleted file mode 100644 index adc8b749d16b..000000000000 --- a/dev-libs/log4cxx/log4cxx-0.10.0-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MY_P=apache-${P} - -DESCRIPTION="Library of C++ classes for logging to files, syslog and other destinations" -HOMEPAGE="https://logging.apache.org/log4cxx/" -SRC_URI="mirror://apache/logging/${PN}/${PV}/${MY_P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos" -IUSE="iodbc unicode odbc smtp" -# test suite fails -RESTRICT="test" - -RDEPEND=" - dev-libs/apr:1 - dev-libs/apr-util:1 - odbc? ( - iodbc? ( >=dev-db/libiodbc-3.52.4 ) - !iodbc? ( dev-db/unixODBC ) - ) - smtp? ( net-libs/libesmtp )" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${MY_P}" - -HTML_DOCS=( site/. ) -PATCHES=( - "${FILESDIR}"/${PN}-0.10.0-missing_includes.patch - "${FILESDIR}"/${PN}-0.10.0-gcc44.patch - "${FILESDIR}"/${PN}-0.10.0-unixODBC.patch - "${FILESDIR}"/${PN}-0.10.0-fix-c++14.patch -) - -pkg_setup() { - if use iodbc && ! use odbc; then - elog "Please enable the odbc USE-flag as well if you want odbc-support through iodbc." - fi -} - -src_configure() { - econf \ - --disable-static \ - --disable-doxygen \ - --disable-html-docs \ - --with-apr-util="${ESYSROOT}"/usr \ - $(use_with smtp SMTP libesmtp) \ - $(use_with odbc ODBC $(usex iodbc iODBC unixODBC)) \ - --with-charset=$(usex unicode utf-8 auto) -} - -src_install() { - default - - docinto examples - dodoc src/examples/cpp/*.cpp - docompress -x /usr/share/doc/${PF}/examples - - # package provides .pc files - find "${ED}" -name '*.la' -delete || die -} |