pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/librfuncs While getenv_r() is nonstandard, the v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff5d7f3b073f
branches:  trunk
changeset: 508966:ff5d7f3b073f
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Mar 01 15:58:03 2006 +0000

description:
While getenv_r() is nonstandard, the version now in NetBSD-current
returns -1 on error and sets errno.
So we need to do the same.
bump PKGREVISION

diffstat:

 devel/librfuncs/Makefile         |   4 ++--
 devel/librfuncs/distinfo         |   3 ++-
 devel/librfuncs/patches/patch-aa |  24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r d144edbc0757 -r ff5d7f3b073f devel/librfuncs/Makefile
--- a/devel/librfuncs/Makefile  Wed Mar 01 14:40:34 2006 +0000
+++ b/devel/librfuncs/Makefile  Wed Mar 01 15:58:03 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2006/01/26 18:47:06 shannonjr Exp $
+# $NetBSD: Makefile,v 1.12 2006/03/01 15:58:03 drochner Exp $
 #
 
 DISTNAME=              librfuncs-1.0.7
-#PKGREVISION=          1
+PKGREVISION=           1
 CATEGORIES=            devel
 MASTER_SITES=          http://www.johnrshannon.com/NetBSD/
 EXTRACT_SUFX=          .tar.bz2
diff -r d144edbc0757 -r ff5d7f3b073f devel/librfuncs/distinfo
--- a/devel/librfuncs/distinfo  Wed Mar 01 14:40:34 2006 +0000
+++ b/devel/librfuncs/distinfo  Wed Mar 01 15:58:03 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2006/01/26 18:47:06 shannonjr Exp $
+$NetBSD: distinfo,v 1.10 2006/03/01 15:58:03 drochner Exp $
 
 SHA1 (librfuncs-1.0.7.tar.bz2) = af25987e33b7cee65ff159ca3767827c490b8cb3
 RMD160 (librfuncs-1.0.7.tar.bz2) = fbe3716ca424ed28380645c107dd14d7523d6289
 Size (librfuncs-1.0.7.tar.bz2) = 485448 bytes
+SHA1 (patch-aa) = 7ac79fdd00c2fc0bade0b2b7e711ba6a95c9f5e7
diff -r d144edbc0757 -r ff5d7f3b073f devel/librfuncs/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librfuncs/patches/patch-aa  Wed Mar 01 15:58:03 2006 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1 2006/03/01 15:58:03 drochner Exp $
+
+--- src/getenv_r.c.orig        2006-03-01 16:06:43.000000000 +0100
++++ src/getenv_r.c
+@@ -39,7 +39,8 @@ int getenv_r(const char *name, char *get
+     if (envList == NULL)
+     {
+         /* The string name was not found in the environment. */
+-        retVal = ENOENT;
++        errno = ENOENT;
++      retVal = -1;
+     }
+     else
+     {
+@@ -50,7 +51,8 @@ int getenv_r(const char *name, char *get
+              Insufficient storage was supplied via getenvbuf and buflen to 
+              contain the value for the specified name.
+             */ 
+-            retVal = ERANGE;
++            errno = ERANGE;
++          retVal = -1;
+         }
+         else
+         {



Home | Main Index | Thread Index | Old Index