Skip to contentSkip to conversation

pinentry: upgrade 1.3.1 -> 1.3.2

PATCH Superseded Gyorgy Sarvari 2 participants 3 messages Aug 29, 2025 – Sep 2, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pinentry: upgrade 1.3.1 -> 1.3.2

Shortlog:

-qt: Replace icons for dark mode with 16x16 icons
-qt,qt5: Ensure that input field is large enough for generated password -qt5: Add dark mode icon variants and detection
-Make Show/Hide Password functionality accessible
-qt5: Make Show/Hide Password functionality accessible
-m4: Update libassuan.m4.
-build: Remove defining GPG_ERR_ENABLE_ERRNO_MACROS.
-build: Fix warning about obsolete pinentry-emacs.
-curses: Factor out dialog release to separate function. -qt: Add dark mode icon variants and detection
-m4: Update gpg-error.m4 and libassuan.m4.

---

v2: adapt selftest to the new version number

 meta/lib/oeqa/selftest/cases/oescripts.py     |  2 +-
 .../gpg-error_pkconf.patch                    | 47 +++++++++++--------
 .../libassuan_pkgconf.patch                   | 30 +++++-------
 .../{pinentry_1.3.1.bb => pinentry_1.3.2.bb}  |  2 +-
 4 files changed, 41 insertions(+), 40 deletions(-)
 rename meta/recipes-support/pinentry/{pinentry-1.3.1 => pinentry}/gpg-error_pkconf.patch (88%)
 rename meta/recipes-support/pinentry/{pinentry-1.3.1 => pinentry}/libassuan_pkgconf.patch (87%)
 rename meta/recipes-support/pinentry/{pinentry_1.3.1.bb => pinentry_1.3.2.bb} (93%)
meta/lib/oeqa/selftest/cases/oescripts.py +1 -1
index 3f9899b289..64fb3f1a1d 100644
@@ -151,7 +151,7 @@ class OEListPackageconfigTests(OESelftestTestCase):
     def test_packageconfig_flags_option_all(self):
         results = runCmd('%s/contrib/list-packageconfig-flags.py -a' % self.scripts_dir)
         expected_endlines = []
-        expected_endlines.append("pinentry-1.3.1")
+        expected_endlines.append("pinentry-1.3.2")
         expected_endlines.append("PACKAGECONFIG ncurses")
         expected_endlines.append("PACKAGECONFIG[qt] --enable-pinentry-qt, --disable-pinentry-qt, qtbase-native qtbase")
         expected_endlines.append("PACKAGECONFIG[gtk2] --enable-pinentry-gtk2, --disable-pinentry-gtk2, gtk+ glib-2.0")
meta/recipes-support/pinentry/pinentry/gpg-error_pkconf.patch renamed from meta/recipes-support/pinentry/pinentry-1.3.1/gpg-error_pkconf.patch +28 -19

86 lines not on this page · raw message

meta/recipes-support/pinentry/pinentry/libassuan_pkgconf.patch renamed from meta/recipes-support/pinentry/pinentry-1.3.1/libassuan_pkgconf.patch +11 -19
similarity index 87%
rename from meta/recipes-support/pinentry/pinentry-1.3.1/libassuan_pkgconf.patch
rename to meta/recipes-support/pinentry/pinentry/libassuan_pkgconf.patch
index f2d50010c5..fbd370d9fd 100644
@@ -18,7 +18,7 @@ diff --git a/configure.ac b/configure.ac
 index 4944f7c..f03cbb7 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -264,8 +264,8 @@ if test "$have_libassuan" = "yes"; then
+@@ -261,8 +261,8 @@ if test "$have_libassuan" = "yes"; then
                       [version of the libassuan library])
  fi
  
@@ -33,12 +33,13 @@ diff --git a/m4/libassuan.m4 b/m4/libassuan.m4
 index a2eb5d9..897f407 100644
 --- a/m4/libassuan.m4
 +++ b/m4/libassuan.m4
-@@ -15,30 +15,8 @@ dnl
+@@ -100,31 +100,8 @@ dnl
  dnl Common code used for libassuan detection [internal]
  dnl Returns ok set to yes or no.
  dnl
 -AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
