pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/LPRng-core Interix has unsetenv(3), but it has n...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/071a1a6f9f07
branches:  trunk
changeset: 502752:071a1a6f9f07
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Nov 08 19:25:12 2005 +0000

description:
Interix has unsetenv(3), but it has no prototype, so compilation fails
with -Werror.  Fall through to setenv(..., "", 1) block instead by skipping
the HAVE_UNSETENV block.

diffstat:

 print/LPRng-core/distinfo         |   3 ++-
 print/LPRng-core/patches/patch-aa |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 4f1cc12598c1 -r 071a1a6f9f07 print/LPRng-core/distinfo
--- a/print/LPRng-core/distinfo Tue Nov 08 18:56:34 2005 +0000
+++ b/print/LPRng-core/distinfo Tue Nov 08 19:25:12 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2005/02/24 12:51:41 agc Exp $
+$NetBSD: distinfo,v 1.7 2005/11/08 19:25:12 tv Exp $
 
 SHA1 (LPRng-3.8.28.tgz) = f4373004adb1439819600701bb98517137daf1fc
 RMD160 (LPRng-3.8.28.tgz) = f0460d7fa7d1ea0ce6b49fcb656905fdda3d0d41
 Size (LPRng-3.8.28.tgz) = 10212500 bytes
+SHA1 (patch-aa) = a48d1bc4211e4938a9888fbd219f702dc1c84126
 SHA1 (patch-ac) = 820629869ca4452886b5860de11a449a7b4603e9
diff -r 4f1cc12598c1 -r 071a1a6f9f07 print/LPRng-core/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/LPRng-core/patches/patch-aa Tue Nov 08 19:25:12 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2005/11/08 19:25:12 tv Exp $
+
+--- src/common/initialize.c.orig       2004-09-24 16:19:57.000000000 -0400
++++ src/common/initialize.c
+@@ -54,7 +54,7 @@ void Initialize(int argc,  char *argv[],
+        * environment
+        */
+       if( getuid() == ROOTUID || geteuid() == ROOTUID ){
+-#if defined(HAVE_UNSETENV)
++#if defined(HAVE_UNSETENV) && !defined(__INTERIX)
+               unsetenv("NLSPATH");
+ #elif defined(HAVE_SETENV)
+               setenv("NLSPATH","",1);



Home | Main Index | Thread Index | Old Index