From patchwork Fri Mar 11 17:49:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 596416 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 9BF3E140271 for ; Sat, 12 Mar 2016 04:51:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=OieEUc6r; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CF664924B4; Fri, 11 Mar 2016 17:51:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iIZESx6MEigt; Fri, 11 Mar 2016 17:51:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 43B38924E5; Fri, 11 Mar 2016 17:50:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3F4761C1E7D for ; Fri, 11 Mar 2016 17:50:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 370A6924DC for ; Fri, 11 Mar 2016 17:50:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aRTS6cac3qgI for ; Fri, 11 Mar 2016 17:50:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id D17989245E for ; Fri, 11 Mar 2016 17:49:49 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id n186so3755516wmn.0 for ; Fri, 11 Mar 2016 09:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=i63nVkj69O5g6ULaUIlizgye2Mem5qCgDjTjsojyZNY=; b=OieEUc6rlav0ObitYUyBxK32tV+H3TRZC4CqjyEP33qTxaE7aJvtfj1QqyLeD5lXJc TgdubPh/14QcLWw08jQzfGV4vVEN07QItpBGm75peYWrXougmgEM08HF+7nhBpik2gPQ N4BnnG3WomDUz1A8BUdcBkHK8D4lBIP1+wfGYgtkQ8xJsIH5mLFP3w+xWIUOCz/SJka5 uzKxP3CYbSIRdexbbrNJnWktKXbSa8xM+HwYf1myva3AODUiEW87mxm1fyr7Ql11qG3+ NyeinG1uiYYFdumPt5dgHivH9kX8cPBWCtSabj5TDoSBcI0myV9a6dNlc5Fo8g3uXLP0 Lm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=i63nVkj69O5g6ULaUIlizgye2Mem5qCgDjTjsojyZNY=; b=Fg6TjsJEWPBYVvkmcXImktMCmHOziVuSu6ZBkYRh02lthpVu1NJIAiPBrHCp61xdSO FbAsDdFQMG1Rbk6AZoT+mRE3+KJvV1PJrv8xLbiTJKfXEyhnh8P7883t66oxtXyWvYJO QhwoSGt3C0Lho219LaZ/d46V4VUdGvUtUbPZJv6B3SMq6SgxmFMvmLRLiMHMvGqmItok h2aM0MIH/GBCAY6uNCpjYJ896Q3/AVglFE9X0+XMCChrqAXDD4RpuTqV7Vu85xB9dFh9 fb7T2tblmjP3pb/SG1KBz07ron0wzKZ0AuOMHrOzrRfPVX33r2XsZ7n+4A58cRwgyu+/ PBAg== X-Gm-Message-State: AD7BkJJXWdxOC3o3DPn3clwvDNQjojF7Ju0TZBzs63Z67seRKDvSP3pI+8TpreV6EXYpTQ== X-Received: by 10.194.201.166 with SMTP id kb6mr11324367wjc.125.1457718588515; Fri, 11 Mar 2016 09:49:48 -0800 (PST) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id ka7sm9522542wjb.8.2016.03.11.09.49.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Mar 2016 09:49:47 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Fri, 11 Mar 2016 18:49:25 +0100 Message-Id: <0e4f63ef1f47edce58214cd21d9e5f177731979f.1457718289.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: Luca Ceresoli , Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 12/16 v5] core/legal-info: also save extra downloads X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some packages, like perl, download extra files that end up as part of the source that Buildroot builds. Up until now, those files were not saved in the legal-info output. Add those files to the legal-info output. The unfortunate side-effect is that we will also save the secondary archive for the external blackfin toolchains; however, we already do save the binary release of some external toolchains when they do not provide actual source archives. This is inherently bad, as those are not source archives, but solving this is a bigger concern, for another series... Signed-off-by: "Yann E. MORIN" Cc: Luca Ceresoli Cc: Thomas Petazzoni Reviewed-by: Luca Ceresoli Tested-by: Luca Ceresoli --- Changes v2 -> v3: - typo (Luca) - incorporate the post-commit log message (the part about the side-effect) into the commit log itself, it makes sense to not forget about that --- package/pkg-generic.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index ed139fb..bc39ead 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -822,10 +822,12 @@ else # Other packages ifeq ($$($(2)_REDISTRIBUTE),YES) -# Save the source tarball - $$(Q)$$(call hardlink-copy,\ - $$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL),\ - $$($(2)_REDIST_SOURCES_DIR)) +# Save the source tarball and any extra downloads, but not +# patches, as they are handled specially afterwards. + $$(foreach e,$$($(2)_ACTUAL_SOURCE_TARBALL) $$(notdir $$($(2)_EXTRA_DOWNLOADS)),\ + $$(Q)$$(call hardlink-copy,\ + $$(DL_DIR)/$$(e),\ + $$($(2)_REDIST_SOURCES_DIR))$$(sep)) # Save patches and generate the series file # Because patches may come from various places (bundled in Buildroot, # from one or more global-patch-dir), there might be collisions on the