[Bug 280164] irc/inspircd: 4.0.1 fails to build when PCRE is enabled (patch included)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 06 Jul 2024 21:07:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280164

            Bug ID: 280164
           Summary: irc/inspircd: 4.0.1 fails to build when PCRE is
                    enabled (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: driesm@freebsd.org
          Reporter: fabian@wenks.ch
          Assignee: driesm@freebsd.org
             Flags: maintainer-feedback?(driesm@freebsd.org)

Created attachment 251905
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251905&action=edit
inspircd-4.0.1_1 patch

When the config option PCRE is enabled, the build fails with this:

Could not read modules/m_regex_pcre.cpp at make/calcdep.pl line 157.
gmake: *** [GNUmakefile:210: target] Error 2


When checking what is there, I did found this:

riddler:/usr/ports/irc/inspircd/work/inspircd-4.0.1/src/modules/ # ls -l
m_regex_pcre.cpp
lrwxr-xr-x  1 root  wheel  22 Jul  6 20:09 m_regex_pcre.cpp@ ->
extra/m_regex_pcre.cpp
riddler:/usr/ports/irc/inspircd/work/inspircd-4.0.1/src/modules/ # ls -l
extra/m_regex_* 
-rw-r--r--  1 root  wheel  4659 Jul  2 23:54 extra/m_regex_pcre2.cpp
-rw-r--r--  1 root  wheel  2832 Jul  2 23:54 extra/m_regex_posix.cpp
-rw-r--r--  1 root  wheel  2839 Jul  2 23:54 extra/m_regex_re2.cpp
riddler:/usr/ports/irc/inspircd/work/inspircd-4.0.1/src/modules/ # 

Removing the PCRE option would work and the port does build. Also adjusting the
Makefile and pkg-plist from pcre to pcre2 and then enable PCRE2 (instead of
PCRE) does help too. Patch is attached.

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