From b9c0af71801c875b1aff6cd0ac99e4aa96cca585 Mon Sep 17 00:00:00 2001 From: Gergely Csatari Date: Mon, 19 Jan 2026 16:55:48 +0200 Subject: [PATCH] Rules for golang related false positives Both gen_const_ppc64le.go and crc32_ppc64le.s has a reference to antonblanchard/crc32-vpmsum mentioning that antonblanchard/crc32-vpmsum is dual licenses under Apache License 2.0 and GPLv2. This creates a false GPL hit for Golang in ScanCode. Signed-off-by: Gergely Csatari --- src/licensedcode/data/rules/false-positive_830.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_831.RULE | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 src/licensedcode/data/rules/false-positive_830.RULE create mode 100644 src/licensedcode/data/rules/false-positive_831.RULE diff --git a/src/licensedcode/data/rules/false-positive_830.RULE b/src/licensedcode/data/rules/false-positive_830.RULE new file mode 100644 index 00000000000..be0d4098db8 --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_830.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: Seen in go-go1.24.11/src/hash/crc32/crc32_ppc64le.s. This is about the license of an other open source component (antonblanchard/crc32-vpmsum). +--- + + The vectorized implementation found below is a derived work from code written by Anton Blanchard found at https://github.com/antonblanchard/crc32-vpmsum. The original is dual licensed under GPL and Apache 2. \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_831.RULE b/src/licensedcode/data/rules/false-positive_831.RULE new file mode 100644 index 00000000000..4e4163c1408 --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_831.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: Seen in go-go1.24.11/src/hash/crc32/gen_const_ppc64le.go. This is about the license of an other open source component (antonblanchard/crc32-vpmsum). +--- + +The following is derived from code written by Anton Blanchard found at https://github.com/antonblanchard/crc32-vpmsum. The original is dual licensed under GPL and Apache 2.