Subject: pkg/14429: KDE2 kdeeject doesn't work
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 11/02/2001 13:26:11
>Number:         14429
>Category:       pkg
>Synopsis:       KDE2 kdeeject doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 16:27:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        NetBSD 1.5Y 29/10/2001
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD turakirae.mcs.vuw.ac.nz 1.5Y NetBSD 1.5Y (MCS_WORKSTATION) #1: Tue Oct 30 22:54:21 NZDT 2001 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	Requests to eject CD's from the kde2 desktop fail as the kdeeject
	script assumes that BSD has a sed that has an "-E" option and has
	a "cdcontrol" (presumably FreeBSD).

>How-To-Repeat:
	Right click a kde2 desktop CD Device Icon and select eject.
	Note that nothing happens.

>Fix:
	Add the following as a patch in the kdebase2 package.

--- kdesktop/kdeeject~	Sun May  6 08:05:58 2001
+++ kdesktop/kdeeject	Thu Oct 25 16:18:22 2001
@@ -13,6 +13,9 @@
   # I guess this is the reason for making this a kde app...
   OS=`uname -s`
   case "$OS" in
+    NetBSD)
+      eject $1 >/dev/null 2>&1
+      ;;
     *BSD)
       dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
       cdcontrol -f $dev eject >/dev/null 2>&1

cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: