pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/gpgme Now that librfuncs' getenv_r returns EN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b933e7be1557
branches:  trunk
changeset: 483086:b933e7be1557
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Sun Nov 07 13:11:30 2004 +0000

description:
Now that librfuncs' getenv_r returns ENOENT when the variable is not defined
in the environment, we can handle this case properly from here.  I.e., treat
ENOENT as if no error happened, and return NULL in the 'value' parameter (as
the function documentation says).  Finally fixes PR pkg/27884.
Bump PKGREVISION to 2.

diffstat:

 security/gpgme/Makefile         |  4 ++--
 security/gpgme/distinfo         |  4 ++--
 security/gpgme/patches/patch-af |  6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r 2ea42ee6ab61 -r b933e7be1557 security/gpgme/Makefile
--- a/security/gpgme/Makefile   Sun Nov 07 12:57:37 2004 +0000
+++ b/security/gpgme/Makefile   Sun Nov 07 13:11:30 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2004/11/06 22:57:58 jmmv Exp $
+# $NetBSD: Makefile,v 1.29 2004/11/07 13:11:30 jmmv Exp $
 #
 
 DISTNAME=      gpgme-1.0.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    security
 MASTER_SITES=  ftp://ftp.gnupg.org/gcrypt/gpgme/ \
                ftp://ftp.gnupg.org/gcrypt/alpha/gpgme/
diff -r 2ea42ee6ab61 -r b933e7be1557 security/gpgme/distinfo
--- a/security/gpgme/distinfo   Sun Nov 07 12:57:37 2004 +0000
+++ b/security/gpgme/distinfo   Sun Nov 07 13:11:30 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2004/11/06 17:40:15 jmmv Exp $
+$NetBSD: distinfo,v 1.15 2004/11/07 13:11:30 jmmv Exp $
 
 SHA1 (gpgme-1.0.1.tar.gz) = d35fa8fc20783ea853d9e4d01fed7e1a9d3160f6
 Size (gpgme-1.0.1.tar.gz) = 815046 bytes
@@ -6,7 +6,7 @@
 SHA1 (patch-ab) = c47b732622deaa2eb3269d7ae753ab553c4fa54e
 SHA1 (patch-ac) = c702392423c1ed48cca43f8e35a2c510a8d68460
 SHA1 (patch-ae) = 88d215ad657730349ffa19462799b64238a30426
-SHA1 (patch-af) = f8d035b0e2d9a245377aec33a8576e5a432d76b7
+SHA1 (patch-af) = 3dd6be4b85b48ad628374516dcaceef355bf7bf4
 SHA1 (patch-ag) = b499aba9894e24470b7ebb60643a3db5d36b7fd5
 SHA1 (patch-ah) = 852e362f143c754149e0600a7b7f3a47a569f41e
 SHA1 (patch-ai) = 5b7958ef6ed51936e948451e03dd835c1b90414c
diff -r 2ea42ee6ab61 -r b933e7be1557 security/gpgme/patches/patch-af
--- a/security/gpgme/patches/patch-af   Sun Nov 07 12:57:37 2004 +0000
+++ b/security/gpgme/patches/patch-af   Sun Nov 07 13:11:30 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-af,v 1.2 2004/11/04 20:41:21 shannonjr Exp $
+$NetBSD: patch-af,v 1.3 2004/11/07 13:11:30 jmmv Exp $
 
---- gpgme/get-env.c.orig       2003-09-13 11:45:04.000000000 -0600
+--- gpgme/get-env.c.orig       2003-09-13 19:45:04.000000000 +0200
 +++ gpgme/get-env.c
 @@ -21,6 +21,9 @@
  #include <config.h>
@@ -34,7 +34,7 @@
 +      if (!*value)
 +        err = ENOMEM;
 +    }
-+  if (err)
++  if (err != ENOENT)
 +      return gpg_error_from_errno (err);
 +  else
 +      return (0);



Home | Main Index | Thread Index | Old Index