Bug 5827

Summary: mpd-0.22.2-1.fc32.x86_64: not linked against libsmbclient
Product: Fedora Reporter: Benjamin <bebl>
Component: mpdAssignee: leigh scott <leigh123linux>
Status: RESOLVED EOL    
Severity: normal CC: sanjay.ankur
Priority: P1    
Version: f32   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Benjamin 2020-11-03 17:27:59 CET
Hello,

while trying to configure my mpd setup to use the `smbclient` storage plugin to access my NAS directly, I noticed I get the following errors in the logs when trying to start the daemon:

Nov 03 17:09:02 t480-pf1aa2c2 systemd[4776]: Starting Music Player Daemon...
Nov 03 17:09:02 t480-pf1aa2c2 mpd[117436]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Nov 03 17:09:02 t480-pf1aa2c2 mpd[117436]: exception: Unrecognized storage URI: smb://vestri/music
Nov 03 17:09:02 t480-pf1aa2c2 systemd[4776]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Nov 03 17:09:02 t480-pf1aa2c2 systemd[4776]: mpd.service: Failed with result 'exit-code'.
Nov 03 17:09:02 t480-pf1aa2c2 systemd[4776]: Failed to start Music Player Daemon.

The first exception seems harmless, but the next one is fatal for that setup ("Unrecognized storage URI").

The configuration line in my mpd.conf looks like this:

music_directory         "smb://vestri/music"

I poked around a bit and noticed `/usr/bin/mpd` is not linked against `libsmbclient`. koji agrees on that:
http://koji.rpmfusion.org/koji/rpminfo?rpmID=666872 (fc32)
http://koji.rpmfusion.org/koji/rpminfo?rpmID=666898 (fc33)

For comparison, in this build (mpd-0.22.1-1.fc32.x86_64) it is still linked against libsmbclient.so.0:
http://koji.rpmfusion.org/koji/rpminfo?rpmID=662771 (fc32)

Some somehow the linking got dropped between mpd-0.22.1-1 and mpd-0.22.2-1.. no sure why. I checked the spec file, and it still has
BuildRequires:     libsmbclient-devel
Like it was suggested in:
https://bugzilla.rpmfusion.org/show_bug.cgi?id=4961 ("mpd missing support for rss, smb, upnp, avahi, etc")

Would be nice, if this could be resolved/re-enabled.
Comment 1 leigh scott 2020-11-03 17:47:40 CET
It seems to be disabled by default


# The "smbclient" plugin is disabled by default because libsmbclient
# has a serious bug which crashes MPD very quickly:
# https://bugzilla.samba.org/show_bug.cgi?id=11413
option('smbclient', type: 'feature', value: 'disabled', description: 'SMB support using libsmbclient')
Comment 2 Benjamin 2020-11-03 18:04:19 CET
Oh, yeah.. and that just a few days ago: https://github.com/MusicPlayerDaemon/MPD/commit/37710195ca581f3362e5db4ce3d5e4bdd2b1897e

.. didn't know that. So it might not be a good idea to use this setup anyway at this point in time.

Feel free to close the bug if you don't want to follow up on that. Thanks.