NetBSD Problem Report #42957

From www@NetBSD.org  Thu Mar 11 11:41:24 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id F124063B8DE
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Mar 2010 11:41:23 +0000 (UTC)
Message-Id: <20100311114123.8110963B873@www.NetBSD.org>
Date: Thu, 11 Mar 2010 11:41:23 +0000 (UTC)
From: kolaloka@netbsd.sk
Reply-To: kolaloka@netbsd.sk
To: gnats-bugs@NetBSD.org
Subject: xfce4 does not mount CDROM
X-Send-Pr-Version: www-1.0

>Number:         42957
>Category:       pkg
>Synopsis:       xfce4 does not mount CDROM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 11 11:45:00 +0000 2010
>Closed-Date:    Tue Nov 12 10:58:27 +0000 2013
>Last-Modified:  Tue Nov 12 10:58:27 +0000 2013
>Originator:     Petr Topiarz
>Release:        5.99.24 (GENERIC) - current
>Organization:
>Environment:
NetBSD acer.bsd.home 5.99.24 NetBSD 5.99.24 (GENERIC) #0: Fri Mar  5 00:05:42 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/HEAD/i386/201003050000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386

>Description:
I log into xfce4 through gdm. Hal is autostarted by rc.conf. Procfs is mounted. /proc exists is owned by root and in the group owning it is haldaemon. chmown is 770. 

Xfce 4 can see a cdrom (I don't have it in fstab) and when I insert a cd, the label appears under the icon. If I want to mount it by right clicking and selecting "mount", a window appears saying Unable to mount "CD-ROM Disc":

Given device "/org/freedesktop/Hal/devices/cd0d" is not a volume or drive

However lshal reviels:

lshal |grep cd0  
udi = '/org/freedesktop/Hal/devices/cd0'
  block.device = '/dev/cd0d'  (string)
  block.netbsd.raw_device = '/dev/rcd0d'  (string)
  info.product = 'cd0'  (string)
  info.udi = '/org/freedesktop/Hal/devices/cd0'  (string)
  netbsd.device = 'cd0'  (string)
udi = '/org/freedesktop/Hal/devices/cd0d'
  block.device = '/dev/cd0d'  (string)
  block.netbsd.raw_device = '/dev/rcd0d'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/cd0'  (string)
  info.parent = '/org/freedesktop/Hal/devices/cd0'  (string)
  info.product = 'cd0d'  (string)
  info.udi = '/org/freedesktop/Hal/devices/cd0d'  (string)
  netbsd.device = 'cd0d'  (string)


to see my policykit conf (which works greatly on 5.0.2 with xfce4)

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

<match user="root">
		<retur
n result="yes"/>
	 </match>

	<match user="beowulf">
		<return result="yes"/>
	</match>
	<define_admin_auth group="wheel"/>
</config>

any idea how to fix this?
>How-To-Repeat:
Install NetBSD 5.99.24 (GENERIC) and xfce4 from pkgsrc-current.
Log through GDM.
Insert a cdrom.
Try to mount it by clicking at mount from the right-click menu.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->netbsd-desktop
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Thu, 11 Mar 2010 18:34:16 +0000
Responsible-Changed-Why:
Looks more like a hal/policykit issue to me, rather than something xfce specific. Can you have a look please ?


From: kolaloka@netbsd.sk
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42957 (xfce4 does not mount CDROM)
Date: Fri, 12 Mar 2010 01:35:47 +0100 (CET)

 > Synopsis: xfce4 does not mount CDROM
 >
 > Responsible-Changed-From-To: pkg-manager->netbsd-desktop
 > Responsible-Changed-By: gls@NetBSD.org
 > Responsible-Changed-When: Thu, 11 Mar 2010 18:34:16 +0000
 > Responsible-Changed-Why:
 > Looks more like a hal/policykit issue to me, rather than something xfce
 > specific. Can you have a look please ?
 >
 >
 >
 >

 Yes, I confirm, very much it looks like HAL issue. It is very similar with
 USB stick. But even worse. When I plug USB stick in, the system reports
 that it found the stick and where it is, however, lshal reports no change.

 So my guess is hal on current is broken.

 Peter

Responsible-Changed-From-To: netbsd-desktop->pkg-manager
Responsible-Changed-By: spz@NetBSD.org
Responsible-Changed-When: Sat, 27 Mar 2010 17:19:08 +0000
Responsible-Changed-Why:
setting responsible to random strings does not work.
They need to either be strings taken from
/home/gnats/gnatsdb/gnats-adm/responsible or a local user account.


State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Tue, 12 Nov 2013 10:58:27 +0000
State-Changed-Why:
duplicate of pkg/40934


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.