From ehaupt@FreeBSD.org  Thu Nov 15 12:06:27 2012
Return-Path: <ehaupt@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id C1C2229E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Nov 2012 12:06:27 +0000 (UTC)
	(envelope-from ehaupt@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87])
	by mx1.freebsd.org (Postfix) with ESMTP id A41C38FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Nov 2012 12:06:27 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAFC6RFn095442
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Nov 2012 12:06:27 GMT
	(envelope-from ehaupt@freefall.freebsd.org)
Received: (from ehaupt@localhost)
	by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAFC6Rg8095441;
	Thu, 15 Nov 2012 13:06:27 +0100 (CET)
	(envelope-from ehaupt)
Message-Id: <201211151206.qAFC6Rg8095441@freefall.freebsd.org>
Date: Thu, 15 Nov 2012 13:06:27 +0100 (CET)
From: Emanuel Haupt <ehaupt@FreeBSD.org>
Reply-To: Emanuel Haupt <ehaupt@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update ports-mgmt/portlint to warn about .DS_Store meta data files
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         173649
>Category:       ports
>Synopsis:       Update ports-mgmt/portlint to warn about .DS_Store meta data files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marcus
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 12:10:00 UTC 2012
>Closed-Date:    Thu Dec 27 23:29:52 UTC 2012
>Last-Modified:  Thu Dec 27 23:29:52 UTC 2012
>Originator:     Emanuel Haupt
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r242881M: Sun Nov 11 05:30:05 UTC 2012 root@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64


	
>Description:
grep -r "\.DS_Store" /usr/ports shows that way to many ports carelessly install
.DS_Store meta data files. Provide a patch to warn about such files.
>How-To-Repeat:
	
>Fix:

	

--- portlint.patch begins here ---
Index: src/portlint.pl
===================================================================
--- src/portlint.pl	(revision 307449)
+++ src/portlint.pl	(working copy)
@@ -746,6 +746,10 @@
 		$_ =~ s/\s+$//;
 		$_ =~ s/\n$//;
 
+		if ($_ =~ /\.DS_Store/) {
+			&perror("WARN", $file, $., ".DS_Store meta data files must not be installed.");
+		}
+
 		if ($osname eq 'NetBSD' && $_ =~ /<\$ARCH>/) {
 			&perror("WARN", $file, $., "use of <\$ARCH> deprecated, ".
 				"use \${MACHINE_ARCH} instead.");
--- portlint.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->marcus 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Nov 15 12:10:08 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173649 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Thu Dec 27 23:29:42 UTC 2012 
State-Changed-Why:  
Committed, thanks! 

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