diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-13 20:01:48 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-14 11:01:25 +0100 |
commit | d1bf322af4e8eea8dad8a62cc937ceb817f898b7 (patch) | |
tree | c9dfc5f177a49b753cef355a28cb71dfafcd7144 | |
parent | 6feaf40c564641ff6240bfc146f6fadf17d72c83 (diff) | |
download | ptxdist-d1bf322af4e8eea8dad8a62cc937ceb817f898b7.tar.gz ptxdist-d1bf322af4e8eea8dad8a62cc937ceb817f898b7.tar.xz |
commoncpp2: version bump 1.8.0 -> 1.8.1
also add upstream patch to fix building with gcc 4.5
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/commoncpp2-1.8.0/abort-needs-cstdlib.diff | 67 | ||||
-rw-r--r-- | patches/commoncpp2-1.8.0/series | 3 | ||||
-rw-r--r-- | patches/commoncpp2-1.8.0/throw-wrapper.diff | 133 | ||||
-rw-r--r-- | patches/commoncpp2-1.8.1/0001-Add-SYSROOT-capability.patch (renamed from patches/commoncpp2-1.8.0/src_ccgnu2-config_in-sysroot-fix.diff) | 31 | ||||
-rw-r--r-- | patches/commoncpp2-1.8.1/0002-Added-missing-include-gcc-4.5.1-error.patch | 35 | ||||
-rw-r--r-- | patches/commoncpp2-1.8.1/series | 4 | ||||
-rw-r--r-- | rules/commoncpp2.make | 2 |
7 files changed, 57 insertions, 218 deletions
diff --git a/patches/commoncpp2-1.8.0/abort-needs-cstdlib.diff b/patches/commoncpp2-1.8.0/abort-needs-cstdlib.diff deleted file mode 100644 index 394c5c529..000000000 --- a/patches/commoncpp2-1.8.0/abort-needs-cstdlib.diff +++ /dev/null @@ -1,67 +0,0 @@ -From: Robert Schwebel <r.schwebel@pengutronix.de> -Subject: [PATCH] abort needs cstdlib - -Fix this compile error when compiled --without-exceptions: - -libtool: compile: arm-1136jfs-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -isystem /home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-target/include -isystem /home/rsc/svn/oselas/bsp/pengutronix/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-target/usr/include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -fno-exceptions -fno-rtti -fno-check-new -finline -I../inc -g -O2 -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c mutex.cpp -fPIC -DPIC -o .libs/mutex.o -mutex.cpp: In constructor 'ost::Conditional::Conditional(const char*)': -mutex.cpp:145: error: 'abort' was not declared in this scope - -Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> ---- -# rsc: https://savannah.gnu.org/patch/index.php?7198 - - src/engine.cpp | 1 + - src/mempager.cpp | 1 + - src/mutex.cpp | 1 + - src/semaphore.cpp | 1 + - 4 files changed, 4 insertions(+) - -Index: commoncpp2-1.8.0/src/mutex.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/mutex.cpp -+++ commoncpp2-1.8.0/src/mutex.cpp -@@ -44,6 +44,7 @@ - #include <cc++/slog.h> - #include <iostream> - #include <cerrno> -+#include <cstdlib> - - #ifdef HAVE_GCC_CXX_BITS_ATOMIC - using namespace __gnu_cxx; -Index: commoncpp2-1.8.0/src/semaphore.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/semaphore.cpp -+++ commoncpp2-1.8.0/src/semaphore.cpp -@@ -42,6 +42,7 @@ - #include <cc++/thread.h> - #include "private.h" - #include <cstdio> -+#include <cstdlib> - - #ifdef CCXX_NAMESPACES - namespace ost { -Index: commoncpp2-1.8.0/src/mempager.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/mempager.cpp -+++ commoncpp2-1.8.0/src/mempager.cpp -@@ -41,6 +41,7 @@ - #include <cc++/slog.h> - #include <cc++/thread.h> - #include <cc++/misc.h> -+#include <cstdlib> - #include "private.h" - - #ifdef CCXX_NAMESPACES -Index: commoncpp2-1.8.0/src/engine.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/engine.cpp -+++ commoncpp2-1.8.0/src/engine.cpp -@@ -39,6 +39,7 @@ - #include <cc++/config.h> - #include <cc++/string.h> - #include <cc++/exception.h> -+#include <cstdlib> - - #if !defined(_MSC_VER) || _MSC_VER >= 1300 - diff --git a/patches/commoncpp2-1.8.0/series b/patches/commoncpp2-1.8.0/series deleted file mode 100644 index 5e8db52f4..000000000 --- a/patches/commoncpp2-1.8.0/series +++ /dev/null @@ -1,3 +0,0 @@ -src_ccgnu2-config_in-sysroot-fix.diff -abort-needs-cstdlib.diff -throw-wrapper.diff diff --git a/patches/commoncpp2-1.8.0/throw-wrapper.diff b/patches/commoncpp2-1.8.0/throw-wrapper.diff deleted file mode 100644 index 549e22ec2..000000000 --- a/patches/commoncpp2-1.8.0/throw-wrapper.diff +++ /dev/null @@ -1,133 +0,0 @@ -Subject: [PATCH] Fix --without-exceptions -From: Robert Schwebel <r.schwebel@pengutronix.de> - -If built --without-exceptions, use the THROW() macro instead of calling -throw directly. The files that use THROW() do also have to include -cstdlib. Fixes a bunch of compile errors. - -Signed-of-by: Robert Schwebel <r.schwebel@pengutronix.de> ---- -# rsc: https://savannah.gnu.org/patch/index.php?7199 - - inc/cc++/applog.h | 2 ++ - src/applog.cpp | 19 ++++++++++--------- - src/socket.cpp | 4 ++-- - 3 files changed, 14 insertions(+), 11 deletions(-) - -Index: commoncpp2-1.8.0/src/socket.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/socket.cpp -+++ commoncpp2-1.8.0/src/socket.cpp -@@ -581,13 +581,13 @@ Socket::Error Socket::error(Error err, c - #ifdef CCXX_EXCEPTIONS - switch(Thread::getException()) { - case Thread::throwObject: -- throw((Socket *)this); -+ THROW((Socket *)this); - #ifdef COMMON_STD_EXCEPTION - case Thread::throwException: - { - if(!errs) - errs = (char *)""; -- throw SockException(String(errs), err, systemError); -+ THROW(SockException(String(errs), err, systemError)); - } - #endif - case Thread::throwNothing: -Index: commoncpp2-1.8.0/inc/cc++/applog.h -=================================================================== ---- commoncpp2-1.8.0.orig/inc/cc++/applog.h -+++ commoncpp2-1.8.0/inc/cc++/applog.h -@@ -123,6 +123,7 @@ class __EXPORT HEXdump - - }; - -+#ifdef CCXX_EXCEPTIONS - /** - * Applog exception, used for memory problems at the moment - * -@@ -137,6 +138,7 @@ class __EXPORT AppLogException : public - AppLogException(const std::string &what_arg) : ost::Exception(what_arg) {}; - - }; -+#endif - - class AppLogPrivate; - -Index: commoncpp2-1.8.0/src/applog.cpp -=================================================================== ---- commoncpp2-1.8.0.orig/src/applog.cpp -+++ commoncpp2-1.8.0/src/applog.cpp -@@ -42,6 +42,7 @@ - #include <iomanip> - #include <iostream> - #include <cstdio> -+#include <cstdlib> - #include <stdarg.h> - #include <errno.h> - -@@ -301,11 +302,11 @@ logger::logger(const char* logFileName, - _logfs.open(_nomeFile.c_str(), std::fstream::in | std::fstream::out); - } - else -- throw AppLogException("Can't create pipe"); -+ THROW(AppLogException("Can't create pipe")); - } - #endif - if (_logfs.fail()) -- throw AppLogException("Can't open log file name"); -+ THROW(AppLogException("Can't open log file name")); - } - } - -@@ -346,11 +347,11 @@ void logger::logFileName(const char* Fil - _logfs.open(_nomeFile.c_str(), std::fstream::in | std::fstream::out); - } - else -- throw AppLogException("Can't create pipe"); -+ THROW(AppLogException("Can't create pipe")); - } - #endif - if (_logfs.fail()) -- throw AppLogException("Can't open log file name"); -+ THROW(AppLogException("Can't open log file name")); - } - - } -@@ -407,7 +408,7 @@ AppLog::AppLog(const char* logFileName, - d= NULL; // pedantic fussy about initing members before base classes... - d = new AppLogPrivate(); - if (!d) -- throw AppLogException("Memory allocation problem"); -+ THROW(AppLogException("Memory allocation problem")); - - d->_nomeFile = ""; - d->_logDirectly = logDirectly; -@@ -460,11 +461,11 @@ AppLog::AppLog(const char* logFileName, - d->_logfs.open(d->_nomeFile.c_str(), std::fstream::in | std::fstream::out); - } - else -- throw AppLogException("Can't create pipe"); -+ THROW(AppLogException("Can't create pipe")); - } - #endif - if (d->_logfs.fail()) -- throw AppLogException("Can't open log file name"); -+ THROW(AppLogException("Can't open log file name")); - } - - //from Error level on write to syslog also -@@ -562,11 +563,11 @@ void AppLog::logFileName(const char* Fil - d->_logfs.open(d->_nomeFile.c_str(), std::fstream::in | std::fstream::out); - } - else -- throw AppLogException("Can't create pipe"); -+ THROW(AppLogException("Can't create pipe")); - } - #endif - if (d->_logfs.fail()) -- throw AppLogException("Can't open log file name"); -+ THROW(AppLogException("Can't open log file name")); - } - d->_lock.leaveMutex(); - } diff --git a/patches/commoncpp2-1.8.0/src_ccgnu2-config_in-sysroot-fix.diff b/patches/commoncpp2-1.8.1/0001-Add-SYSROOT-capability.patch index 51b74a3aa..d768aa99e 100644 --- a/patches/commoncpp2-1.8.0/src_ccgnu2-config_in-sysroot-fix.diff +++ b/patches/commoncpp2-1.8.1/0001-Add-SYSROOT-capability.patch @@ -1,18 +1,18 @@ From: Marc Kleine-Budde <mkl@pengutronix.de> -Subject: Add ${SYSROOT} capability +Date: Sun, 13 Feb 2011 19:59:43 +0100 +Subject: [PATCH] Add ${SYSROOT} capability Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> ---- # rsc: https://savannah.gnu.org/patch/index.php?6971 - +--- src/ccgnu2-config.in | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + 1 files changed, 3 insertions(+), 3 deletions(-) -Index: commoncpp2-1.8.0/src/ccgnu2-config.in -=================================================================== ---- commoncpp2-1.8.0.orig/src/ccgnu2-config.in -+++ commoncpp2-1.8.0/src/ccgnu2-config.in +diff --git a/src/ccgnu2-config.in b/src/ccgnu2-config.in +index 9fcafc9..9da0366 100755 +--- a/src/ccgnu2-config.in ++++ b/src/ccgnu2-config.in @@ -18,7 +18,7 @@ ccload="@DYN_LOADER@" ccstd="@SSL_LIBS@ @ZSTREAM_LIBS@" prefix="@prefix@" @@ -22,16 +22,16 @@ Index: commoncpp2-1.8.0/src/ccgnu2-config.in includedir="@includedir@" -@@ -48,7 +48,7 @@ fi - while test $# -gt 0 ; do - case "$1" in +@@ -66,7 +66,7 @@ while test $# -gt 0 ; do + libdir="-L$sysroot@libdir@" + ;; --prefix) - echo @prefix@ + echo ${SYSROOT}@prefix@ ;; - --version) - echo @VERSION@ -@@ -72,7 +72,7 @@ while test $# -gt 0 ; do + --exec-prefix=*) + exec_prefix=$optarg +@@ -97,7 +97,7 @@ while test $# -gt 0 ; do echo -lccext2 $ccstd ;; --includes) @@ -40,3 +40,6 @@ Index: commoncpp2-1.8.0/src/ccgnu2-config.in ;; --dyn | --dso) echo $ost_cv_dynloader +-- +1.7.2.3 + diff --git a/patches/commoncpp2-1.8.1/0002-Added-missing-include-gcc-4.5.1-error.patch b/patches/commoncpp2-1.8.1/0002-Added-missing-include-gcc-4.5.1-error.patch new file mode 100644 index 000000000..3516828a8 --- /dev/null +++ b/patches/commoncpp2-1.8.1/0002-Added-missing-include-gcc-4.5.1-error.patch @@ -0,0 +1,35 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Sun, 13 Feb 2011 19:59:59 +0100 +Subject: [PATCH] Added missing include (gcc 4.5.1 error) + +applog.cpp: In constructor 'ost::logger::logger(const char*, bool)': +applog.cpp:300:43: error: 'S_IREAD' was not declared in this scope +applog.cpp:300:53: error: 'S_IWRITE' was not declared in this scope +applog.cpp:300:61: error: 'mkfifo' was not declared in this scope +[...] + +this is upstream revision 1570. + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + src/applog.cpp | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/src/applog.cpp b/src/applog.cpp +index b5c02b0..71d4e12 100755 +--- a/src/applog.cpp ++++ b/src/applog.cpp +@@ -38,6 +38,10 @@ + #include <cc++/thread.h> + #include <cc++/slog.h> + #include <cc++/buffer.h> ++#ifndef WIN32 ++#include <sys/types.h> ++#include <sys/stat.h> ++#endif + #include <string> + #include <iomanip> + #include <iostream> +-- +1.7.2.3 + diff --git a/patches/commoncpp2-1.8.1/series b/patches/commoncpp2-1.8.1/series new file mode 100644 index 000000000..b94046022 --- /dev/null +++ b/patches/commoncpp2-1.8.1/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +0001-Add-SYSROOT-capability.patch +0002-Added-missing-include-gcc-4.5.1-error.patch +# f7347fbf0f5d9a0f521a925693a3028f - git-ptx-patches magic diff --git a/rules/commoncpp2.make b/rules/commoncpp2.make index b21cca946..e7d2c5cc6 100644 --- a/rules/commoncpp2.make +++ b/rules/commoncpp2.make @@ -17,7 +17,7 @@ PACKAGES-$(PTXCONF_COMMONCPP2) += commoncpp2 # # Paths and names # -COMMONCPP2_VERSION := 1.8.0 +COMMONCPP2_VERSION := 1.8.1 COMMONCPP2 := commoncpp2-$(COMMONCPP2_VERSION) COMMONCPP2_SUFFIX := tar.gz COMMONCPP2_SOURCE := $(SRCDIR)/$(COMMONCPP2).$(COMMONCPP2_SUFFIX) |