From owner-freebsd-ports Thu Nov 2 12: 0: 9 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7117837B4CF for ; Thu, 2 Nov 2000 12:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA19942; Thu, 2 Nov 2000 12:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 15E9537B479 for ; Thu, 2 Nov 2000 11:52:11 -0800 (PST) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.11.0/8.11.1) with ESMTP id eA2JqAf37023 for ; Thu, 2 Nov 2000 11:52:10 -0800 (PST) (envelope-from nsayer@mailhost.kfu.com) Received: by morpheus.kfu.com (8.11.0//ident-1.0) id eA2JqAI71166; Thu, 2 Nov 2000 11:52:10 -0800 (PST) Message-Id: <200011021952.eA2JqAI71166@morpheus.kfu.com> Date: Thu, 2 Nov 2000 11:52:10 -0800 (PST) From: nsayer@quack.kfu.com Reply-To: nsayer@quack.kfu.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22551: KDE 2.0 desktop device (cd, floppy) icons don't show mount state properly Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22551 >Category: ports >Synopsis: KDE 2.0 desktop device (cd, floppy) icons don't show mount state properly >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 02 12:00:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Nick Sayer >Release: FreeBSD 4.1.1-STABLE i386 >Organization: Just me >Environment: kdelibs port >Description: KIO::findDeviceMountPoint is implemented incorrectly for FreeBSD. FreeBSD lacks a mnttab, mtab or similar file. You're supposed to do a getmntinfo() to get the list of mounted filesystems. >How-To-Repeat: Create an icon on your desktop for a CDROM device. Note that it is always mounted regardless of whether it is or not. >Fix: See also KDE bug #14146. Add this patch to the kdelibs2 port: --- kio/global.cpp.orig Mon Sep 18 07:24:44 2000 +++ kio/global.cpp Thu Nov 2 11:37:24 2000 @@ -28,6 +28,12 @@ #include #include +#ifdef __FreeBSD__ +#include +#include +#include +#endif + #ifdef HAVE_FSTAB_H #include #endif @@ -423,6 +429,30 @@ /* Get the list of mounted file systems */ +#ifdef __FreeBSD__ + + QString result; + struct statfs *mounted; + + int num_fs = getmntinfo(&mounted, MNT_NOWAIT); + + for (int i=0;iRelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message