package/pinentry: added optional support for qt5
PATCH v3 1/1 package/pinentry: added optional support for qt5
Upstream added support for qt5:
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=pinentry.git;a=commit;h=abb59f50abf698ff1e56490fb39bcc98c26ab44b
---
v3: added qt5 to backend dependencies, fixed qt comment in pinentry.mk
(Thomas)
v2: Moved rename of configure option -pinentry-qt4 to -pinentry-qt to
the patch bumping the package version.
package/pinentry/Config.in | 23 ++++++++++++++++++++++- package/pinentry/pinentry.mk | 6 ++++-- 2 files changed, 26 insertions(+), 3 deletions(-)
package/pinentry/Config.in +22 -1
@@ -5,7 +5,10 @@ menuconfig BR2_PACKAGE_PINENTRY select BR2_PACKAGE_LIBASSUAN select BR2_PACKAGE_LIBGPG_ERROR # At least one backend is needed to avoid build breakage - select BR2_PACKAGE_PINENTRY_NCURSES if !BR2_PACKAGE_PINENTRY_GTK2 && !BR2_PACKAGE_PINENTRY_QT4 + select BR2_PACKAGE_PINENTRY_NCURSES if \ + !BR2_PACKAGE_PINENTRY_GTK2 && \ + !BR2_PACKAGE_PINENTRY_QT4 && \ + !BR2_PACKAGE_PINENTRY_QT5 help A collection of simple PIN or pass-phrase entry dialogs
@@ -53,4 +56,22 @@ comment "pinentry-qt4 needs a toolchain w/ C++, threads" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS +config BR2_PACKAGE_PINENTRY_QT5 + bool "pinentry-qt5" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_STATIC_LIBS + depends on !BR2_PACKAGE_PINENTRY_QT4 + select BR2_PACKAGE_QT5 + select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_WIDGETS + help + The pinentry-qt5 tool + +comment "pinentry-qt5 needs a toolchain w/ wchar, NPTL, C++, dynamic library" + depends on !BR2_PACKAGE_PINENTRY_QT4 + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS + endif
package/pinentry/pinentry.mk +4 -2
@@ -48,13 +48,15 @@ else PINENTRY_CONF_OPTS += --disable-pinentry-gtk2 endif -# pinentry-qt4 backend +# pinentry-qt4/5 backend +ifeq ($(BR2_PACKAGE_PINENTRY_QT4)$(BR2_PACKAGE_PINENTRY_QT5),y) ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y) # -pthread needs to be passed for certain toolchains # http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/ PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/bin/moc +endif PINENTRY_CONF_OPTS += --enable-pinentry-qt -PINENTRY_DEPENDENCIES += qt +PINENTRY_DEPENDENCIES += $(if $(BR2_PACKAGE_PINENTRY_QT4),qt,qt5base) else PINENTRY_CONF_OPTS += --disable-pinentry-qt endif
Signature · 1 line
2.11.0
Arnout Vandecappelle
AppliedPATCH v3 1/1 package/pinentry: added optional support for qt5
Quoted 4 lines · Bernd Kuhls
Upstream added support for qt5:
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=pinentry.git;a=commit;h=abb59f50abf698ff1e56490fb39bcc98c26ab44bSigned-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
Unfortunately, I messed up the commit message a bit. I though that the way you
handled the qt4/qt5 difference in the .mk file could be simplified and had already said so in the commit message, but in the end my idea didn't work so I reverted it, but I forgot to also revert the commit message. So, even though the commit message says "completely separate qt4 and qt5 in the .mk file instead of
making a complicated mix", I didn't actually do that.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF