From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 31 16:10:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D1C7106566C for ; Sun, 31 May 2009 16:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 77E958FC1D for ; Sun, 31 May 2009 16:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4VGA1JL004347 for ; Sun, 31 May 2009 16:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4VGA1LJ004345; Sun, 31 May 2009 16:10:01 GMT (envelope-from gnats) Resent-Date: Sun, 31 May 2009 16:10:01 GMT Resent-Message-Id: <200905311610.n4VGA1LJ004345@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vladimir Chukharev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6709106566B for ; Sun, 31 May 2009 16:09:10 +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 B4CA28FC15 for ; Sun, 31 May 2009 16:09:10 +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 n4VG98Qt025374 for ; Sun, 31 May 2009 16:09:08 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4VG97dC025372; Sun, 31 May 2009 16:09:08 GMT (envelope-from nobody) Message-Id: <200905311609.n4VG97dC025372@www.freebsd.org> Date: Sun, 31 May 2009 16:09:08 GMT From: Vladimir Chukharev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/135095: [patch] ports-mgmt/portlint should check for a.out filename X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 16:10:01 -0000 >Number: 135095 >Category: ports >Synopsis: [patch] ports-mgmt/portlint should check for a.out filename >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 31 16:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Vladimir Chukharev >Release: 7.2-STABLE >Organization: >Environment: FreeBSD chu.me.tut.fi 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat May 9 00:01:08 EEST 2009 root@chu.me.tut.fi:/usr/obj/usr/src/sys/CHU i386 >Description: This PR is a follow-up to ports/131790 and related to conf/129697. As reported in ports/131790, some files are deleted if periodic.conf has daily_clean_disks_enable="YES". The full list of pattens for removing is defined in /etc/defaults/periodic.conf as daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" ports/131790 was closed after a check for *.core was added. The attached patch add a check for files named "a.out". The lang/sbcl port installs two files with this name. I am not proficient in pattern matching and perl, so I do not even try to fix portlint for all the list of patterns. >How-To-Repeat: >Fix: Patch attached with submission follows: --- ports-mgmt/portlint/src/portlint.pl.orig 2009-05-31 18:20:09.000000000 +0300 +++ ports-mgmt/portlint/src/portlint.pl 2009-05-31 18:20:09.000000000 +0300 @@ -831,6 +831,13 @@ "If possible, install this file with a different name."); } + if ($_ =~ m|/a.out$| && $_ !~ /^\@/) { + &perror("WARN", $file, $., "this port installs a file named ". + "\"a.out\". This file may be deleted if ". + "daily_clean_disks_enable=\"YES\" in /etc/periodic.conf. ". + "If possible, install this file with a different name."); + } + if ($autoinfo && $_ =~ /\.info$/) { &perror("WARN", $file, $., "enumerating info files in the plist is deprecated in favor of adding info files into the Makefile using the INFO macro."); } >Release-Note: >Audit-Trail: >Unformatted: