package/qpid-proton: bump to version 0.33.0
PATCH v2 1/1 package/qpid-proton: bump to version 0.33.0
- Update site to get latest version
- Remove all patches (already in version)
- License file has been renamed and slightly updated to change paths since version 0.23.0 and
https://github.com/apache/qpid-proton/commit/37136940e3077f25ce58c94775f48c66f666f4a8
- Remove BUILD_{JAVA,JAVASCRIPT,PERL,PHP} as those bindings don't exist anymore
- Disable go binding
- Disable fuzz testing
- Add new optional libuv and jsoncpp dependencies
- Update QPID_PROTON_REMOVE_USELESS_FILES
---
Changes v1 -> v2:
- Bump to version 0.33.0 and removed patch applied uptream
...ON-1326-Modify-openssl-DH-code-to-wo.patch | 78 ------------------- ...ore-anonymous-cyphers-by-lowering-Op.patch | 62 --------------- ...openssl-error-handling-causing-spuri.patch | 58 -------------- ...l-openssl-add-libressl-compatibility.patch | 53 ------------- package/qpid-proton/qpid-proton.hash | 7 +- package/qpid-proton/qpid-proton.mk | 28 ++++--- 6 files changed, 22 insertions(+), 264 deletions(-) delete mode 100644 package/qpid-proton/0001-PROTON-1381-PROTON-1326-Modify-openssl-DH-code-to-wo.patch delete mode 100644 package/qpid-proton/0002-PROTON-1326-restore-anonymous-cyphers-by-lowering-Op.patch delete mode 100644 package/qpid-proton/0003-PROTON-1587-fix-openssl-error-handling-causing-spuri.patch delete mode 100644 package/qpid-proton/0004-src-ssl-openssl-add-libressl-compatibility.patch
package/qpid-proton/0001-PROTON-1381-PROTON-1326-Modify-openssl-DH-code-to-wo.patch deleted +0 -78
@@ -1,78 +0,0 @@ -From bc872440428073e86ce2631276dc8b7f62da4c33 Mon Sep 17 00:00:00 2001 -From: Andrew Stitcher <[email protected]> -Date: Tue, 17 Jan 2017 02:10:48 -0500 -Subject: [PATCH] PROTON-1381, PROTON-1326: Modify openssl DH code to work with - openssl 1.1 Modified patch from Volker Diels-Grabsch - -Upstream: https://github.com/apache/qpid-proton/commit/bc872440428073e86ce2631276dc8b7f62da4c33 - -Signed-off-by: Matthew Weber <[email protected]> ---- - proton-c/src/ssl/openssl.c | 37 +++++++++++++++++++++++++++---------- - 1 file changed, 27 insertions(+), 10 deletions(-) - -diff --git a/proton-c/src/ssl/openssl.c b/proton-c/src/ssl/openssl.c -index 0b7d157..0c51c03 100644 ---- a/proton-c/src/ssl/openssl.c -+++ b/proton-c/src/ssl/openssl.c -@@ -356,12 +356,22 @@ static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) - return preverify_ok; - } - -+// This was introduced in v1.1 -+#if OPENSSL_VERSION_NUMBER < 0x10100000 -+int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) -+{ -+ dh->p = p; -+ dh->q = q; -+ dh->g = g; -+ return 1; -+} -+#endif - - // this code was generated using the command: - // "openssl dhparam -C -2 2048" - static DH *get_dh2048(void) - { -- static const unsigned char dh2048_p[]={ -+ static const unsigned char dhp_2048[]={ - 0xAE,0xF7,0xE9,0x66,0x26,0x7A,0xAC,0x0A,0x6F,0x1E,0xCD,0x81, - 0xBD,0x0A,0x10,0x7E,0xFA,0x2C,0xF5,0x2D,0x98,0xD4,0xE7,0xD9, - 0xE4,0x04,0x8B,0x06,0x85,0xF2,0x0B,0xA3,0x90,0x15,0x56,0x0C, -@@ -385,17 +395,24 @@ static DH *get_dh2048(void) - 0xA4,0xED,0xFD,0x49,0x0B,0xE3,0x4A,0xF6,0x28,0xB3,0x98,0xB0, - 0x23,0x1C,0x09,0x33, - }; -- static const unsigned char dh2048_g[]={ -+ static const unsigned char dhg_2048[]={ - 0x02, - }; -- DH *dh; -- -- if ((dh=DH_new()) == NULL) return(NULL); -- dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); -- dh->g=BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL); -- if ((dh->p == NULL) || (dh->g == NULL)) -- { DH_free(dh); return(NULL); } -- return(dh); -+ DH *dh = DH_new(); -+ BIGNUM *dhp_bn, *dhg_bn; -+ -+ if (dh == NULL) -+ return NULL; -+ dhp_bn = BN_bin2bn(dhp_2048, sizeof (dhp_2048), NULL); -+ dhg_bn = BN_bin2bn(dhg_2048, sizeof (dhg_2048), NULL); -+ if (dhp_bn == NULL || dhg_bn == NULL -+ || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) { -+ DH_free(dh); -+ BN_free(dhp_bn); -+ BN_free(dhg_bn); -+ return NULL; -+ } -+ return dh; - } - - typedef struct { --- -1.9.1 -
package/qpid-proton/0002-PROTON-1326-restore-anonymous-cyphers-by-lowering-Op.patch deleted +0 -62
62 lines not on this page · raw message
package/qpid-proton/0003-PROTON-1587-fix-openssl-error-handling-causing-spuri.patch deleted +0 -58
58 lines not on this page · raw message
package/qpid-proton/0004-src-ssl-openssl-add-libressl-compatibility.patch deleted +0 -53
53 lines not on this page · raw message
package/qpid-proton/qpid-proton.hash +4 -3
@@ -1,4 +1,5 @@ -# Hash from: http://www.apache.org/dist/qpid/proton/0.9.1/qpid-proton-0.9.1.tar.gz.sha -sha1 98008d90acd0d47cbd7ac1572a2bb50b452338ed qpid-proton-0.9.1.tar.gz +# Hash from: https://www.apache.org/dist/qpid/proton/0.33.0/qpid-proton-0.33.0.tar.gz.sha512 +sha512 d82cade354fd01f2cf7a3e0c17d48cdfa3bde263c8571762cdeb0b4da6ef2d6fd6f97cdba4fa4e8fc1b5368c54ccd2ca860fb56f46f58091c91deab843a17cf2 qpid-proton-0.33.0.tar.gz + # Locally computed -sha256 9fade5e12873678456137b36cfa4a5983c3793836d41c011f2c2abb02ca36a66 LICENSE +sha256 52310e65489d30afeefc8589479fc02862a875349c19edd165658a915009da82 LICENSE.txt
package/qpid-proton/qpid-proton.mk +18 -10
@@ -4,34 +4,42 @@ # ################################################################################ -QPID_PROTON_VERSION = 0.9.1 -QPID_PROTON_SITE = http://apache.panu.it/qpid/proton/$(QPID_PROTON_VERSION) -QPID_PROTON_STRIP_COMPONENTS = 2 +QPID_PROTON_VERSION = 0.33.0 +QPID_PROTON_SITE = \ + https://downloads.apache.org/qpid/proton/$(QPID_PROTON_VERSION) QPID_PROTON_LICENSE = Apache-2.0 -QPID_PROTON_LICENSE_FILES = LICENSE +QPID_PROTON_LICENSE_FILES = LICENSE.txt QPID_PROTON_CPE_ID_VENDOR = apache QPID_PROTON_CPE_ID_PRODUCT = qpid_proton QPID_PROTON_INSTALL_STAGING = YES QPID_PROTON_DEPENDENCIES = \ host-python \ util-linux \ + $(if $(BR2_PACKAGE_LIBUV),libuv) \ $(if $(BR2_PACKAGE_OPENSSL),openssl) -# Language bindings are enabled when host-swig tool is present in HOST_DIR. +# python and ruby language bindings are enabled when host-swig tool is present +# in HOST_DIR. +# go language binding is enabled when host-go is present # For now, disable all of them. QPID_PROTON_CONF_OPTS = \ - -DBUILD_JAVA=OFF \ - -DBUILD_JAVASCRIPT=OFF \ - -DBUILD_PERL=OFF \ - -DBUILD_PHP=OFF \ + -DBUILD_GO=OFF \ -DBUILD_PYTHON=OFF \ -DBUILD_RUBY=OFF \ + -DENABLE_FUZZ_TESTING=OFF \ -DENABLE_VALGRIND=OFF \ -DENABLE_WARNING_ERROR=OFF \ -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python2 +ifeq ($(BR2_PACKAGE_JSONCPP),y) +QPID_PROTON_DEPENDENCIES += jsoncpp +QPID_PROTON_CONF_OPTS += -DENABLE_JSONCPP=ON +else +QPID_PROTON_CONF_OPTS += -DENABLE_JSONCPP=OFF +endif + define QPID_PROTON_REMOVE_USELESS_FILES - rm -fr $(TARGET_DIR)/usr/share/proton-*/ + rm -fr $(TARGET_DIR)/usr/share/proton/ endef QPID_PROTON_POST_INSTALL_TARGET_HOOKS += QPID_PROTON_REMOVE_USELESS_FILES
Signature · 1 line
2.29.2
PATCH v2 1/1 package/qpid-proton: bump to version 0.33.0
Hi Fabrice,
Quoted 12 lines · Fabrice Fontaine
- Update site to get latest version
- Remove all patches (already in version)
- License file has been renamed and slightly updated to change paths since version 0.23.0 and
https://github.com/apache/qpid-proton/commit/37136940e3077f25ce58c94775f48c66f666f4a8
- Remove BUILD_{JAVA,JAVASCRIPT,PERL,PHP} as those bindings don't exist anymore
- Disable go binding
- Disable fuzz testing
- Add new optional libuv and jsoncpp dependencies
- UpdateQPID_PROTON_REMOVE_USELESS_FILES
Quoted 1 line
Signed-off-by Fabrice Fontaine <[email protected]>
Thanks!
Signature · 1 line
Luca
Thomas Petazzoni
AppliedPATCH v2 1/1 package/qpid-proton: bump to version 0.33.0
In reply to Fabrice FontaineQuoted 12 lines · On Tue, 2 Feb 2021 18:27:05 +0100 Fabrice Fontaine…
- Update site to get latest version
- Remove all patches (already in version)
- License file has been renamed and slightly updated to change paths since version 0.23.0 and
https://github.com/apache/qpid-proton/commit/37136940e3077f25ce58c94775f48c66f666f4a8
- Remove BUILD_{JAVA,JAVASCRIPT,PERL,PHP} as those bindings don't exist anymore
- Disable go binding
- Disable fuzz testing
- Add new optional libuv and jsoncpp dependencies
- UpdateQPID_PROTON_REMOVE_USELESS_FILES
Quoted 4 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2:
- Bump to version 0.33.0 and removed patch applied uptream
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com