Bug 291177 - net/asterisk22: Update 22.6.0_1 → 22.7.0
Summary: net/asterisk22: Update 22.6.0_1 → 22.7.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-23 17:43 UTC by Oleksandr Kryvulia
Modified: 2025-12-02 19:56 UTC (History)
1 user (show)

See Also:


Attachments
net/asterisk22 update patch (3.59 KB, patch)
2025-11-23 17:43 UTC, Oleksandr Kryvulia
no flags Details | Diff
net/asterisk22 update patch v2 (3.46 KB, patch)
2025-11-23 18:45 UTC, Oleksandr Kryvulia
no flags Details | Diff
net/asterisk22 update patch v3 (4.53 KB, patch)
2025-12-02 19:15 UTC, Oleksandr Kryvulia
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Kryvulia 2025-11-23 17:43:09 UTC
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
Comment 1 Oleksandr Kryvulia 2025-11-23 18:45:11 UTC
Created attachment 265598 [details]
net/asterisk22 update patch v2
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-24 00:02:12 UTC
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.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-26 10:04:36 UTC
Friendly ping.
Comment 4 Oleksandr Kryvulia 2025-11-26 19:13:11 UTC
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!
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-26 22:05:39 UTC
(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.
Comment 6 Oleksandr Kryvulia 2025-12-02 19:15:27 UTC
Created attachment 265782 [details]
net/asterisk22 update patch v3

Updated patch based on vvd's work.
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-12-02 19:55:38 UTC
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(-)
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2025-12-02 19:56:08 UTC
Thanks.