Created attachment 265597 [details] net/asterisk22 update patch Asterisk 22.7.0 Now Available Changelog: https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.7.0.html
Created attachment 265598 [details] net/asterisk22 update patch v2
Suggestion to prevent silent grab of libunbound.so from dns/unbound: Error: /usr/local/lib/asterisk/modules/res_resolver_unbound.so is linked to /usr/local/lib/libunbound.so.8 from dns/unbound but it is not declared as a dependency Warning: you need LIB_DEPENDS+=libunbound.so:dns/unbound @@ -67,7 +63,7 @@ OPTIONS_DEFINE= ASTVERSION BACKTRACE CURL EXCHANGE FREETDS G729 LDAP LUA \ MP3PLAYER OOH323 OPTIMIZED_CFLAGS PJSIP PORTAUDIO RADIUS SNMP \ - SPANDSP SRTP SYSINFO URIPARSER XMLDOC XMPP + SPANDSP SRTP SYSINFO UNBOUND URIPARSER XMLDOC XMPP OPTIONS_DEFINE_aarch64= GEOLOCATION OPTIONS_DEFINE_amd64= DAHDI GEOLOCATION OPTIONS_DEFINE_i386= DAHDI GEOLOCATION @@ -108,6 +104,7 @@ PJSIP_DESC= Build the PJSIP based SIP channel SRTP_DESC= SecureRTP support SYSINFO_DESC= Use devel/libsysinfo to get system information +UNBOUND_DESC= Use dns/unbound URIPARSER_DESC= Use RFC 3986 compliant uriparser library XMLDOC_DESC= Build and install XML documentation XMPP_DESC= XMPP/GTALK support @@ -197,6 +194,9 @@ SRTP_CONFIGURE_WITH= srtp SYSINFO_LIB_DEPENDS= libsysinfo.so:devel/libsysinfo + +UNBOUND_LIB_DEPENDS= libunbound.so:dns/unbound +UNBOUND_CONFIGURE_WITH= unbound URIPARSER_LIB_DEPENDS= liburiparser.so:net/uriparser URIPARSER_CONFIGURE_WITH= uriparser Same for net/asterisk20.
Friendly ping.
Sorry for delayed response, I'm too busy until weekend. Seems this issue only occurs when dns/unbound already installed while building net/asterisk22. I cannot reproduce it with both local build on fresh machine and poudriere-test. On the other hand res_resolver_unbound module may be helpful in some setups, so it must be optionally included in port. Your patch looks good, but I can test it some later this week. Thanks!
(In reply to Oleksandr Kryvulia from comment #4) Ye, I found this during build on real system with dns/unbound. We call this "silent grab". I can wait if you need several days. Check version 20 too. You can also make a better description.
Created attachment 265782 [details] net/asterisk22 update patch v3 Updated patch based on vvd's work.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=be2a8e3d56f1d1f6c2aed6e02154fee767cfe68a commit be2a8e3d56f1d1f6c2aed6e02154fee767cfe68a Author: Oleksandr Kryvulia <o.kryvulia@flex-it.com.ua> AuthorDate: 2025-12-02 19:49:35 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-12-02 19:49:35 +0000 net/asterisk22: Update 22.6.0 → 22.7.0 Changelog: https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.7.0.html Add non-default option UNBOUND to prevent silent grab of libunbound.so from dns/unbound. PR: 291177 Sponsored by: FLEX-IT LLC Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> net/asterisk22/Makefile | 12 ++++++------ net/asterisk22/distinfo | 8 +++----- net/asterisk22/pkg-plist | 2 ++ 3 files changed, 11 insertions(+), 11 deletions(-)
Thanks.