[Bug 272971] irc/anope: update to 2.0.13 crashes on FreeBSD 12.4 (patch included)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Aug 2023 11:11:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272971

            Bug ID: 272971
           Summary: irc/anope: update to 2.0.13 crashes on FreeBSD 12.4
                    (patch included)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fabian@wenks.ch
                CC: devnull@apt322.org
                CC: devnull@apt322.org
             Flags: maintainer-feedback?(devnull@apt322.org)

Created attachment 243880
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243880&action=edit
patch for src/config.cpp

After upgrading from 2.0.12 to 2.0.13 on FreeBSD 12.4 anope did fail on restart
with this:

superman:~/ # /usr/local/etc/rc.d/anope restart   
Stopping anope.
Waiting for PIDS: 1678.
Starting anope.
Anope 2.0.13, build #1, compiled 19:06:44 Aug  1 2023
Using configuration file conf/services.conf
/usr/local/etc/rc.d/anope: WARNING: failed to start anope
superman:~/ # 

In services.log I only had this (and then it stopped):
[Aug 06 12:46:11 2023] SERVER: services.example.com (Services for IRC Networks)
has connected to the network (uplinked to no uplink)
[Aug 06 12:46:11 2023] Anope 2.0.13 starting up
[Aug 06 12:46:11 2023] Loading modules...
[Aug 06 12:46:11 2023] Using IRCd protocol inspircd3
[Aug 06 12:46:11 2023] Loading databases...
[Aug 06 12:46:11 2023] Databases loaded

Based on https://github.com/anope/anope/issues/316 I created the attached patch
in irc/anope/files/ and did rebuild anope and now it does run again:

superman:~/ # /usr/local/etc/rc.d/anope restart
anope not running? (check /usr/local/anope/data/services.pid).
Starting anope.
Anope 2.0.13, build #1, compiled 12:38:03 Aug  6 2023
Using configuration file conf/services.conf
Attempting to connect to uplink #1 ::1 (::1/7000) with protocol InspIRCd 3
Successfully connected to uplink #1 ::1:7000
Successfully linked, launching into background...
superman:~/ #

-- 
You are receiving this mail because:
You are the assignee for the bug.