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 20030824. Changes from...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/857c27b5ac16
branches:  trunk
changeset: 460703:857c27b5ac16
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Sep 03 03:28:23 2003 +0000

description:
Update pkgtools/libnbcompat to 20030824.  Changes from previous version:

    * Don't install namespace.h, extern.h and stat_flags.h, which are
      only used internally.

    * Clean up util.h by using '#if !HAVE_xxx' instead of
      '#ifndef !HAVE_xxx', removing some LIST_* definitions that are
      defined by <nbcompat.h>, and removing static declarations.

    * If fparseln is in libutil (as it is in NetBSD), then don't build
      it into libnbcompat.a.

diffstat:

 doc/CHANGES                              |   3 +-
 pkgtools/libnbcompat/Makefile            |   4 +-
 pkgtools/libnbcompat/PLIST               |   5 +-
 pkgtools/libnbcompat/files/Makefile.in   |   8 +-
 pkgtools/libnbcompat/files/configure     |  65 ++++++++++++++++++++++++++++++++
 pkgtools/libnbcompat/files/configure.ac  |   3 +
 pkgtools/libnbcompat/files/nbconfig.h.in |   3 +
 pkgtools/libnbcompat/files/util.h        |  15 ++----
 8 files changed, 85 insertions(+), 21 deletions(-)

diffs (208 lines):

diff -r a56b75342bc8 -r 857c27b5ac16 doc/CHANGES
--- a/doc/CHANGES       Wed Sep 03 03:25:29 2003 +0000
+++ b/doc/CHANGES       Wed Sep 03 03:28:23 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.3214 2003/09/02 17:58:22 epg Exp $
+$NetBSD: CHANGES,v 1.3215 2003/09/03 03:28:23 jlam Exp $
 
 Changes to the packages collection and infrastructure in 2003:
 
@@ -3489,3 +3489,4 @@
        Updated gmplayer to 1.0rc1 [jmmv 2003-09-02]
        Updated mencoder to 1.0rc1 [jmmv 2003-09-02]
        Updated subversion to 0.28.2 [epg 2003-09-02]
+       Updated libnbcompat to 20030824 [jlam 2003-09-02]
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/Makefile
--- a/pkgtools/libnbcompat/Makefile     Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/Makefile     Wed Sep 03 03:28:23 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2003/09/01 15:31:14 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2003/09/03 03:28:28 jlam Exp $
 #
 
-DISTNAME=              libnbcompat-20030823
+DISTNAME=              libnbcompat-20030824
 CATEGORIES=            pkgtools
 MASTER_SITES=          # empty
 DISTFILES=             # empty
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/PLIST
--- a/pkgtools/libnbcompat/PLIST        Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/PLIST        Wed Sep 03 03:28:23 2003 +0000
@@ -1,12 +1,10 @@
-@comment $NetBSD: PLIST,v 1.5 2003/09/01 15:31:14 jlam Exp $
-include/libnbcompat/extern.h
+@comment $NetBSD: PLIST,v 1.6 2003/09/03 03:28:28 jlam Exp $
 include/libnbcompat/err.h
 include/libnbcompat/ftpglob.h
 include/libnbcompat/fts.h
 include/libnbcompat/getopt.h
 include/libnbcompat/md5.h
 include/libnbcompat/mtree.h
-include/libnbcompat/namespace.h
 include/libnbcompat/nbcompat.h
 include/libnbcompat/nbconfig.h
 include/libnbcompat/nbtypes.h
@@ -15,7 +13,6 @@
 include/libnbcompat/rmd160.h
 include/libnbcompat/sha1.h
 include/libnbcompat/sha2.h
-include/libnbcompat/stat_flags.h
 include/libnbcompat/util.h
 include/libnbcompat/vis.h
 lib/libnbcompat.a
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/files/Makefile.in
--- a/pkgtools/libnbcompat/files/Makefile.in    Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/Makefile.in    Wed Sep 03 03:28:23 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.in,v 1.10 2003/09/02 01:54:39 jlam Exp $
+# $NetBSD: Makefile.in,v 1.11 2003/09/03 03:28:29 jlam Exp $
 #
 
 srcdir=                @srcdir@
