Bug 279748 - security/modsecurity3: Fix build with libxml2 2.12 and newer
Summary: security/modsecurity3: Fix build with libxml2 2.12 and newer
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks: 279705
  Show dependency treegraph
 
Reported: 2024-06-15 05:24 UTC by Daniel Engberg
Modified: 2024-06-24 17:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (marius.halden)


Attachments
Patch for modsecurity3 (1.77 KB, patch)
2024-06-15 05:24 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-06-15 05:24:56 UTC
Created attachment 251464 [details]
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)
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-06-16 15:46:43 UTC
Poudriere testport OK 13.2-RELEASE (amd64) - With current version of libxml2 in tree
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2024-06-24 17:39:15 UTC
Fixed in later iterations of libxml2,
https://pdr2.bofh.network/data/140-diizzy/libxml2-libxslt/logs/modsecurity3-3.0.12.log