Makefile for net/samba410 contains this line:
sysutils/cmocka being the unit testing framework for C, isn't it sufficient for samba to build? Is it really required for it to run?
(In reply to michal from comment #0)
Let me rephrase my question. Is cmocka really required as a run dependency?
(In reply to michal from comment #1)
I got the question, sure.
Las time when I was making the port one or two binaries were linked to this library, so it was necessary.
But, TBH, I haven't checked this linkage for 4.10, so maybe, it's not necessary anymore. Or the binary can be removed from the package, 99% is that was smbtorture, which isn't commonly used.
(In reply to Timur I. Bakeyev from comment #2)
On my installation, none of the binaries and libs installed by net/samba410 seems to be dynamically linked to libcmocka.so. Not even smbtorture.
# ldd /usr/local/bin/smbtorture | grep cmocka | wc -l
I'll try to rebuild net/samba410 with that RUN_DEPENDS line commented out. Will let you know the result if interested.
(In reply to michal from comment #3)
So I commented the line RUN_DEPENDS+=cmocka>=1.1.3:sysutils/cmocka and did full package rebuild and reinstall. So far everything seems to be working okay. net/samba410 on my system is configured as follows:
# cat /var/db/ports/net_samba410/options
# This file is auto-generated by 'make config'.
# Options for samba410-4.10.11
_FILE_COMPLETE_OPTIONS_LIST=ADS AD_DC AESNI CLUSTER CUPS DEBUG DEVELOPER DOCS FAM GPGME LDAP MANDOC NTVFS PROFILE QUOTAS SPOTLIGHT SYSLOG UTMP GSSAPI_BUILTIN GSSAPI_MIT ZEROCONF_NONE AVAHI MDNSRESPONDER NSUPDATE BIND911 BIND914 FRUIT GLUSTERFS
Ok, I made thorough enough analysis of the include packages and delendencies, it looks like indeed, cmocka isn't required for the normal run of the Samba, only for the tests. Still it is necessary for the BUILD stage.
So should be it, no RUN_DEPENDS for cmocka.
Thank you for your report!