From patchwork Mon Aug 20 11:16:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 959608 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XZEeA4h3"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41vB8c6PLgz9s3Z for ; Mon, 20 Aug 2018 21:16:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 828C285A4E; Mon, 20 Aug 2018 11:16:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8SvXKP5aloCp; Mon, 20 Aug 2018 11:16:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6248485472; Mon, 20 Aug 2018 11:16:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 03FE91CF2D1 for ; Mon, 20 Aug 2018 11:16:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0222286D78 for ; Mon, 20 Aug 2018 11:16:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5aSikwHY8x6M for ; Mon, 20 Aug 2018 11:16:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8CAEB86B44 for ; Mon, 20 Aug 2018 11:16:36 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id h8-v6so175460pgs.4 for ; Mon, 20 Aug 2018 04:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0daKDsGSz8bayw9aoICkIukbB/QoW8j23TXTgWkzdtY=; b=XZEeA4h39QdHEv0hFl/zYjgvuDh8iDzWORNKJq7wagVFqhIMYAulBNESxS0E8/2PmP ym1o+0HnDTotn5a9gW5WizndeNl2ClZmCM0aavb+NvPzV32uhVPtB5TxH8iDDrEVP2gR wOzZFStw248P23L0vHVTPqhzq8ByAkJjDG0XFzMxCHR6nK2O10WWxNN5e1f6elvmBrmA zbIqqGBQakhHF+vz+UkQAgKSjpuGWRwLal5YVLkVueIaAjgAmZLuHnRZ5AcJf/r8tJPw 3sSS1Vku87Mm9UqFelw7VlQ9QojAsOFgxiSkUnlE45IkCNm8N3BvTs+7+IFU22S662Bm u59g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0daKDsGSz8bayw9aoICkIukbB/QoW8j23TXTgWkzdtY=; b=Awujy8NHeRBbe0Jw9PYYioLo/LWSoCKOFp+a+GkXnjfs5aBAXKpY6udVuSHQo41Ja7 P3rYxGShK5WP1SEnZFe3Da/MwivENV4HuNdUqAh4D6+zuwqQ2UDeg1FEMfjwm09ohJ/i uaxidq368gGUbGH7DfOMmdq2X477bPG0wXG5uvV1eaR1N26gjTqV1IkbnxbfM0gS6pzq mK8aW6qPkhM97Fd0KCrdS0hfcOSs91kxN3B3v+TC/CMClM22/Xq5ZsTkI9pnSk4u0qSv N/VjKCV70eGS/ynW6zK8toC+5tMWWU9Vp16/w195aGbtHNZZcZuWYkHBZoJuGCJ1pPMj eIFQ== X-Gm-Message-State: AOUpUlE/IQzqr5BEzjGkxhkEjU2t+wQuRD+9BWxxkDMfLYT4HH1Oa5rQ ktC4/QoKD65W80Kfray0b6wN4J1i X-Google-Smtp-Source: AA+uWPzpQ040f4oaLxN4uRKX177kWO6Auckbjky/CpD5GXl5t73UrApovrCvA76OIJTxuSUVHzZXGA== X-Received: by 2002:a63:8f03:: with SMTP id n3-v6mr43280037pgd.166.1534763795879; Mon, 20 Aug 2018 04:16:35 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b06f:afd4:7dd8:b612:92b8:cc1f]) by smtp.gmail.com with ESMTPSA id n26-v6sm10551804pgv.78.2018.08.20.04.16.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Aug 2018 04:16:35 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Mon, 20 Aug 2018 04:16:23 -0700 Message-Id: <20180820111623.23173-4-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180820111623.23173-1-chrismcc@gmail.com> References: <20180820111623.23173-1-chrismcc@gmail.com> Subject: [Buildroot] [PATCH 3/3] scancpan: support more licenses X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Christopher McCrory Reviewed-by: Francois Perrad --- utils/scancpan | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/scancpan b/utils/scancpan index c83730fa13..5db4decc5e 100755 --- a/utils/scancpan +++ b/utils/scancpan @@ -702,9 +702,16 @@ while (my ($distname, $dist) = each %dist) { ? join q{ or }, @{$dist->{license}} : $dist->{license}; # BR requires license name as in http://spdx.org/licenses/ + $license =~ s|apache_1_1|Apache-1.1|; $license =~ s|apache_2_0|Apache-2.0|; + $license =~ s|artistic|Artistic-1.0|; $license =~ s|artistic_2|Artistic-2.0|; + $license =~ s|lgpl_2_1|LGPL-2.1|; + $license =~ s|lgpl_3_0|LGPL-3.0|; + $license =~ s|gpl_2|GPL-2.0|; + $license =~ s|gpl_3|GPL-3.0|; $license =~ s|mit|MIT|; + $license =~ s|mozilla_1_1|Mozilla-1.1|; $license =~ s|openssl|OpenSSL|; $license =~ s|perl_5|Artistic or GPL-1.0+|; my $license_files = join q{ }, keys %{$license_files{$distname}};