From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 33/42] libksba: 1.3.5 -> 1.4.0
Date: Mon, 8 Jun 2020 09:46:50 +0200 [thread overview]
Message-ID: <20200608074659.7051-33-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20200608074659.7051-1-alex.kanavin@gmail.com>
Adjust the pkg-config patch:
- upstream added their own .pc file, so adding it again is not needed.
- ksba.m4 adjustment to use pkg-config remains in place, but has to be rebased.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
.../libksba/ksba-add-pkgconfig-support.patch | 130 ++++++++----------
.../{libksba_1.3.5.bb => libksba_1.4.0.bb} | 3 +-
2 files changed, 60 insertions(+), 73 deletions(-)
rename meta/recipes-support/libksba/{libksba_1.3.5.bb => libksba_1.4.0.bb} (87%)
diff --git a/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch b/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch
index 5afe6de923..ebb7fa588a 100644
--- a/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch
+++ b/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch
@@ -1,3 +1,8 @@
+From 7bd2b060e9ea3e2ff11e67d1e98ab882819b28b7 Mon Sep 17 00:00:00 2001
+From: Chen Qi <Qi.Chen@windriver.com>
+Date: Mon, 3 Dec 2012 18:17:31 +0800
+Subject: [PATCH] libksba: add pkgconfig support
+
Upstream-Status: Denied
Add pkgconfig support to libksba.
@@ -6,78 +11,49 @@ They think pkgconfig adds no portability and maintaining them is not worthwhile.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-Index: libksba-1.3.5/Makefile.am
-===================================================================
---- libksba-1.3.5.orig/Makefile.am
-+++ libksba-1.3.5/Makefile.am
-@@ -20,6 +20,9 @@
-
- ACLOCAL_AMFLAGS = -I m4 -I gl/m4
-
-+pkgconfigdir = ${libdir}/pkgconfig
-+pkgconfig_DATA = ksba.pc
-+
- # (A suitable gitlog-to-changelog script can be found in GnuPG master.)
- GITLOG_TO_CHANGELOG=gitlog-to-changelog
-
-Index: libksba-1.3.5/configure.ac
-===================================================================
---- libksba-1.3.5.orig/configure.ac
-+++ libksba-1.3.5/configure.ac
-@@ -414,6 +414,7 @@ gl/Makefile
- src/Makefile
- src/ksba-config
- src/versioninfo.rc
-+ksba.pc
- tests/Makefile
- doc/Makefile
- ])
-Index: libksba-1.3.5/ksba.pc.in
-===================================================================
---- /dev/null
-+++ libksba-1.3.5/ksba.pc.in
-@@ -0,0 +1,17 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+# API info
-+api_version=@KSBA_CONFIG_API_VERSION@
-+host=@KSBA_CONFIG_HOST@
-+
-+Name: ksba
-+Description: Libksba provides an easy API to create and parse X.509 and CMS related objects
-+Requires:
-+Version: @VERSION@
-+Libs: -L${libdir} -lksba
-+Libs.private: -L${libdir} -lgpg-error
-+Cflags: -I${includedir}
-+
-Index: libksba-1.3.5/src/ksba.m4
-===================================================================
---- libksba-1.3.5.orig/src/ksba.m4
-+++ libksba-1.3.5/src/ksba.m4
-@@ -22,18 +22,7 @@ dnl with a changed API.
+diff --git a/src/ksba.m4 b/src/ksba.m4
+index ad8de4f..af903ad 100644
+--- a/src/ksba.m4
++++ b/src/ksba.m4
+@@ -22,37 +22,6 @@ dnl with a changed API.
dnl
AC_DEFUN([AM_PATH_KSBA],
- [AC_REQUIRE([AC_CANONICAL_HOST])
-- AC_ARG_WITH(ksba-prefix,
-- AC_HELP_STRING([--with-ksba-prefix=PFX],
-- [prefix where KSBA is installed (optional)]),
+ [ AC_REQUIRE([AC_CANONICAL_HOST])
+- dnl --with-libksba-prefix=PFX is the preferred name for this option,
+- dnl since that is consistent with how our three siblings use the directory/
+- dnl package name in --with-$dir_name-prefix=PFX.
+- AC_ARG_WITH(libksba-prefix,
+- AC_HELP_STRING([--with-libksba-prefix=PFX],
+- [prefix where KSBA is installed (optional)]),
+- ksba_config_prefix="$withval", ksba_config_prefix="")
+-
+- dnl Accept --with-ksba-prefix and make it work the same as
+- dnl --with-libksba-prefix above, for backwards compatibility,
+- dnl but do not document this old, inconsistently-named option.
+- AC_ARG_WITH(ksba-prefix,,
- ksba_config_prefix="$withval", ksba_config_prefix="")
+-
- if test x$ksba_config_prefix != x ; then
-- ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
-- if test x${KSBA_CONFIG+set} != xset ; then
-- KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
-- fi
+- if test x${KSBA_CONFIG+set} != xset ; then
+- KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
+- fi
+- fi
+-
+- use_gpgrt_config=""
+- if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
+- if $GPGRT_CONFIG ksba --exists; then
+- KSBA_CONFIG="$GPGRT_CONFIG ksba"
+- AC_MSG_NOTICE([Use gpgrt-config as ksba-config])
+- use_gpgrt_config=yes
+- fi
+- fi
+- if test -z "$use_gpgrt_config"; then
+- AC_PATH_PROG(KSBA_CONFIG, ksba-config, no)
- fi
-- AC_PATH_PROG(KSBA_CONFIG, ksba-config, no)
tmp=ifelse([$1], ,1:1.0.0,$1)
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
- req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
-@@ -43,48 +32,13 @@ AC_DEFUN([AM_PATH_KSBA],
+@@ -63,56 +32,13 @@ AC_DEFUN([AM_PATH_KSBA],
min_ksba_version="$tmp"
fi
@@ -90,7 +66,11 @@ Index: libksba-1.3.5/src/ksba.m4
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
- req_micro=`echo $min_ksba_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
-- ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
+- if test -z "$use_gpgrt_config"; then
+- ksba_config_version=`$KSBA_CONFIG --version`
+- else
+- ksba_config_version=`$KSBA_CONFIG --modversion`
+- fi
- major=`echo $ksba_config_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
- minor=`echo $ksba_config_version | \
@@ -124,24 +104,32 @@ Index: libksba-1.3.5/src/ksba.m4
# Even if we have a recent libksba, we should check that the
# API is compatible.
if test "$req_ksba_api" -gt 0 ; then
-- tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
+- if test -z "$use_gpgrt_config"; then
+- tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
+- else
+- tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
+- fi
+ tmp=`$PKG_CONFIG --variable=api_version ksba`
if test "$tmp" -gt 0 ; then
AC_MSG_CHECKING([KSBA API version])
if test "$req_ksba_api" -eq "$tmp" ; then
-@@ -97,10 +51,8 @@ AC_DEFUN([AM_PATH_KSBA],
+@@ -125,14 +51,8 @@ AC_DEFUN([AM_PATH_KSBA],
fi
fi
if test $ok = yes; then
-- KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
-- KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
+- KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
+- KSBA_LIBS=`$KSBA_CONFIG --libs`
ifelse([$2], , :, [$2])
-- libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
+- if test -z "$use_gpgrt_config"; then
+- libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
+- else
+- libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
+- fi
+ libksba_config_host=`$PKG_CONFIG --variable=host ksba`
if test x"$libksba_config_host" != xnone ; then
if test x"$libksba_config_host" != x"$host" ; then
AC_MSG_WARN([[
-@@ -114,8 +66,6 @@ AC_DEFUN([AM_PATH_KSBA],
+@@ -146,8 +66,6 @@ AC_DEFUN([AM_PATH_KSBA],
fi
fi
else
diff --git a/meta/recipes-support/libksba/libksba_1.3.5.bb b/meta/recipes-support/libksba/libksba_1.4.0.bb
similarity index 87%
rename from meta/recipes-support/libksba/libksba_1.3.5.bb
rename to meta/recipes-support/libksba/libksba_1.4.0.bb
index 336d7f8177..a9daf22d77 100644
--- a/meta/recipes-support/libksba/libksba_1.3.5.bb
+++ b/meta/recipes-support/libksba/libksba_1.4.0.bb
@@ -19,8 +19,7 @@ UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
file://ksba-add-pkgconfig-support.patch"
-SRC_URI[md5sum] = "8302a3e263a7c630aa7dea7d341f07a2"
-SRC_URI[sha256sum] = "41444fd7a6ff73a79ad9728f985e71c9ba8cd3e5e53358e70d5f066d35c1a340"
+SRC_URI[sha256sum] = "bfe6a8e91ff0f54d8a329514db406667000cb207238eded49b599761bfca41b6"
do_configure_prepend () {
# Else these could be used in preference to those in aclocal-copy
--
2.26.2
next prev parent reply other threads:[~2020-06-08 7:48 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 7:46 [PATCH 01/42] linux-yocto: exclude from version checks/automated version updates Alexander Kanavin
2020-06-08 7:46 ` [PATCH 02/42] pciutils: upgrade 3.6.4 -> 3.7.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 03/42] createrepo-c: upgrade 0.15.10 -> 0.15.11 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 04/42] librepo: upgrade 1.11.3 -> 1.12.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 05/42] pkgconf: upgrade 1.6.3 -> 1.7.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 06/42] python3-numpy: upgrade 1.18.4 -> 1.18.5 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 07/42] python3-git: upgrade 3.1.2 -> 3.1.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 08/42] strace: upgrade 5.6 -> 5.7 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 09/42] acpica: upgrade 20200430 -> 20200528 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 10/42] iptables: upgrade 1.8.4 -> 1.8.5 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 11/42] libarchive: upgrade 3.4.2 -> 3.4.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 12/42] man-db: upgrade 2.9.1 -> 2.9.2 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 13/42] msmtp: upgrade 1.8.10 -> 1.8.11 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 14/42] epiphany: upgrade 3.36.1 -> 3.36.2 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 15/42] cogl-1.0: upgrade 1.22.6 -> 1.22.8 Alexander Kanavin
2020-06-13 20:44 ` [OE-core] " Andrey Zhizhikin
2020-06-13 22:02 ` Alexander Kanavin
2020-06-08 7:46 ` [PATCH 16/42] libdrm: upgrade 2.4.101 -> 2.4.102 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 17/42] vulkan-demos: upgrade to latest revision Alexander Kanavin
2020-06-08 7:46 ` [PATCH 18/42] xkeyboard-config: upgrade 2.29 -> 2.30 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 19/42] linux-firmware: upgrade 20200421 -> 20200519 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 20/42] babeltrace2: upgrade 2.0.2 -> 2.0.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 21/42] lttng-tools: upgrade 2.12.0 -> 2.12.1 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 22/42] ffmpeg: upgrade 4.2.2 -> 4.2.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 23/42] wpebackend-fdo: upgrade 1.6.0 -> 1.6.1 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 24/42] gnutls: upgrade 3.6.13 -> 3.6.14 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 25/42] libcap: upgrade 2.34 -> 2.36 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 26/42] vte: upgrade 0.60.2 -> 0.60.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 27/42] bison: upgrade 3.6.2 -> 3.6.3 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 28/42] asciidoc: 8.6.10 -> 9.0.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 29/42] debianutils: 4.9.1 -> 4.11 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 30/42] git: upgrade 2.26.2 -> 2.27.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 31/42] go: 1.14.3 -> 1.14.4 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 32/42] iproute2: upgrade 5.6.0 -> 5.7.0 Alexander Kanavin
2020-06-08 7:46 ` Alexander Kanavin [this message]
2020-06-08 7:46 ` [PATCH 34/42] lttng-modules: update to 2.12.1 Alexander Kanavin
2020-06-09 16:24 ` [OE-core] " Peter Kjellerstedt
2020-06-09 17:58 ` Alexander Kanavin
2020-06-08 7:46 ` [PATCH 35/42] mpg123: update to 1.26.1 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 36/42] ovmf: update to 202005 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 37/42] shared-mime-info: upgrade 1.15 -> 2.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 38/42] subversion: upgrade 1.13.0 -> 1.14.0 Alexander Kanavin
2020-06-08 7:46 ` [PATCH 39/42] xinetd: 2.3.15 -> 2.3.15.4 Alexander Kanavin
2020-06-13 0:51 ` [OE-core] " Khem Raj
2020-06-08 7:46 ` [PATCH 40/42] init-system-helpers: use https for fetching Alexander Kanavin
2020-06-08 7:46 ` [PATCH 41/42] ca-certificates: correct upstream version check Alexander Kanavin
2020-06-08 7:46 ` [PATCH 42/42] build-sysroots: add sysroot paths with native binaries to PATH Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200608074659.7051-33-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox