mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
security/gnupg: fix table / enum mismatch
PR259775 reports that (auto)configuration behaves weirdly. This is caused by a mismatch between an enum in the code and a table that expects to match the enum values. When BUILD_WITH_TPM2D is off (the default; I have not looked if it can even be turned on in ports) one table entry is Patch also submitted upstream. PR: 259775 Reported by: O. Hartmann MFH: 2021Q3
This commit is contained in:
parent
febd7f7552
commit
7f3f8384a6
@ -1,6 +1,6 @@
|
||||
PORTNAME= gnupg
|
||||
PORTVERSION= 2.3.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= GNUPG
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- common/homedir.c.orig 2021-10-01 12:44:06.000000000 +0000
|
||||
+++ common/homedir.c 2021-10-26 08:14:01.320259000 +0000
|
||||
--- common/homedir.c.orig 2021-10-01 12:44:06 UTC
|
||||
+++ common/homedir.c
|
||||
@@ -68,7 +68,9 @@
|
||||
* text was read. */
|
||||
#if __linux__
|
||||
@ -11,7 +11,7 @@
|
||||
# define MYPROC_SELF_EXE "/proc/curproc/file"
|
||||
#endif
|
||||
|
||||
@@ -495,13 +497,13 @@
|
||||
@@ -495,13 +497,13 @@ unix_rootdir (int want_sysconfdir)
|
||||
if (nread < 0)
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
|
11
security/gnupg/files/patch-tools_gpgconf-comp.c
Normal file
11
security/gnupg/files/patch-tools_gpgconf-comp.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- tools/gpgconf-comp.c.orig 2021-10-10 16:28:51 UTC
|
||||
+++ tools/gpgconf-comp.c
|
||||
@@ -676,6 +676,8 @@ static struct
|
||||
{ TPM2DAEMON_NAME, TPM2DAEMON_DISP_NAME, "gnupg", N_("TPM"),
|
||||
GNUPG_MODULE_NAME_TPM2DAEMON, TPM2DAEMON_NAME ".conf",
|
||||
known_options_tpm2daemon, NULL, tpm2daemon_runtime_change},
|
||||
+#else
|
||||
+ { NULL }, /* Another dummy, to keep the enum in sync with this table */
|
||||
#endif
|
||||
|
||||
{ DIRMNGR_NAME, DIRMNGR_DISP_NAME, "gnupg", N_("Network"),
|
Loading…
Reference in New Issue
Block a user