From freebsd@deathbeforedecaf.net  Wed Dec 28 17:03:10 2005
Return-Path: <freebsd@deathbeforedecaf.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 39DFF16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Dec 2005 17:03:10 +0000 (GMT)
	(envelope-from freebsd@deathbeforedecaf.net)
Received: from mail.0x7e.net (ppp251-46.static.internode.on.net [203.122.251.46])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BD69643D46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Dec 2005 17:03:09 +0000 (GMT)
	(envelope-from freebsd@deathbeforedecaf.net)
Received: from zim.0x7e.net ([10.10.10.3] helo=gir.0x7e.net)
	by mail.0x7e.net with smtp (Exim 4.43 (FreeBSD))
	id 1Erehg-0001yK-3C
	for FreeBSD-gnats-submit@freebsd.org; Thu, 29 Dec 2005 03:33:08 +1030
Received: by gir.0x7e.net (sSMTP sendmail emulation); Thu, 29 Dec 2005 03:33:08 +1030
Message-Id: <20051228170309.BD69643D46@mx1.FreeBSD.org>
Date: Thu, 29 Dec 2005 03:33:08 +1030
From: Robert Archer <freebsd@deathbeforedecaf.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [maintainer update] security/ipfcount incorrectly checks Perl version
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91024
>Category:       ports
>Synopsis:       [maintainer update] security/ipfcount incorrectly checks Perl version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 28 17:10:03 GMT 2005
>Closed-Date:    Wed Dec 28 17:46:29 GMT 2005
>Last-Modified:  Wed Dec 28 17:46:29 GMT 2005
>Originator:     Robert Archer <freebsd@deathbeforedecaf.net>
>Release:        FreeBSD 4.11-RELEASE i386
>Organization:
>Environment:
System: FreeBSD gir.0x7e.net 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Wed Sep 14 12:55:17 CST 2005 rob@goo.0x7e.net:/tmp/GIR i386

>Description:
	In the port's Makefile, a check is made for Perl 5.6 or greater. Due to
	incorrect handling of PERL_LEVEL, this check will always succeed.

	As a result, users of 4.x will be able to install the port using the
	version of Perl in the base system, but will not be able to run it.

	Thanks to Jarrod Sayers <jarrod@netleader.com.au> for spotting this.

>How-To-Repeat:
	builder# make -V PERL_LEVEL
	500503
	builder# ipfcount
	Perl 5.006 required--this is only version 5.00503, stopped at /usr/local/bin/ipfcount line 13.
	BEGIN failed--compilation aborted at /usr/local/bin/ipfcount line 13.
	builder#

>Fix:
	Patch is at http://deathbeforedecaf.net/misc/patches/ipfcount.2005-12-29

	diff -ruN ipfcount.2005-12-29/Makefile ipfcount/Makefile
	--- ipfcount.2005-12-29/Makefile	Thu Dec 22 22:25:14 2005
	+++ ipfcount/Makefile	Thu Dec 29 01:57:54 2005
	@@ -7,6 +7,7 @@
	 
	 PORTNAME=	ipfcount
	 PORTVERSION=	0.1
	+PORTREVISION=	1
	 CATEGORIES=	security
	 MASTER_SITES=	http://deathbeforedecaf.net/misc/ports/ \
			http://users.netleader.com.au/~rob/
	@@ -27,7 +28,7 @@
	 
	 .include <bsd.port.pre.mk>
	 
	-.if ${PERL_LEVEL} < 5006
	+.if ${PERL_LEVEL} < 500600
	 IGNORE=		requires perl 5.6 or higher - see the lang/perl5.8 port
	 .endif
	 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: erwin 
State-Changed-When: Wed Dec 28 17:46:23 UTC 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91024 
>Unformatted:
