Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jul 2024 21:07:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280164] irc/inspircd: 4.0.1 fails to build when PCRE is enabled (patch included)
Message-ID:  <bug-280164-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280164

            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=3D251905&action=
=3Dedit
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_*=20
-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/ #=20

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280164-7788>