Subject: pkg/22349: www/mozilla and www/phoenix can't install xpi files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 08/03/2003 23:59:08
>Number:         22349
>Category:       pkg
>Synopsis:       www/mozilla and www/phoenix can't install xpi files
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 03 15:00:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 1.6W
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6W NetBSD 1.6W (FIREFLY) #133: Sun Aug 3 16:13:49 JST 2003 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:
	A configure of mozilla only detects sys/statfs.h for statfs(2). But
	NetBSD needs sys/param.h and sys/mount.h for statfs(2). If a system
	does not have sys/statfs.h, a function that returns free disk space
	does nothing. When mozilla installs xpi files, free disk space is
	incorrect value. Therefore, it can't install xpi files.

>How-To-Repeat:
	install xpi files on mozilla and phoenix

>Fix:
	add defined(__NetBSD__) to xpcom/io/nsLocalFileUnix.h
	(comment will be "NetBSD" instead of "netbsd"?)

--- xpcom/io/nsLocalFileUnix.h.orig	2003-07-16 11:43:45.000000000 +0900
+++ xpcom/io/nsLocalFileUnix.h	2003-07-16 11:44:10.000000000 +0900
@@ -60,8 +60,8 @@
     #define STATFS statfs
 #endif
 
-// so we can statfs on freebsd
-#if defined(__FreeBSD__)
+// so we can statfs on freebsd and netbsd
+#if defined(__FreeBSD__) || defined(__NetBSD__)
     #define HAVE_SYS_STATFS_H
     #define STATFS statfs
     #include <sys/param.h>
>Release-Note:
>Audit-Trail:
>Unformatted: