Bug 122364 - www/mod_security2 won't work properly without libxml2
Summary: www/mod_security2 won't work properly without libxml2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcelo Araujo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 04:10 UTC by jdunn
Modified: 2008-04-08 04:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jdunn 2008-04-02 04:10:01 UTC
If mod_security is built without libxml2 support, then the bundled ruleset won't load with the following error:

Error creating rule: Unknown variable: XML

Fix: 

Remove this knob from the Makefile:

 .if defined(WITH_LIBXML2)
 AP_EXTRAS+= -DWITH_LIBXML2
 AP_INC= ${LOCALBASE}/include/libxml2
 AP_LIB= ${LOCALBASE}/lib
 USE_GNOME= libxml2
 .endif

and always build with libxml2 as a dependency.
How-To-Repeat: 
Install www/mod_security2 without specifying the make flag -DWITH_LIBXML2. The above error will be seen when activating it in Apache.
Comment 1 Edwin Groothuis freebsd_committer 2008-04-02 04:21:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2008-04-08 04:24:02 UTC
araujo      2008-04-08 03:23:57 UTC

  FreeBSD ports repository

  Modified files:
    www/mod_security2    Makefile distinfo 
  Log:
  - Update to 2.1.7.
  - Always build with libxml2 as a dependency. [1]
  
  PR:             ports/122364 [1]
  Submitted by:   Julian C. Dunn <jdunn@aquezada.com> [1]
  
  Revision  Changes    Path
  1.14      +2 -8      ports/www/mod_security2/Makefile
  1.9       +3 -3      ports/www/mod_security2/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Marcelo Araujo freebsd_committer 2008-04-08 04:24:18 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!