Linux Samba 4 plans (SMB 2+ support)
#1
Does Kodi test with one version of samba or have a specific version(s) it officially recommends/supports? I'm using Kodi via OpenELEC (on a Raspberry Pi 2), and I'm running into a problem connecting to SMB 2+-only servers (like Windows 8.1 without the legacy "SMB 1.0/CIFS File Sharing Support" feature enabled). I've filed a bug there:
https://github.com/OpenELEC/OpenELEC.tv/issues/4174

Ultimately SMB 2+ client support isn't available in the samba 3.x code (it was added in 4.1), so we'd need to update OpenELEC to samba 4.1+ to connect to such servers.

One of the OpenELEC team members indicated:
"Kodi is not prepared and tested together with samba-4.x, so this will be investigated after kodi includes samba-4 support officially"

Are there any current plans regarding samba 4.x or any thoughts on when that would be officially supported?

Thanks,

David
Reply
#2
I believe it's not possible to add to current Kodi mainline due to licenses incompatibility issue, this is because Kodi mainline does not yet support binary VFS (Virtual File System) addons?

You can probably try using this fork https://github.com/notspiff/kodi-cmake and update the SMB VFS addon for it from here https://github.com/notspiff/vfs.smb

The above linked kodi-cmake fork by notspiff have added support for binary VFS (Virtual File System) addons, which I believe adds abstraction that resolve license compatibility issues?

http://news.samba.org/announcements/samba_gplv3/
Quote:I am the author of a GPLv2 licensed program, can I still use the samba libraries?

The Samba Team releases libraries under two licenses: the GPLv3 and the LGPLv3. If your code is released under a "GPLv2 or later" license, it is compatible with both the GPLv3 and the LGPLv3 licensed Samba code.

If your code is released under a "GPLv2 only" license, it is not compatible with the Samba libraries released under the GPLv3 or LGPLv3 as the wording of the "GPLv2 only" license prevents mixing with other licenses. If you wish to use libraries released under the LGPLv3 with your "GPLv2 only" code then you will need to modify the license on your code.
Reply
#3
I think that change happened a while ago - the license change started applying with version 3.2. What version of samba does Kodi use/test with? In OpenELEC, they're using the latest 3.x (3.6.25, I think).

Quote:To be clear, all versions of Samba numbered 3.2 and later will be under the GPLv3, all versions of Samba numbered 3.0.x and before remain under the GPLv2.
Reply
#4
we are already using a GPLv3 samba by default, but its still 3.6 iirc. Ubuntu builds otoh use system samba, which is >=4.1 atm.
So, there is no reason besides devs time contraints, to not try to bump other platforms samba as well.
Reply
#5
Thanks, wsnipex. For other platforms, I assume there would be a code change somewhere in the main repo (https://github.com/xbmc/xbmc); is that correct? I haven't submitted to Kodi's codebase before but would be willing to give it a try. Any pointers for files/directories where I should start?

Thanks,

David
Reply
#6
see https://github.com/xbmc/xbmc/pull/6833 for what was needed for our last samba bump.
Reply
#7
Ah, I've should've searched instead of making assumptions, now checked and found these three pull requests:

https://github.com/xbmc/xbmc/pull/6833
https://github.com/xbmc/xbmc/pull/2219
https://github.com/xbmc/xbmc/pull/2961

Still, having mainline support for binary VFS (Virtual File System) addons would make future updates easier.
Reply

Logout Mark Read Team Forum Stats Members Help
Samba 4 plans (SMB 2+ support)0