[Bug 279748] security/modsecurity3: Fix build with libxml2 2.12 and newer

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Jun 2024 05:24:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279748

            Bug ID: 279748
           Summary: security/modsecurity3: Fix build with libxml2 2.12 and
                    newer
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: diizzy@FreeBSD.org
                CC: marius.halden@modirum.com
            Blocks: 279705
             Flags: maintainer-feedback?(marius.halden@modirum.com)
                CC: marius.halden@modirum.com

Created attachment 251464
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251464&action=edit
Patch for modsecurity3

Backport patch from Arch Linux to fix build with libxml2 2.12 and newer
And while at it disable autodetection of (lib)pcre2

Reference:
https://gitlab.archlinux.org/archlinux/packaging/packages/libmodsecurity/-/blob/main/libxml-includes.patch?ref_type=heads

Compile tested on FreeBSD 14.0-RELEASE (amd64) (make, make check-plist)

Poudriere testport OK 13.2-RELEASE (amd64)
Poudriere testport OK 14.0-RELEASE (amd64)


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279705
[Bug 279705] textproc/libxml2: Update to 2.13.0
-- 
You are receiving this mail because:
You are the assignee for the bug.