pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/afio Use NAME_MAX (POSIX) by default and onl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7d7101e3508
branches:  trunk
changeset: 500141:a7d7101e3508
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 03 11:15:55 2005 +0000

description:
Use NAME_MAX (POSIX) by default and only fallback to the BSD or SysV
constants, when it doesn't exist. The latter isn't defined on DragonFly
by default anymore, since it is inherently filesystem specific.

diffstat:

 archivers/afio/distinfo         |   4 ++--
 archivers/afio/patches/patch-ab |  27 +++++++++++++++++++++++----
 2 files changed, 25 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 5dec772dd127 -r a7d7101e3508 archivers/afio/distinfo
--- a/archivers/afio/distinfo   Mon Oct 03 09:55:38 2005 +0000
+++ b/archivers/afio/distinfo   Mon Oct 03 11:15:55 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 14:45:22 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/10/03 11:15:55 joerg Exp $
 
 SHA1 (afio-2.5.tgz) = 051765f209fded60f94944da8a76ae37c3423a23
 RMD160 (afio-2.5.tgz) = 991bdb794ee8b4b7e6a737afa85009aae925699d
 Size (afio-2.5.tgz) = 179184 bytes
 SHA1 (patch-aa) = e35b47c2f10a6f80d8446e4c22a7a023dae55933
-SHA1 (patch-ab) = 234d24918c5d152b6c013e82d5e43a4471cc65de
+SHA1 (patch-ab) = 8d71a26fb6e68462d5a1789a381d485bf63e638b
 SHA1 (patch-ac) = 9c631e4ebf9b6aafd9a72461b285dfcae7a25048
diff -r 5dec772dd127 -r a7d7101e3508 archivers/afio/patches/patch-ab
--- a/archivers/afio/patches/patch-ab   Mon Oct 03 09:55:38 2005 +0000
+++ b/archivers/afio/patches/patch-ab   Mon Oct 03 11:15:55 2005 +0000
@@ -1,8 +1,16 @@
-$NetBSD: patch-ab,v 1.1 2004/07/10 15:35:52 salo Exp $
+$NetBSD: patch-ab,v 1.2 2005/10/03 11:15:55 joerg Exp $
 
---- compfile.c.orig    Tue Jun 24 23:32:20 2003
-+++ compfile.c Sat Jul 10 17:26:02 2004
-@@ -210,7 +210,7 @@
+--- compfile.c.orig    2003-06-24 21:32:20.000000000 +0000
++++ compfile.c
+@@ -2,6 +2,7 @@
+ 
+ #include <stdio.h>
+ #include <errno.h>
++#include <limits.h>
+ #include <unistd.h>
+ #include <string.h>
+ 
+@@ -210,7 +211,7 @@ void waitforgzip()
   * version;
   */
  
@@ -11,3 +19,14 @@
  #include <dirent.h>
  #else
  #include <sys/dir.h>
+@@ -283,7 +284,9 @@ compressfile (int *fdp, char *name, reg 
+       tmpcomp++;
+     else
+       tmpcomp = name;
+-#ifdef MAXNAMLEN         /* BSD otherwise should be sysV (FFS on sysV?) */
++#if defined(NAME_MAX)
++    if (strlen (tmpcomp) + 2 > NAME_MAX)
++#elif defined(MAXNAMLEN)  /* BSD otherwise should be sysV (FFS on sysV?) */
+     if (strlen (tmpcomp) + 2 > MAXNAMLEN)
+ #else
+     if (strlen (tmpcomp) + 2 > DIRSIZ)



Home | Main Index | Thread Index | Old Index