pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Update pkgtools/libnbcompat to 20030828. Changes from...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f171822c7e1b
branches:  trunk
changeset: 460754:f171822c7e1b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Sep 04 01:51:15 2003 +0000

description:
Update pkgtools/libnbcompat to 20030828.  Changes from previous version
include making mkdtemp() return the correct values on systems that use
libnbcompat's mkdtemp.  Fix by jschauma%netbsd.org@localhost.

diffstat:

 doc/CHANGES                          |   3 ++-
 pkgtools/libnbcompat/Makefile        |   4 ++--
 pkgtools/libnbcompat/buildlink2.mk   |   4 ++--
 pkgtools/libnbcompat/files/mkdtemp.c |  12 ++++++------
 4 files changed, 12 insertions(+), 11 deletions(-)

diffs (82 lines):

diff -r ba458578c164 -r f171822c7e1b doc/CHANGES
--- a/doc/CHANGES       Wed Sep 03 22:40:29 2003 +0000
+++ b/doc/CHANGES       Thu Sep 04 01:51:15 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.3230 2003/09/03 21:33:44 seb Exp $
+$NetBSD: CHANGES,v 1.3231 2003/09/04 01:51:53 jlam Exp $
 
 Changes to the packages collection and infrastructure in 2003:
 
@@ -3516,3 +3516,4 @@
        Updated wxGTK to 2.4.1 [xtraeme 2003-09-03]
        Updated mserv to 0.05nb1 [abs 2003-09-03]
        Updated nam to 1.9 [seb 2003-09-03]
+       Updated libnbcompat to 20030828 [jlam 2003-09-03]
diff -r ba458578c164 -r f171822c7e1b pkgtools/libnbcompat/Makefile
--- a/pkgtools/libnbcompat/Makefile     Wed Sep 03 22:40:29 2003 +0000
+++ b/pkgtools/libnbcompat/Makefile     Thu Sep 04 01:51:15 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2003/09/03 16:38:36 jlam Exp $
+# $NetBSD: Makefile,v 1.18 2003/09/04 01:51:15 jlam Exp $
 #
 
-DISTNAME=              libnbcompat-20030827
+DISTNAME=              libnbcompat-20030828
 CATEGORIES=            pkgtools
 MASTER_SITES=          # empty
 DISTFILES=             # empty
diff -r ba458578c164 -r f171822c7e1b pkgtools/libnbcompat/buildlink2.mk
--- a/pkgtools/libnbcompat/buildlink2.mk        Wed Sep 03 22:40:29 2003 +0000
+++ b/pkgtools/libnbcompat/buildlink2.mk        Thu Sep 04 01:51:15 2003 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: buildlink2.mk,v 1.10 2003/09/03 16:38:37 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.11 2003/09/04 01:51:15 jlam Exp $
 
 .if !defined(LIBNBCOMPAT_BUILDLINK2_MK)
 LIBNBCOMPAT_BUILDLINK2_MK=     # defined
 
-BUILDLINK_DEPENDS.libnbcompat?=                libnbcompat>=20030827
+BUILDLINK_DEPENDS.libnbcompat?=                libnbcompat>=20030828
 BUILDLINK_PKGSRCDIR.libnbcompat?=      ../../pkgtools/libnbcompat
 BUILDLINK_DEPMETHOD.libnbcompat?=      build
 
diff -r ba458578c164 -r f171822c7e1b pkgtools/libnbcompat/files/mkdtemp.c
--- a/pkgtools/libnbcompat/files/mkdtemp.c      Wed Sep 03 22:40:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/mkdtemp.c      Thu Sep 04 01:51:15 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkdtemp.c,v 1.1 2003/09/01 15:31:18 jlam Exp $ */
+/*     $NetBSD: mkdtemp.c,v 1.2 2003/09/04 01:51:16 jlam Exp $ */
 
 /*
  * Copyright (c) 1987, 1993
@@ -86,10 +86,10 @@
                if (*trv == '/') {
                        *trv = '\0';
                        if (stat(path, &sbuf))
-                               return (0);
+                               return (char *)NULL;
                        if (!S_ISDIR(sbuf.st_mode)) {
                                errno = ENOTDIR;
-                               return (0);
+                               return (char *)NULL;
                        }
                        *trv = '/';
                        break;
@@ -98,14 +98,14 @@
 
        for (;;) {
                if (mkdir(path, 0700) >= 0)
-                       return (1);
+                       return path;
                if (errno != EEXIST)
-                       return (0);
+                       return (char *)NULL;
 
                /* tricky little algorithm for backward compatibility */
                for (trv = start;;) {
                        if (!*trv)
-                               return (0);
+                               return (char *)NULL;
                        if (*trv == 'z')
                                *trv++ = 'a';
                        else {



Home | Main Index | Thread Index | Old Index