Subject: pkg/25430: postfix in pkgsrc/mail
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: pkgsrc-bugs
Date: 05/02/2004 06:04:30
>Number:         25430
>Category:       pkg
>Synopsis:       statfs -> statvfs change in CURRENT needs pkg adjustment
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 02 12:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0E
>Organization:
	johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 2.0E NetBSD 2.0E (KERNEL) #1: Fri Apr 30 03:30:28 MDT 2004 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
	Recently NetBSD went to statvfs from statfs. This impacts several packages including this one.
>How-To-Repeat:
	
>Fix:
	This new patch:

$NetBSD$

--- src/util/sys_defs.h.orig	2004-05-02 05:46:41.000000000 -0600
+++ src/util/sys_defs.h
@@ -48,8 +48,13 @@
 #endif
 #define GETTIMEOFDAY(t)	gettimeofday(t,(struct timezone *) 0)
 #define ROOT_PATH	"/bin:/usr/bin:/sbin:/usr/sbin"
+#if (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
+#define USE_STATVFS
+#define STATVFS_IN_SYS_STATVFS_H
+#else
 #define USE_STATFS
 #define STATFS_IN_SYS_MOUNT_H
+#endif
 #define HAS_POSIX_REGEXP
 #define HAS_ST_GEN	/* struct stat contains inode generation number */
 #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
>Release-Note:
>Audit-Trail:
>Unformatted: