ports/137215: www/mod_security ports has wrong pkg-plist with WITH_MLOGC=yes

Oleg Ginzburg oleg.ginzburg at nevosoft.ru
Tue Jul 28 15:20:02 UTC 2009


>Number:         137215
>Category:       ports
>Synopsis:       www/mod_security ports has wrong pkg-plist with WITH_MLOGC=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 28 15:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Ginzburg
>Release:        8.0-BETA2
>Organization:
>Environment:
FreeBSD gizmo.nevosoft.local 8.0-BETA2 FreeBSD 8.0-BETA2 #3: Mon Jul 27 12:05:59 MSD 2009     root at gizmo.nevosoft.local:/usr/obj/usr/src/sys/WKS-GENERIC  amd64
>Description:
Records in Makefile 
"PLIST_FILES+=   ${PREFIX}/bin/mlogc" add extra PREFIX in standart configuration.
As result, content has full path 

grep mlogc$ /var/db/pkg/mod_security-2.5.9/+CONTENTS
/usr/local/bin/mlogc


and this make incorrect pkg_delete procedure:

--
pkg_delete: file '/usr/local//usr/local/bin/mlogc' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
--

>How-To-Repeat:
make WITH_MLOGC=yes -C /usr/ports/www/mod_security install && make WITH_MLOGC=yes -C /usr/ports/www/mod_security deinstall
>Fix:
diff -ruN mod_security.bak/Makefile mod_security/Makefile
--- mod_security.bak/Makefile   2009-07-28 19:08:39.000000000 +0400
+++ mod_security/Makefile       2009-07-28 19:17:40.000000000 +0400
@@ -45,7 +45,7 @@
 .if !defined(SKIP_RULES)
 SUB_FILES+=    pkg-message.rules
 .if defined(WITH_MLOGC)
-PLIST_FILES+=  ${PREFIX}/bin/mlogc
+PLIST_FILES+=  bin/mlogc
 .endif
 PLIST_DIRS+=   ${APACHEETCDIR}/Includes/mod_security2/optional_rules
 PLIST_DIRS+=   ${APACHEETCDIR}/Includes/mod_security2


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list