Skip to contentSkip to conversation

package: add the poco C++ libraries collection

PATCH New Baruch Siach 2 participants 2 messages Oct 4, 2011 – Oct 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 package: add the poco C++ libraries collection

Add the C++ Portable Components libraries.

The Data/ODBC components is disabled because its dependency (unixODBC) is not in Buildroot.

The Data/MySQL component is build tested only. It probably requires an additional RPATH to actually run, because libmysqlclient resides in a non-standard location under /usr/lib/mysql.

---
Changes from v3:
Fix circular dependency: BR2_INSTALL_LIBSTDCPP selects BR2_LARGEFILE Remove unused GENTARGETS parameters

Changes from v2:
Add dependency on WCHAR and C++
Move the toolchain requirement comment to the end of Config.in Update to version 1.4.2p1
Disable FPENVIRONEMENT and std::wstring when linking against uClibc

Changes from v1:
Rebase on version 2011.08
Update to version 1.4.2
Fix the changelog text

 package/Config.in                                  |    1 +
 package/poco/Config.in                             |   57 ++++++++++++++
 .../poco/poco-1.4.2p1-add-cross-build-config.patch |   82 ++++++++++++++++++++
 .../poco-1.4.2p1-add-staging-search-path.patch     |   22 +++++
 .../poco/poco-1.4.2p1-dont-build-debug-libs.patch  |   19 +++++
 package/poco/poco.mk                               |   57 ++++++++++++++
 6 files changed, 238 insertions(+), 0 deletions(-)
 create mode 100644 package/poco/Config.in
 create mode 100644 package/poco/poco-1.4.2p1-add-cross-build-config.patch
 create mode 100644 package/poco/poco-1.4.2p1-add-staging-search-path.patch
 create mode 100644 package/poco/poco-1.4.2p1-dont-build-debug-libs.patch
 create mode 100644 package/poco/poco.mk
package/Config.in +1 -0
index 8b9c816..fd920c3 100644
@@ -353,6 +353,7 @@ source "package/libnspr/Config.in"
 source "package/liboil/Config.in"
 source "package/libsigc/Config.in"
 source "package/orc/Config.in"
+source "package/poco/Config.in"
 source "package/startup-notification/Config.in"
 endmenu
 
package/poco/Config.in new file +57 -0

57 lines not on this page · raw message

package/poco/poco-1.4.2p1-add-cross-build-config.patch new file +82 -0

82 lines not on this page · raw message

package/poco/poco-1.4.2p1-add-staging-search-path.patch new file +22 -0
new file mode 100644
index 0000000..18ee076
@@ -0,0 +1,22 @@
+From: Baruch Siach <[email protected]>
+Subject: [PATCH] poco: add the staging path to search path
+
+Add the mysql headers and client libraries to the search path of the
+preprocessor and the linker. The $MYSQL_LIBDIR variable must be set from the
+make command line.
+
+Signed-off-by: Baruch Siach <[email protected]>
+--- 
+--- poco-1.4.1p1-all-dist/Data/MySQL/Makefile	2011-02-09 11:13:00.000000000 +0200
++++ poco-1.4.1p1-all/Data/MySQL/Makefile	2011-08-07 09:03:37.106161274 +0300
+@@ -8,8 +8,8 @@
+ 
+ include $(POCO_BASE)/build/rules/global
+ 
+-SYSLIBS += -L/usr/local/lib/mysql -L/usr/lib/mysql -L/usr/mysql/lib/mysql -L/usr/local/mysql/lib -lmysqlclient
+-INCLUDE += -I/usr/local/include/mysql/ -I/usr/include/mysql -I/usr/mysql/include/mysql -I/usr/local/mysql/include
++SYSLIBS += -L$(MYSQL_LIBDIR) -L/usr/local/lib/mysql -L/usr/lib/mysql -L/usr/mysql/lib/mysql -L/usr/local/mysql/lib -lmysqlclient
++INCLUDE += -I/usr/local/include/mysql/ -I/usr/include/mysql -I/usr/mysql/include/mysql -I/usr/local/mysql/include -I=/mysql
+ SYSFLAGS += -DTHREADSAFE -DNO_TCL
+ 
+ objects = Binder Extractor SessionImpl Connector \
package/poco/poco-1.4.2p1-dont-build-debug-libs.patch new file +19 -0
new file mode 100644
index 0000000..7480963
@@ -0,0 +1,19 @@
+From: Baruch Siach <[email protected]>
+Subject: [PATCH] poco: don't build debug libraries
+
+Remove the debug libraries build dependency from the default target.
+
+Signed-off-by: Baruch Siach <[email protected]>
+---
+
+--- poco-1.4.1p1-dist/build/rules/compile	2011-02-09 11:12:24.000000000 +0200
++++ poco-1.4.1p1/build/rules/compile	2011-08-03 07:51:42.946044176 +0300
+@@ -14,7 +14,7 @@
+ 
+ all: $(DEFAULT_TARGET)
+ all_static: static_debug static_release
+-all_shared: shared_debug shared_release
++all_shared: shared_release
+ all_debug: static_debug shared_debug
+ all_release: static_release shared_release
+ 
package/poco/poco.mk new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
1.7.6.3
#1 lore raw

PATCH v4 1/1 package: add the poco C++ libraries collection

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Baruch> Add the C++ Portable Components libraries.
Baruch> The Data/ODBC components is disabled because its dependency (unixODBC) is not Baruch> in Buildroot.

Baruch> The Data/MySQL component is build tested only. It probably requires an Baruch> additional RPATH to actually run, because libmysqlclient resides in a Baruch> non-standard location under /usr/lib/mysql.

Baruch> diff --git a/package/poco/Config.in b/package/poco/Config.in Baruch> new file mode 100644
Baruch> index 0000000..a815a09
Baruch> --- /dev/null
Baruch> +++ b/package/poco/Config.in
Baruch> @@ -0,0 +1,57 @@
Baruch> +config BR2_PACKAGE_POCO
Baruch> + bool "poco"
Baruch> + select BR2_PACKAGE_ZLIB
Baruch> + select BR2_PACKAGE_PCRE
Baruch> + select BR2_INSTALL_LIBSTDCPP
Baruch> + select BR2_USE_WCHAR

We use 'depends on' for toolchain options, as you cannot easily change those. Other than that it looks good, committed - Thanks.

Signature · 1 line
Bye, Peter Korsgaard