From nobody@FreeBSD.org  Tue Feb 17 21:14:42 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 41CE91065675
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:14:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 300038FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:14:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1HLEfNg018328
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:14:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1HLEfkI018327;
	Tue, 17 Feb 2009 21:14:41 GMT
	(envelope-from nobody)
Message-Id: <200902172114.n1HLEfkI018327@www.freebsd.org>
Date: Tue, 17 Feb 2009 21:14:41 GMT
From: Vladimir Chukharev <chukharev@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports-mgmt/portlint should check filenames (feature request)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131790
>Category:       ports
>Synopsis:       ports-mgmt/portlint should check filenames (feature request)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marcus
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 21:20:01 UTC 2009
>Closed-Date:    Sun Mar 22 17:56:21 UTC 2009
>Last-Modified:  Tue Mar 24 15:50:01 UTC 2009
>Originator:     Vladimir Chukharev
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD chu.me.tut.fi 7.1-STABLE FreeBSD 7.1-STABLE #4: Fri Feb  6 10:23:10 EET 2009     root@chu.me.tut.fi:/usr/obj/usr/src/sys/CHU  i386
>Description:
FreeBSD uses some filenames in a special way, *.core is the most important
example. At least 2 ports currently install files of this form, lang/sbcl and
math/maxima (/usr/local/lib/sbcl/sbcl.core and /usr/local/lib/maxima/5.17.1/binary-sbcl/maxima.core).

This kind of files are deleted by a periodic job periodic/daily/100.clean-disks
(among others), provided /etc/periodic.conf defines a variable
daily_clean_disks_enable="YES" 

See PR conf/129697 for a workaround.

I think that the solution is to avoid installing the files with names 
corresponding to those used by 100.clean-disks
(definition is in /etc/defaults/periodic.conf variable daily_clean_disks_files).

And I beleave that portlint is the right place to check that a port is not 
installing a file with a wrong name. So I request to add a corresponding
test to portlint.

Perhaps, portsmon and/or pointyhat can also check this, if portlint cannot
check ports with dynamic package list, as I understand it...

Best regards,
Vladimir
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->marcus 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 17 23:14:41 UTC 2009 
Responsible-Changed-Why:  
Make this a ports PR and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131790 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sun Mar 22 17:56:05 UTC 2009 
State-Changed-Why:  
New feature has been added to 2.11.0. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131790 

From: "Vladimir Chukharev" <Vladimir.Chukharev@tut.fi>
To: bug-followup@freebsd.org, chukharev@mail.ru
Cc:  
Subject: Re: ports/131790: ports-mgmt/portlint should check filenames (feature
 request)
Date: Tue, 24 Mar 2009 17:27:15 +0200

 Could you extend the check to all files which are deleted by periodic, please?
 Particularly to a.out files, really installed by lang/sbcl, though all models
 in daily_clean_disks_files variable of /etc/defaults/periodic.conf would be
 nice to check.
 
 
 Not actually connected to the PR, but is the following an expected behaviour?
 
 $ cd /usr/ports/math/maxima/ ; portlint
 Argument "CMUCL is listed in OPTIONS, but neither WITH_CMUCL nor W..." isn't numeric in numeric gt (>) at /usr/local/bin/portlint line 2887.
 Use of uninitialized value in concatenation (.) or string at /usr/local/bin/portlint line 2888.
 WARN: Makefile: [CMUCL is listed in OPTIONS, but neither WITH_CMUCL nor WITHOUT_CMUCL appears.]: 
 Argument "GCL is listed in OPTIONS, but neither WITH_GCL nor WITHO..." isn't numeric in numeric gt (>) at /usr/local/bin/portlint line 2887.
 Use of uninitialized value in concatenation (.) or string at /usr/local/bin/portlint line 2888.
 WARN: Makefile: [GCL is listed in OPTIONS, but neither WITH_GCL nor WITHOUT_GCL appears.]: 
 Argument "SBCL is listed in OPTIONS, but neither WITH_SBCL nor WIT..." isn't numeric in numeric gt (>) at /usr/local/bin/portlint line 2887.
 Use of uninitialized value in concatenation (.) or string at /usr/local/bin/portlint line 2888.
 WARN: Makefile: [SBCL is listed in OPTIONS, but neither WITH_SBCL nor WITHOUT_SBCL appears.]: 
 WARN: Makefile: wrong dependency value for BUILD_DEPENDS. BUILD_DEPENDS requires 2 or 3 colon-separated tuples.
 WARN: Makefile: wrong dependency value for RUN_DEPENDS. RUN_DEPENDS requires 2 or 3 colon-separated tuples.
 0 fatal errors and 5 warnings found.
 
 $ portlint -V
 portlint version 2.11.0
 
 Best regards,
 -- 
 Vladimir Chukharev
 Tampere University of Technology
>Unformatted:
