Bug 1218827 - Packages cdemu cdemu-daemon gcdemu vhba-kmp-default improperly packaged, missing udev files
Summary: Packages cdemu cdemu-daemon gcdemu vhba-kmp-default improperly packaged, miss...
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jan Engelhardt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-16 02:16 UTC by Jorge Blasio
Modified: 2024-03-09 03:58 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
jengelh: needinfo? (jorge.blasio)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jorge Blasio 2024-01-16 02:16:39 UTC
As per developer rokm states on the projects github, the failure of cdemu to load the daemon are because the openSUSE packages were not properly created and are missing 3 udev files https://github.com/cdemu/cdemu/issues/28#issuecomment-1891338614
Without these, cdemu just fails.
Comment 1 Marcus Meissner 2024-01-16 07:39:16 UTC
perhaps for Jan.
Comment 2 Jan Engelhardt 2024-02-12 12:39:20 UTC
Cannot reproduce. Permissions are set.

# rpm -ql cdemu-daemon
/usr/bin/cdemu-daemon
/usr/lib/systemd/user/cdemu-daemon.service
/usr/lib/udev
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/60-vhba.rules  <<<---
/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
/usr/share/doc/packages/cdemu-daemon
/usr/share/doc/packages/cdemu-daemon/README
/usr/share/fillup-templates/sysconfig.cdemu-daemon
/usr/share/licenses/cdemu-daemon
/usr/share/licenses/cdemu-daemon/COPYING
/usr/share/locale/ru/LC_MESSAGES/cdemu-daemon.mo
/usr/share/locale/sl/LC_MESSAGES/cdemu-daemon.mo
/usr/share/man/man8/cdemu-daemon.8.gz

# cat /usr/lib/udev/rules.d/60-vhba.rules
#KERNEL=="vhba_ctl", NAME="%k", MODE="0660", OWNER="root", GROUP="cdrom"
KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess"

# modprobe vhba
# ls -al /dev/vhba_ctl 
crw-rw----+ 1 root root 10, 170 Feb 12 13:36 /dev/vhba_ctl

$ cdemu-daemon &
Starting CDEmu daemon with following parameters:
 - config file: (null) (exists: 0)
 - num devices: 1
 - control device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session
 - default CDEmu debug mask: 0x0
 - default libMirage debug mask: 0x0

Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)

$ cdemu load 0 ut99.iso
_g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
$ lsscsi
[0:0:0:0]    cd/dvd  CDEmu    CD-ROM           1.0   /dev/sr0 
[N:0:5:1]    disk    SAMSUNG MZVLQ512HALU-00007__1              /dev/nvme0n1
Comment 3 Jorge Blasio 2024-03-09 03:58:53 UTC
I just installed cd-emu and gcdemu on a fresh TW install and it works after manually loading the vhba module.