summaryrefslogtreecommitdiff
path: root/devel/librfuncs
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2006-03-01 15:58:03 +0000
committerdrochner <drochner@pkgsrc.org>2006-03-01 15:58:03 +0000
commitb1d04b2162fdae979756d16e5123417b85cde6c6 (patch)
tree40344fa53db623a7e7b76e6b1eef95e64164836c /devel/librfuncs
parentbd4a0dc3bd5944dca9f0f03eef9ccb9325f3840e (diff)
downloadpkgsrc-b1d04b2162fdae979756d16e5123417b85cde6c6.tar.gz
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 (limited to 'devel/librfuncs')
-rw-r--r--devel/librfuncs/Makefile4
-rw-r--r--devel/librfuncs/distinfo3
-rw-r--r--devel/librfuncs/patches/patch-aa24
3 files changed, 28 insertions, 3 deletions
diff --git a/devel/librfuncs/Makefile b/devel/librfuncs/Makefile
index d90dd9895e7..cc5a823514d 100644
--- a/devel/librfuncs/Makefile
+++ b/devel/librfuncs/Makefile
@@ -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 --git a/devel/librfuncs/distinfo b/devel/librfuncs/distinfo
index 0d7e80e4566..35f8f774feb 100644
--- a/devel/librfuncs/distinfo
+++ b/devel/librfuncs/distinfo
@@ -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 --git a/devel/librfuncs/patches/patch-aa b/devel/librfuncs/patches/patch-aa
new file mode 100644
index 00000000000..a4c563bebf2
--- /dev/null
+++ b/devel/librfuncs/patches/patch-aa
@@ -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
+ {