libgcrypt: update from version 1.8.0 to 1.8.1
PATCH v2 1/2 libgcrypt: update from version 1.8.0 to 1.8.1
Update libgcrypt version from 1.8.0 to 1.8.1.
---
.../libgcrypt/{libgcrypt_1.8.0.bb => libgcrypt_1.8.1.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta/recipes-support/libgcrypt/{libgcrypt_1.8.0.bb => libgcrypt_1.8.1.bb} (89%)meta/recipes-support/libgcrypt/libgcrypt_1.8.1.bb renamed from meta/recipes-support/libgcrypt/libgcrypt_1.8.0.bb +3 -3
@@ -15,14 +15,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ DEPENDS = "libgpg-error" UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" -SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \ +SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ file://0001-Add-and-use-pkg-config-for-libgcrypt-instead-of-conf.patch \ file://0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch \ file://0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ " -SRC_URI[md5sum] = "110ce4352f9ea6f560bdc6c5644ae93c" -SRC_URI[sha256sum] = "f6e470b7f2d3a703e8747f05a8c19d9e10e26ebf2d5f3d71ff75a40f504e12ee" +SRC_URI[md5sum] = "b21817f9d850064d2177285f1073ec55" +SRC_URI[sha256sum] = "7a2875f8b1ae0301732e878c0cca2c9664ff09ef71408f085c50e332656a78b3" BINCONFIG = "${bindir}/libgcrypt-config"
Signature · 1 line
2.11.0
PATCH v2 2/2 libgcrypt: provide libgcrypt-config wrapper around pkg-config
This patch adds a libgcrypt-config wrapper for pkg-config support in order to avoid patching all upstream packages using libgcrypt, while otherwise keeping pkg-config functionality.
--- .../libgcrypt/files/libgcrypt-config-wrapper.patch | 113 +++++++++++++++++++++ meta/recipes-support/libgcrypt/libgcrypt_1.8.1.bb | 7 +- 2 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 meta/recipes-support/libgcrypt/files/libgcrypt-config-wrapper.patch
meta/recipes-support/libgcrypt/files/libgcrypt-config-wrapper.patch new file +113 -0
@@ -0,0 +1,113 @@ +diff -ur libgcrypt-1.8.1.orig/src/libgcrypt-config.in libgcrypt-1.8.1.new/src/libgcrypt-config.in +--- libgcrypt-1.8.1.orig/src/libgcrypt-config.in 2013-03-15 21:25:38.000000000 +0200 ++++ libgcrypt-1.8.1.new/src/libgcrypt-config.in 2017-09-15 13:56:20.368277151 +0300 +@@ -11,30 +11,6 @@ + # + # File: @configure_input@ + +-# General. +-prefix="@prefix@" +-exec_prefix="@exec_prefix@" +-version="@VERSION@" +-includedir="@includedir@" +-libdir="@libdir@" +-gpg_error_libs="@GPG_ERROR_LIBS@" +-gpg_error_cflags="@GPG_ERROR_CFLAGS@" +- +-# libgcrypt values. +-libs="@LIBGCRYPT_CONFIG_LIBS@" +-cflags="@LIBGCRYPT_CONFIG_CFLAGS@" +- +-# API info +-api_version="@LIBGCRYPT_CONFIG_API_VERSION@" +- +-# Configured for host +-my_host="@LIBGCRYPT_CONFIG_HOST@" +- +-# Misc information. +-symmetric_ciphers="@LIBGCRYPT_CIPHERS@" +-asymmetric_ciphers="@LIBGCRYPT_PUBKEY_CIPHERS@" +-digests="@LIBGCRYPT_DIGESTS@" +- + # State variables. + echo_libs=no + echo_cflags=no +@@ -122,68 +98,35 @@ + done + + if test "$echo_prefix" = "yes"; then +- echo "$prefix" ++ pkg-config --variable=prefix libgcrypt + fi + + if test "$echo_exec_prefix" = "yes"; then +- echo "$exec_prefix" ++ pkg-config --variable=exec_prefix libgcrypt + fi + + if test "$echo_cflags" = "yes"; then +- includes="" +- cflags_final="$cflags" +- +- # Set up `includes'. +- if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then +- includes="-I$includedir" +- fi +- # Set up `cflags_final'. +- cflags_final="$cflags_final $gpg_error_cflags" +- +- tmp="" +- for i in $includes $cflags_final; do +- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then +- tmp="$tmp $i" +- fi +- done +- echo $tmp ++ pkg-config --cflags libgcrypt + fi + + if test "$echo_libs" = "yes"; then +- libdirs="" +- libs_final="$libs" +- +- # Set up `libdirs'. +- if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then +- libdirs="-L$libdir" +- fi +- +- # Set up `libs_final'. +- libs_final="$libs_final $gpg_error_libs" +- +- tmp="" +- for i in $libdirs $libs_final; do +- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then +- tmp="$tmp $i" +- fi +- done +- echo $tmp ++ pkg-config --libs libgcrypt + fi + + if test "$echo_version" = "yes"; then +- echo "$version" ++ pkg-config --modversion libgcrypt + fi + + if test "$echo_api_version" = "yes"; then +- echo "$api_version" ++ pkg-config --variable=api_version libgcrypt + fi + + if test "$echo_host" = "yes"; then +- echo "$my_host" ++ pkg-config --variable=host libgcrypt + fi + + if test "$echo_algorithms" = "yes"; then +- echo "Symmetric cipher algorithms: $symmetric_ciphers" +- echo "Public-key cipher algorithms: $asymmetric_ciphers" +- echo "Message digest algorithms: $digests" ++ pkg-config --variable=symmetric_ciphers libgcrypt ++ pkg-config --variable=asymmetric_ciphers libgcrypt ++ pkg-config --variable=digests libgcrypt + fi
meta/recipes-support/libgcrypt/libgcrypt_1.8.1.bb +3 -4
@@ -20,13 +20,12 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ file://0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch \ file://0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ + file://libgcrypt-config-wrapper.patch \ " SRC_URI[md5sum] = "b21817f9d850064d2177285f1073ec55" SRC_URI[sha256sum] = "7a2875f8b1ae0301732e878c0cca2c9664ff09ef71408f085c50e332656a78b3" -BINCONFIG = "${bindir}/libgcrypt-config" - -inherit autotools texinfo binconfig-disabled pkgconfig +inherit autotools texinfo pkgconfig binconfig EXTRA_OECONF = "--disable-asm" EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'"
@@ -47,7 +46,7 @@ do_install_append() { PACKAGES =+ "dumpsexp-dev" -FILES_${PN}-dev += "${bindir}/hmac256" +FILES_${PN}-dev += "${bindir}/hmac256 ${bindir}/libgcrypt-config" FILES_dumpsexp-dev += "${bindir}/dumpsexp" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.11.0
✗ patchtest: failure for "[meta-oe,v2] libgcrypt: update..." and 1 more
In reply to Jussi Laako== Series Details ==
Series: "[meta-oe,v2] libgcrypt: update..." and 1 more
Revision: 1
URL : https://patchwork.openembedded.org/series/8925/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Added patch file is missing Upstream-Status in the header [test_upstream_status_presence]
Suggested fix Add Upstream-Status: <status> to the header of meta/recipes-support/libgcrypt/files/libgcrypt-config-wrapper.patch (possible values: Pending, Submitted, Accepted, Backport, Denied, Inappropriate)
* Issue A patch file has been added, but does not have a Signed-off-by tag [test_signed_off_by_presence]
Suggested fix Sign off the added patch file (meta/recipes-support/libgcrypt/files/libgcrypt-config-wrapper.patch)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe