View | Details | Raw Unified | Return to bug 259281
Collapse All | Expand All

(-)b/security/gnupg/Makefile (+1 lines)
Lines 1-5 Link Here
1
PORTNAME=	gnupg
1
PORTNAME=	gnupg
2
PORTVERSION=	2.3.3
2
PORTVERSION=	2.3.3
3
PORTREVISION=	1
3
CATEGORIES=	security
4
CATEGORIES=	security
4
MASTER_SITES=	GNUPG
5
MASTER_SITES=	GNUPG
5
6
(-)b/security/gnupg/files/patch-common_homedir.c (+30 lines)
Added Link Here
1
--- common/homedir.c.orig	2021-10-01 12:44:06.000000000 +0000
2
+++ common/homedir.c	2021-10-26 08:14:01.320259000 +0000
3
@@ -68,7 +68,9 @@
4
  * text was read.  */
5
 #if __linux__
6
 # define MYPROC_SELF_EXE "/proc/self/exe"
7
-#else /* Assume *BSD*/
8
+#elif defined(__NetBSD__)
9
+# define MYPROC_SELF_EXE "/proc/curproc/exe"
10
+#else /* Assume other BSDs */
11
 # define MYPROC_SELF_EXE "/proc/curproc/file"
12
 #endif
13
 
14
@@ -495,13 +497,13 @@
15
           if (nread < 0)
16
             {
17
               err = gpg_error_from_syserror ();
18
-              log_info ("error reading symlink '%s': %s\n",
19
-                        MYPROC_SELF_EXE, gpg_strerror (err));
20
               buffer[0] = 0;
21
               if ((name = getenv ("GNUPG_BUILD_ROOT")) && *name == '/')
22
                 {
23
                   /* Try a fallback for systems w/o a supported /proc
24
-                   * file system.  */
25
+                   * file system if we are running a regression test.  */
26
+                  log_info ("error reading symlink '%s': %s\n",
27
+                            MYPROC_SELF_EXE, gpg_strerror (err));
28
                   xfree  (buffer);
29
                   buffer = xstrconcat (name, "/bin/gpgconf", NULL);
30
                   log_info ("trying fallback '%s'\n", buffer);

Return to bug 259281