Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2005 11:14:53 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Sergey Skvortsov <skv@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/devel/portlint Makefile ports/devel/portlint/src portlint.pl
Message-ID:  <20050413111453.GA28458@FreeBSD.org>
In-Reply-To: <425CEBE6.3030306@FreeBSD.org>
References:  <200504130320.j3D3Kuw5004935@repoman.freebsd.org> <425CEBE6.3030306@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 13, 2005 at 01:52:38PM +0400, Sergey Skvortsov wrote:
> Joe Marcus Clarke wrote:
> >  Modified files:
> >    devel/portlint       Makefile 
> >    devel/portlint/src   portlint.pl 
> >  Log:
> >  Update to 2.7.1
> >  
> >  * Check to make sure only characters [-.a-zA-Z0-9_] appear in file names 
> >  [1]
> 
> As already discussed, this regex is too restrictive.
> 
> Just run this:
> find /usr/ports -name "patch-*"|grep -v --regexp='patch-[-.a-zA-Z0-9_]*$'
> 
> 1. Filenames can contain many special symbols (like '+', ','), for example:
> benchmarks/bonnie++/files/patch-bonnie++.cpp
> 
> You can't cover all possible filenames because they are controlled by 
> authors of software.
> 
> 2. Regex in portlint does not equal to original in "Porters Handbook" 
> ([.-_a-zA-Z0-9]). The latter still does not fixed.
> 
> 3. '::' delimiter for directories is legal and more aestetic than ugly '__'.
> 
> So, I offer more tolerant regex [-.a-zA-Z0-9_:+].

I fully second this.  BTW, `^' is useful too.

./danfe, running away before getting beaten by krion@.

> 
> This useless patch renaming can produce cvsup storm and there is no 
> advantages for end-users:
> 
> %find /usr/ports -name "patch-*"|grep -v 
> --regexp='patch-[-.a-zA-Z0-9_]*$'|wc -l
> 4119
> 
> Dixi.
> 
> -- 
> Sergey Skvortsov
> mailto: skv@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050413111453.GA28458>