All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpatch.pl: Check for the FSF mailing address
@ 2013-10-05 18:43 Josh Triplett
  2013-10-05 18:51 ` Joe Perches
  0 siblings, 1 reply; 22+ messages in thread
From: Josh Triplett @ 2013-10-05 18:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andy Whitcroft, Joe Perches, Greg Kroah-Hartman

Kernel maintainers reject new instances of the GPL boilerplate paragraph
directing people to write to the FSF for a copy of the GPL, since the
FSF has moved in the past and may do so again.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---

Inspired by Greg's standard response to omit the paragraph "unless you
want to track the movements of the FSF's office for the next 40 years."

 scripts/checkpatch.pl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2ee9eb7..2d7cc45 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1859,6 +1859,16 @@ sub process {
 			$rpt_cleaners = 1;
 		}
 
+# Check for FSF mailing addresses.
+		if ($rawline =~ /You should have received a copy/ ||
+		    $rawline =~ /write to the Free Software/ ||
+		    $rawline =~ /59 Temple Place/ ||
+		    $rawline =~ /51 Franklin Street/) {
+			my $herevet = "$here\n" . cat_vet($rawline) . "\n";
+			ERROR("FSF_MAILING_ADDRESS",
+			      "Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.\n" . $herevet)
+		}
+
 # check for Kconfig help text having a real description
 # Only applies when adding the entry originally, after that we do not have
 # sufficient context to determine whether it is indeed long enough.
-- 
1.8.4.rc3


^ permalink raw reply related	[flat|nested] 22+ messages in thread
* [PATCH] checkpatch.pl: check for the FSF mailing address
@ 2014-09-11  9:49 Antony Pavlov
  2014-09-12  5:41 ` Sascha Hauer
  0 siblings, 1 reply; 22+ messages in thread
From: Antony Pavlov @ 2014-09-11  9:49 UTC (permalink / raw)
  To: barebox

This check code is imported from Linux v3.16 checkpatch.pl.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 scripts/checkpatch.pl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 153af8d..419436d 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1425,6 +1425,16 @@ sub process {
 			$rpt_cleaners = 1;
 		}
 
+# Check for FSF mailing addresses.
+		if ($rawline =~ /\bwrite to the Free/i ||
+		    $rawline =~ /\b59\s+Temple\s+Pl/i ||
+		    $rawline =~ /\b51\s+Franklin\s+St/i) {
+			my $herevet = "$here\n" . cat_vet($rawline) . "\n";
+			my $msg_type = \&ERROR;
+			$msg_type = \&CHK if ($file);
+			&{$msg_type}("Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. barebox already includes a copy of the GPL.\n" . $herevet)
+		}
+
 # check for Kconfig help text having a real description
 # Only applies when adding the entry originally, after that we do not have
 # sufficient context to determine whether it is indeed long enough.
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-09-12  5:41 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 18:43 [PATCH] checkpatch.pl: Check for the FSF mailing address Josh Triplett
2013-10-05 18:51 ` Joe Perches
2013-10-05 19:03   ` Josh Triplett
2013-10-06  6:27   ` Greg Kroah-Hartman
2013-10-06  7:01     ` Joe Perches
2013-10-06  7:05       ` Greg Kroah-Hartman
2013-10-06  8:10         ` Borislav Petkov
2013-10-06 13:44           ` Greg Kroah-Hartman
2013-10-06 13:55             ` Borislav Petkov
2013-10-06 19:18               ` Greg Kroah-Hartman
2013-10-06 20:07                 ` Borislav Petkov
2013-10-06 19:19       ` Rob Landley
2013-10-06 21:16       ` Josh Triplett
2013-10-06 21:18     ` Josh Triplett
2013-10-06 21:27       ` Joe Perches
2013-10-06 21:33         ` Josh Triplett
2013-10-06 21:48           ` Joe Perches
2013-10-06 22:23             ` [PATCHv2] " Josh Triplett
2013-10-06 23:05               ` Greg Kroah-Hartman
2013-10-06 23:16               ` Joe Perches
  -- strict thread matches above, loose matches on Subject: below --
2014-09-11  9:49 [PATCH] checkpatch.pl: check " Antony Pavlov
2014-09-12  5:41 ` Sascha Hauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.