Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/, app-crypt/gnupg/files/
Date: Tue, 07 Sep 2021 15:20:17
Message-Id: 1631028004.358af1feef453a02aa73ef5c281fe509bcb6ffde.soap@gentoo
1 commit: 358af1feef453a02aa73ef5c281fe509bcb6ffde
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 15:20:04 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 15:20:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=358af1fe
7
8 app-crypt/gnupg: fix USE=tofu
9
10 Bug: https://dev.gnupg.org/T5588
11 Acked-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../gnupg/files/gnupg-2.3.0-sqlite_check.patch | 62 ----------------------
15 app-crypt/gnupg/gnupg-2.3.2.ebuild | 17 +++---
16 2 files changed, 6 insertions(+), 73 deletions(-)
17
18 diff --git a/app-crypt/gnupg/files/gnupg-2.3.0-sqlite_check.patch b/app-crypt/gnupg/files/gnupg-2.3.0-sqlite_check.patch
19 deleted file mode 100644
20 index dd529da7a7c..00000000000
21 --- a/app-crypt/gnupg/files/gnupg-2.3.0-sqlite_check.patch
22 +++ /dev/null
23 @@ -1,62 +0,0 @@
24 -From 58aa0e8547a29e147f3d9d1792117d96bc00ffda Mon Sep 17 00:00:00 2001
25 -From: Lars Wendler <polynomial-c@g.o>
26 -Date: Thu, 8 Apr 2021 11:05:36 +0200
27 -Subject: [PATCH] gnupg: configure.ac: Fix sqlite3 detection
28 -
29 -or else --disable-sqlite has no effect and linking later fails with:
30 -
31 - keyboxd-backend-sqlite.o: in function `show_sqlstmt.part.0':
32 - backend-sqlite.c:(.text+0x42): undefined reference to `sqlite3_expanded_sql'
33 -
34 -Signed-off-by: Lars Wendler <polynomial-c@g.o>
35 ----
36 - configure.ac | 23 ++++++++++++-----------
37 - 1 file changed, 12 insertions(+), 11 deletions(-)
38 -
39 -diff --git a/configure.ac b/configure.ac
40 -index 9cf0c6a7f..d46469cbb 100644
41 ---- a/configure.ac
42 -+++ b/configure.ac
43 -@@ -969,18 +969,20 @@ AC_ARG_ENABLE(sqlite,
44 - [disable the use of SQLITE]),
45 - try_sqlite=$enableval, try_sqlite=yes)
46 -
47 --if test x"$use_tofu" = xyes ; then
48 -- if test x"$try_sqlite" = xyes ; then
49 -+AS_IF([test x"$try_sqlite" = xyes], [
50 - PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $NEED_SQLITE_VERSION],
51 - [have_sqlite=yes],
52 - [have_sqlite=no])
53 -- fi
54 -- if test "$have_sqlite" = "yes"; then
55 -- :
56 -- AC_SUBST([SQLITE3_CFLAGS])
57 -- AC_SUBST([SQLITE3_LIBS])
58 -- else
59 -- use_tofu=no
60 -+ AS_IF([test "$have_sqlite" = "yes"], [
61 -+ AC_SUBST([SQLITE3_CFLAGS])
62 -+ AC_SUBST([SQLITE3_LIBS])
63 -+ ])
64 -+ ])
65 -+
66 -+AS_IF([test "$have_sqlite" != "yes"], [
67 -+ AS_IF([test x"$use_tofu" = xyes], [
68 -+ use_tofu=no
69 -+ ])
70 - build_keyboxd=no
71 - tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
72 - AC_MSG_WARN([[
73 -@@ -988,8 +990,7 @@ if test x"$use_tofu" = xyes ; then
74 - *** Building without SQLite support - TOFU and Keyboxd disabled
75 - ***
76 - *** $tmp]])
77 -- fi
78 --fi
79 -+])
80 -
81 - AM_CONDITIONAL(SQLITE3, test "$have_sqlite" = "yes")
82 -
83 ---
84 -2.31.1
85 -
86
87 diff --git a/app-crypt/gnupg/gnupg-2.3.2.ebuild b/app-crypt/gnupg/gnupg-2.3.2.ebuild
88 index 3576669b399..9e1c1de7266 100644
89 --- a/app-crypt/gnupg/gnupg-2.3.2.ebuild
90 +++ b/app-crypt/gnupg/gnupg-2.3.2.ebuild
91 @@ -3,18 +3,19 @@
92
93 EAPI=8
94
95 -inherit autotools flag-o-matic systemd toolchain-funcs
96 +inherit flag-o-matic systemd toolchain-funcs
97
98 MY_P="${P/_/-}"
99
100 DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
101 HOMEPAGE="https://gnupg.org/"
102 SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
103 +S="${WORKDIR}/${MY_P}"
104
105 LICENSE="GPL-3"
106 SLOT="0"
107 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
108 -IUSE="bzip2 doc ldap nls readline selinux +smartcard sqlite ssl tofu tools usb user-socket wks-server"
109 +IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server"
110
111 # Existence of executables is checked during configuration.
112 DEPEND=">=dev-libs/libassuan-2.5.0
113 @@ -27,7 +28,7 @@ DEPEND=">=dev-libs/libassuan-2.5.0
114 ldap? ( net-nds/openldap )
115 readline? ( sys-libs/readline:0= )
116 smartcard? ( usb? ( virtual/libusb:1 ) )
117 - sqlite? ( >=dev-db/sqlite-3.27 )
118 + tofu? ( >=dev-db/sqlite-3.27 )
119 ssl? ( >=net-libs/gnutls-3.0:0= )
120 sys-libs/zlib
121 "
122 @@ -42,10 +43,6 @@ BDEPEND="virtual/pkgconfig
123 doc? ( sys-apps/texinfo )
124 nls? ( sys-devel/gettext )"
125
126 -S="${WORKDIR}/${MY_P}"
127 -
128 -REQUIRED_USE="tofu? ( sqlite )"
129 -
130 DOCS=(
131 ChangeLog NEWS README THANKS TODO VERSION
132 doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
133 @@ -53,14 +50,11 @@ DOCS=(
134
135 PATCHES=(
136 "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
137 - "${FILESDIR}/${PN}-2.3.0-sqlite_check.patch"
138 )
139
140 src_prepare() {
141 default
142
143 - eautoreconf
144 -
145 # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
146 # idea borrowed from libdbus, see
147 # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
148 @@ -76,9 +70,10 @@ src_configure() {
149 $(use_enable bzip2)
150 $(use_enable nls)
151 $(use_enable smartcard scdaemon)
152 - $(use_enable sqlite)
153 $(use_enable ssl gnutls)
154 $(use_enable tofu)
155 + $(use_enable tofu keyboxd)
156 + $(use_enable tofu sqlite)
157 $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
158 $(use_enable wks-server wks-tools)
159 $(use_with ldap)