Bug 122364

Summary: www/mod_security2 won't work properly without libxml2
Product: Ports & Packages Reporter: jdunn
Component: Individual Port(s)Assignee: Marcelo Araujo <araujo>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 2008-04-08 04:24:18 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!