@@ -19,9 +19,9 @@
 
 LIB=           libnbcompat.a
 
-INCS=          extern.h err.h ftpglob.h fts.h getopt.h md5.h mtree.h \
-               namespace.h nbcompat.h nbtypes.h pack_dev.h pwcache.h \
-               rmd160.h sha1.h sha2.h stat_flags.h util.h vis.h
+INCS=          err.h ftpglob.h fts.h getopt.h md5.h mtree.h \
+               nbcompat.h nbtypes.h pack_dev.h pwcache.h \
+               rmd160.h sha1.h sha2.h util.h vis.h
 
 OBJS=          @LIBOBJS@ \
                md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o sha1hl.o \
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/files/configure
--- a/pkgtools/libnbcompat/files/configure      Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure      Wed Sep 03 03:28:23 2003 +0000
@@ -2521,6 +2521,71 @@
 
 
 
+
+echo "$as_me:$LINENO: checking for fparseln in -lutil" >&5
+echo $ECHO_N "checking for fparseln in -lutil... $ECHO_C" >&6
+if test "${ac_cv_lib_util_fparseln+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lutil  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char fparseln ();
+int
+main ()
+{
+fparseln ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_util_fparseln=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_util_fparseln=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_util_fparseln" >&5
+echo "${ECHO_T}$ac_cv_lib_util_fparseln" >&6
+if test $ac_cv_lib_util_fparseln = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBUTIL 1
+_ACEOF
+
+  LIBS="-lutil $LIBS"
+
+fi
+
+
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac   Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac   Wed Sep 03 03:28:23 2003 +0000
@@ -23,6 +23,9 @@
 AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
 AC_SUBST(AUTOHEADER)
 
+dnl Checks for libraries
+AC_CHECK_LIB(util, fparseln)
+
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_TIME
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/files/nbconfig.h.in
--- a/pkgtools/libnbcompat/files/nbconfig.h.in  Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/nbconfig.h.in  Wed Sep 03 03:28:23 2003 +0000
@@ -109,6 +109,9 @@
 /* Define to 1 if you have the `lchown' function. */
 #undef HAVE_LCHOWN
 
+/* Define to 1 if you have the `util' library (-lutil). */
+#undef HAVE_LIBUTIL
+
 /* Define to 1 if you have the <libutil.h> header file. */
 #undef HAVE_LIBUTIL_H
 
diff -r a56b75342bc8 -r 857c27b5ac16 pkgtools/libnbcompat/files/util.h
--- a/pkgtools/libnbcompat/files/util.h Wed Sep 03 03:25:29 2003 +0000
+++ b/pkgtools/libnbcompat/files/util.h Wed Sep 03 03:28:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.h,v 1.2 2003/09/01 15:31:21 jlam Exp $    */
+/*     $NetBSD: util.h,v 1.3 2003/09/03 03:28:29 jlam Exp $    */
 
 /*-
  * Copyright (c) 1995
@@ -106,19 +106,14 @@
 char          *ttymsg(struct iovec *, int, const char *, int);
 int            ttyunlock(const char *);
 
-#ifndef HAVE_STRSEP
-char *strsep(char **, const char *);
+#if !HAVE_STRSEP
+char          *strsep(char **, const char *);
 #endif
 
-#ifndef HAVE_FGETLN
-char           *fgetln(FILE *, size_t *);
-#define LIST_EMPTY(head)                ((head)->lh_first == NULL) 
-#define LIST_FIRST(head)                ((head)->lh_first)
-#define LIST_NEXT(elm, field)           ((elm)->field.le_next)
+#if !HAVE_FGETLN
+char          *fgetln(FILE *, size_t *);
 #endif
 
 __END_DECLS
 
-static int isescaped(const char *, const char *, int);
-
 #endif /* !_UTIL_H_ */



Home | Main Index | Thread Index | Old Index