--[ AC_REQUIRE([AC_CANONICAL_HOST])
+-[ AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-  AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
 -  AC_ARG_WITH(libassuan-prefix,
 -              AS_HELP_STRING([--with-libassuan-prefix=PFX],
 -                             [prefix where LIBASSUAN is installed (optional)]),
@@ -66,7 +67,7 @@ index a2eb5d9..897f407 100644
    tmp=ifelse([$1], ,1:0.9.2,$1)
    if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
      req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
-@@ -48,59 +26,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
+@@ -134,59 +111,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
      min_libassuan_version="$tmp"
    fi
  
@@ -111,7 +112,7 @@ index a2eb5d9..897f407 100644
 -
 -  if test $ok = yes; then
 -    AC_MSG_RESULT([yes ($libassuan_config_version)])
--    AC_DEFINE(LIBASSUAN_API_REQUESTED, $req_libassuan_api, Requested API version for libassuan)
+-    AC_DEFINE_UNQUOTED(LIBASSUAN_API_REQUESTED, $req_libassuan_api, [Requested API version for libassuan])
 -  else
 -    AC_MSG_RESULT(no)
 -  fi
@@ -128,7 +129,7 @@ index a2eb5d9..897f407 100644
        if test "$tmp" -gt 0 ; then
          AC_MSG_CHECKING([LIBASSUAN API version])
          if test "$req_libassuan_api" -eq "$tmp" ; then
-@@ -117,11 +47,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
+@@ -203,11 +132,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
  
    if test $ok = yes; then
      if test x"$host" != x ; then
@@ -141,7 +142,7 @@ index a2eb5d9..897f407 100644
        if test x"$libassuan_config_host" != xnone ; then
          if test x"$libassuan_config_host" != x"$host" ; then
    AC_MSG_WARN([[
-@@ -144,7 +70,7 @@ dnl Test whether libassuan has at least MINIMUM-VERSION. This is
+@@ -230,7 +155,7 @@ dnl Test whether libassuan has at least MINIMUM-VERSION. This is
  dnl used to test for features only available in newer versions.
  dnl
  AC_DEFUN([AM_CHECK_LIBASSUAN],
@@ -150,21 +151,12 @@ index a2eb5d9..897f407 100644
    if test $ok = yes; then
      ifelse([$2], , :, [$2])
    else
-@@ -160,16 +86,10 @@ dnl                   [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
+@@ -246,7 +171,7 @@ dnl                   [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
  dnl Test for libassuan and define LIBASSUAN_CFLAGS and LIBASSUAN_LIBS
  dnl
  AC_DEFUN([AM_PATH_LIBASSUAN],
 -[ _AM_PATH_LIBASSUAN_COMMON($1)
 +[ AM_PATH_LIBASSUAN_COMMON($1)
    if test $ok = yes; then
--    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
--    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
-     ifelse([$2], , :, [$2])
-   else
--    LIBASSUAN_CFLAGS=""
--    LIBASSUAN_LIBS=""
-     ifelse([$3], , :, [$3])
-   fi
--  AC_SUBST(LIBASSUAN_CFLAGS)
--  AC_SUBST(LIBASSUAN_LIBS)
- ])
+     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
+     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
meta/recipes-support/pinentry/pinentry_1.3.2.bb renamed from meta/recipes-support/pinentry/pinentry_1.3.1.bb +1 -1
similarity index 93%
rename from meta/recipes-support/pinentry/pinentry_1.3.1.bb
rename to meta/recipes-support/pinentry/pinentry_1.3.2.bb
index 0fc652cdba..0a4a847776 100644
@@ -16,7 +16,7 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://gpg-error_pkconf.patch \
 "
 
-SRC_URI[sha256sum] = "bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04"
+SRC_URI[sha256sum] = "8e986ed88561b4da6e9efe0c54fa4ca8923035c99264df0b0464497c5fb94e9e"
 
 inherit autotools pkgconfig
 
#1 lore raw

meta/recipes-support/pinentry/pinentry/gpg-error_pkconf.patch

Quoted 2 lines · Gyorgy Sarvari via lists.openembedded.org
meta/recipes-support/pinentry/pinentry/gpg-error_pkconf.patch renamed from meta/recipes-support/pinentry/pinentry-1.3.1/gpg-error_pkconf.patch +0 -0

I looked again at the state of gpg and pkg-config, and I think we can clean up now.

Instead of patching gpg-error.m4 to use pkg-config, I suspect we can simply do this in configure.ac:

-AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION”, have_gpg_error=yes,have_gpg_error=no) +PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $NEED_GPG_ERROR_VERSION], have_gpg_error=yes, have_gpg_error=no)

I suspect upstream won’t take that either, but it will be a lot easier to maintain for us.

Ross

#2 lore raw
Quoted 11 lines · Ross Burton

meta/recipes-support/pinentry/pinentry/gpg-error_pkconf.patch

Quoted 2 lines · Gyorgy Sarvari via lists.openembedded.org
meta/recipes-support/pinentry/pinentry/gpg-error_pkconf.patch renamed from meta/recipes-support/pinentry/pinentry-1.3.1/gpg-error_pkconf.patch +0 -0

I looked again at the state of gpg and pkg-config, and I think we can clean up now.

Instead of patching gpg-error.m4 to use pkg-config, I suspect we can simply do this in configure.ac:

(quoted diff) +1 -1
-AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION”, have_gpg_error=yes,have_gpg_error=no)
+PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $NEED_GPG_ERROR_VERSION], have_gpg_error=yes, have_gpg_error=no)

I suspect upstream won’t take that either, but it will be a lot easier to maintain for us.

Will take a look at it.

Quoted 1 line

Ross