poco: bump to version 1.7.2
PATCH 1/2 poco: bump to version 1.7.2
Also:
- add a hash file.
- replace patch #0002 by passing the DEFAULT_TARGET to poco
- remove patch #0003 as it is obsolet since upstream commit 010f7a5370be450109f1726e39d5b193e63a6373
- remove patch #0004 which is applied upstream
- remove patch #0005 which is fixed by upstream different
--- .../0002-poco-don-t-build-debug-libraries.patch | 33 ---------- ...nflicting-declaration-with-unbundled-pcre.patch | 56 ----------------- package/poco/0004-fix-unbundled-pcre-usage.patch | 72 ---------------------- .../0005-add-missing-LIBPREFIX-definition.patch | 29 --------- package/poco/poco.hash | 2 + package/poco/poco.mk | 21 +++++-- 6 files changed, 18 insertions(+), 195 deletions(-) delete mode 100644 package/poco/0002-poco-don-t-build-debug-libraries.patch delete mode 100644 package/poco/0003-Fix-conflicting-declaration-with-unbundled-pcre.patch delete mode 100644 package/poco/0004-fix-unbundled-pcre-usage.patch delete mode 100644 package/poco/0005-add-missing-LIBPREFIX-definition.patch create mode 100644 package/poco/poco.hash
package/poco/0002-poco-don-t-build-debug-libraries.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From e84c85cfa6742becbd4f82047ce92290bb3ec19a Mon Sep 17 00:00:00 2001 -From: Baruch Siach <[email protected]> -Date: Tue, 4 Aug 2015 10:15:17 +0200 -Subject: [PATCH 2/2] poco: don't build debug libraries -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Remove the debug libraries build dependency from the default target. - -Signed-off-by: Baruch Siach <[email protected]> -[J?rg: Update to version 1.6.1 from github] -Signed-off-by: J?rg Krause <[email protected]> ---- - build/rules/compile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/build/rules/compile b/build/rules/compile -index 1945e3c..e0d7fbc 100644 ---- a/build/rules/compile -+++ b/build/rules/compile -@@ -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 - --- -2.5.0 -
package/poco/0003-Fix-conflicting-declaration-with-unbundled-pcre.patch deleted +0 -56
56 lines not on this page · raw message
package/poco/0004-fix-unbundled-pcre-usage.patch deleted +0 -72
72 lines not on this page · raw message
package/poco/0005-add-missing-LIBPREFIX-definition.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From c2a49cbc635d8dc894763624c061be5ae8a1a01c Mon Sep 17 00:00:00 2001 -From: Guenter Obiltschnig <[email protected]> -Date: Mon, 30 Mar 2015 16:21:01 +0200 -Subject: [PATCH] add missing LIBPREFIX definition - -Backport from upstream commit c2a49cbc635d8dc894763624c061be5ae8a1a01c -to ensure libraries are properly installed. - -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - Makefile | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/Makefile b/Makefile -index 49318a3..7ee99d8 100644 ---- a/Makefile -+++ b/Makefile -@@ -20,6 +20,8 @@ ifndef POCO_BUILD - export POCO_BUILD=$(POCO_BASE) - endif - -+LIBPREFIX ?= lib -+ - .PHONY: poco all libexecs cppunit tests samples cleans clean distclean install - - # TESTS and SAMPLES are set in config.make --- -2.6.2 -
package/poco/poco.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 cfd311ecbc9e58accf1c4ea70170af88f92f88e73dd14944e528e7f6229e6cab poco-poco-1.7.2-release.tar.gz
package/poco/poco.mk +16 -5
@@ -4,7 +4,7 @@ # ################################################################################ -POCO_VERSION = poco-1.6.1-release +POCO_VERSION = poco-1.7.2-release POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION)) POCO_LICENSE = Boost-v1.0 POCO_LICENSE_FILES = LICENSE
@@ -37,6 +37,14 @@ ifeq ($(BR2_sh4a)$(BR2_nios2),y) POCO_CONF_OPTS += --no-fpenvironment endif +ifeq ($(BR2_STATIC_LIBS),y) +POCO_MAKE_TARGET = static_release +else ifeq ($(BR2_SHARED_LIBS),y) +POCO_MAKE_TARGET = shared_release +else ifeq ($(BR2_SHARED_STATIC_LIBS),y) +POCO_MAKE_TARGET = all_release +endif + define POCO_CONFIGURE_CMDS (cd $(@D); ./configure \ --config=Linux \
@@ -49,17 +57,20 @@ define POCO_CONFIGURE_CMDS endef define POCO_BUILD_CMDS - $(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \ + $(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \ MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \ - MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql -C $(@D) + MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \ + DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D) endef define POCO_INSTALL_STAGING_CMDS - $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D) + $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \ + DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D) endef define POCO_INSTALL_TARGET_CMDS - $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) install -C $(@D) + $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \ + DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D) endef $(eval $(generic-package))
Signature · 1 line
2.8.0
PATCH 2/2 poco: add patch to fix musl build
Add patch from upstream commit 30159aea4b3f6421da9d74a8bf22aad6d3bf26b4 to fix musl build issue:
src/Error.cpp: In static member function 'static std::string Poco::Error::getMessage(int)':
src/Error.cpp:71:55: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
return std::string(strerror_r(errorCode, errmsg, 256));
There are 2 flavors of strerror_r, a GNU which returns a string and a POSIX version which returns an int.
When the POSIX and GNU API collides musl always provides the POSIX API. That being the case for strerror_r musl does only support the POSIX version, despite of _GNU_SOURCE.
Only use the GNU version for glibc or uClibc.
Fixes:
http://autobuild.buildroot.net/results/cc3/cc392a6e294b9eed697b205329f8146a28e423e2/
http://autobuild.buildroot.net/results/693/693ef640a95702b20eb4e811936510e0a58cdfdd/
http://autobuild.buildroot.net/results/7f0/7f0966ee57aea574fda2157562e9c3202bd3819d/
http://autobuild.buildroot.net/results/7c0/7c02072a885a874e8b640905ef21929e6e143aae/
--- package/poco/poco.hash | 1 + package/poco/poco.mk | 1 + 2 files changed, 2 insertions(+)
package/poco/poco.hash +1 -0
@@ -1,2 +1,3 @@ # Locally computed sha256 cfd311ecbc9e58accf1c4ea70170af88f92f88e73dd14944e528e7f6229e6cab poco-poco-1.7.2-release.tar.gz +sha256 32182791e7eac00ba367d2f22dd1dd5bfce0b6d6f76fd52f853364f98402dda3 30159aea4b3f6421da9d74a8bf22aad6d3bf26b4.patch
package/poco/poco.mk +1 -0
@@ -9,6 +9,7 @@ POCO_SITE = $(call github,pocoproject,poco,$(POCO_VERSION)) POCO_LICENSE = Boost-v1.0 POCO_LICENSE_FILES = LICENSE POCO_INSTALL_STAGING = YES +POCO_PATCH = https://github.com/pocoproject/poco/commit/30159aea4b3f6421da9d74a8bf22aad6d3bf26b4.patch POCO_DEPENDENCIES = zlib pcre \ $(if $(BR2_PACKAGE_POCO_XML),expat) \
Signature · 1 line
2.8.0
PATCH 1/2 poco: bump to version 1.7.2
In reply to Jörg KrauseHello,
Quoted 7 lines · J?rg Krause
Also:
- add a hash file.
- replace patch #0002 by passing theDEFAULT_TARGETto poco
- remove patch #0003 as it is obsolet since upstream commit010f7a5370be450109f1726e39d5b193e63a6373
- remove patch #0004 which is applied upstream
- remove patch #0005 which is fixed by upstream different
Thanks a lot for describing precisely why the different patches have been dropped. Very useful!
Quoted 15 lines
Signed-off-by J?rg Krause <[email protected]>--- .../0002-poco-don-t-build-debug-libraries.patch | 33 ---------- ...nflicting-declaration-with-unbundled-pcre.patch | 56 ----------------- package/poco/0004-fix-unbundled-pcre-usage.patch | 72 ---------------------- .../0005-add-missing-LIBPREFIX-definition.patch | 29 --------- package/poco/poco.hash | 2 + package/poco/poco.mk | 21 +++++-- 6 files changed, 18 insertions(+), 195 deletions(-) delete mode 100644 package/poco/0002-poco-don-t-build-debug-libraries.patch delete mode 100644 package/poco/0003-Fix-conflicting-declaration-with-unbundled-pcre.patch delete mode 100644 package/poco/0004-fix-unbundled-pcre-usage.patch delete mode 100644 package/poco/0005-add-missing-LIBPREFIX-definition.patch create mode 100644 package/poco/poco.hash
Both patches applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com