Samba 4.x package support thread

Have you considered switching to a snapshot build? GitHub search is an unusable piece of garbage so I can’t find the recent commit but the Samba version is much more recent on main branch.

@takimata Wow nice job with the luci rewrite. Hope that gets built into OpenWrt someday.

1 Like

well I have found this...it has "samba4-server-4.22.3-r2.apk"....

but that's an .apk not .ipk......can i just use this or my Flint 2 is gonna blow up? :stuck_out_tongue:

also i tried pasting the link ( src/gz snapshot_packages https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages ) in /etc/opkg/customfeeds.conf....wget failed ofc..

[Edit]: i saw indeed that apk is gonna be supported with future kernel versions, and to be honest i am not willing to go ultra ninja with main branch snapshots... i just want Samba 4.23 :cry:

I too hope a really nice dev bumps to Samba 4.23.x since there are some tweaks (UNIX extensions) in the new release. Hope it happens in main for OpenWrt 25.x release but who knows. Samba has been more reliable than Ksmbd for me so prefer using it.

Maybe most dev went to Ksmbd, but could any kind package maintainer bump Samba 4.23.4 since 25.12-rc is close? There are some CVE fixes, and an Apple time machine fix that would be useful to users.

2 Likes

Currently working on either bump into latest samba git or 4.23 or 4.24, but found out a problem :


Checking if compiler accepts -fstack-protector                                                  : no 
Checking if compiler accepts -fstack-clash-protection                                           : yes 
'configure' finished successfully (2m18.369s)
No function '_python_sysroot=/home/nobody/works/openwrt/staging_dir/target-x86_64_glibc_nobody' defined in /home/nobody/works/openwrt/build_dir/target-x86_64_glibc_nobody/samba-4.23.5/wscript
make[2]: *** [Makefile:485: /home/nobody/works/openwrt/build_dir/target-x86_64_glibc_nobody/samba-4.23.5/.configured_618a2b81b6a7ca0e965081e353102573] Error 1
make[2]: Leaving directory '/home/nobody/works/openwrt/feeds/packages/net/samba4'
time: package/feeds/packages/samba4/compile#90.79#52.18#142.28
    ERROR: package/feeds/packages/samba4 failed to build.
make[1]: *** [package/Makefile:187: package/feeds/packages/samba4/compile] Error 1
make[1]: Leaving directory '/home/nobody/works/openwrt'
make: *** [/home/nobody/works/openwrt/include/toplevel.mk:233: package/samba4/compile] Error 2

Temporary link into the samba4 OpenWrt package repo.

Also reported it into samba bugzilla.

If anyone found a workaround, feel freely to join in. Because this waf version bump which is the most probably the real reason behind this issue is the underlying behind version 4.23, 4.24, 4.25 and beyond, if we don’t found a workaround or fixes then we stuck with version 4.22.x.

2 Likes

The aforementioned bug, it has been fixed by samba upstream. Hopefully it will get official soon.

2 Likes