summaryrefslogtreecommitdiff
path: root/print/kpathsea
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-02-05 07:54:51 +0000
committerwiz <wiz@pkgsrc.org>2013-02-05 07:54:51 +0000
commitd3bb3067072b0d37175997b356edeb907c96cdf9 (patch)
tree66d93889e7b517d829483526a8f2792a055f596e /print/kpathsea
parent8f87f06c278438e3826851f397b8518b0908a77f (diff)
downloadpkgsrc-d3bb3067072b0d37175997b356edeb907c96cdf9.tar.gz
Include correct header for putenv to avoid
warning: reference to compatibility putenv(); include <stdlib.h> for correct reference Addresses PR 47534 by David A. Holland.
Diffstat (limited to 'print/kpathsea')
-rw-r--r--print/kpathsea/Makefile3
-rw-r--r--print/kpathsea/distinfo3
-rw-r--r--print/kpathsea/patches/patch-xputenv.c21
3 files changed, 25 insertions, 2 deletions
diff --git a/print/kpathsea/Makefile b/print/kpathsea/Makefile
index 19bde349162..669ccb883a0 100644
--- a/print/kpathsea/Makefile
+++ b/print/kpathsea/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2012/10/08 13:45:40 asau Exp $
+# $NetBSD: Makefile,v 1.18 2013/02/05 07:54:51 wiz Exp $
DISTNAME= texlive-20120701-source
PKGNAME= kpathsea-6.1.0
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ftp://tug.org/historic/systems/texlive/2012/
EXTRACT_SUFX= .tar.xz
diff --git a/print/kpathsea/distinfo b/print/kpathsea/distinfo
index 6660bdd871b..1668997f02c 100644
--- a/print/kpathsea/distinfo
+++ b/print/kpathsea/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2012/07/10 22:32:13 minskim Exp $
+$NetBSD: distinfo,v 1.13 2013/02/05 07:54:52 wiz Exp $
SHA1 (texlive-20120701-source.tar.xz) = e41ef31eba27891f3434e01638d3559cc6958016
RMD160 (texlive-20120701-source.tar.xz) = df09b657919a3f203309645028803098f52bbac9
@@ -13,3 +13,4 @@ SHA1 (patch-ah) = 15a0026ed21d732504d50af9597e53197aca038e
SHA1 (patch-ai) = ceef76e53a9146161be23bb22287b4f768d3cb3c
SHA1 (patch-aj) = 97235f77188a1923d87d6992defb4c0cc2e050f4
SHA1 (patch-ak) = 2cee0c54ee5d2f02c08a6d19d8bfb7aa6316b69c
+SHA1 (patch-xputenv.c) = 75edfd8abdf2f0373a084095cfdd37865e628590
diff --git a/print/kpathsea/patches/patch-xputenv.c b/print/kpathsea/patches/patch-xputenv.c
new file mode 100644
index 00000000000..d78bfeb3e2f
--- /dev/null
+++ b/print/kpathsea/patches/patch-xputenv.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-xputenv.c,v 1.1 2013/02/05 07:54:52 wiz Exp $
+
+Include stdlib.h for putenv to avoid
+[...]/print/web2c/work/.buildlink/lib/libkpathsea.so: warning: warning: reference to compatibility putenv(); include <stdlib.h> for correct reference
+
+--- xputenv.c.orig 2010-02-15 08:19:27.000000000 +0000
++++ xputenv.c
+@@ -20,13 +20,7 @@
+ #include <kpathsea/config.h>
+ #include <kpathsea/types.h>
+
+-#ifdef WIN32
+ #include <stdlib.h>
+-#else
+-#if !HAVE_DECL_PUTENV
+-extern int putenv (char* entry);
+-#endif
+-#endif /* not WIN32 */
+
+ /*
+ * We have different arguments from the "standard" function. A separate