ports/173649: Update ports-mgmt/portlint to warn about .DS_Store meta data files

Emanuel Haupt ehaupt at FreeBSD.org
Thu Nov 15 12:10:00 UTC 2012


>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:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 12:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-ports-bugs mailing list