From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6878157486786871296 X-Received: by 2002:a2e:9707:: with SMTP id r7mr1155751lji.265.1606304145169; Wed, 25 Nov 2020 03:35:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:5a02:: with SMTP id q2ls578811lfn.1.gmail; Wed, 25 Nov 2020 03:35:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1Tvq/hSH//DzEHJGNPJjO1rs6cya1FDcgoeK8uMy3pjWzmtNBElBbRQEyMvD50oB3gDL2 X-Received: by 2002:ac2:562a:: with SMTP id b10mr1150948lff.227.1606304144001; Wed, 25 Nov 2020 03:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606304143; cv=none; d=google.com; s=arc-20160816; b=tXSxzyqXU7jg9Uh74sxCJgZT/dzRiX7S31hGQ4KkDOSvIGTFz8QOevoP95xLqMw3Kw TnJ5AG9YuHHZMkfyhoGNIzkbDmEEjN5p+/zPrOjZ+51YkgeCL2Spg3J9UruVTPUpzSWk OZ8gurMhKZNOt4jlrcBqB0IYEfGjFTRuPDL1eIc/inzQxty6vpfnYcdAEaqSNkNhDZ+j Zmz0bvMG5y6ceZ7kJSMoyIrPrJu8wvlmr/cRfROUIGkU+Yj09MX55wI1PKVcDmcdUW3r oezn/EuhNRdElPW19yOiFBidLpMOsNx5Vn6tXLMJT+QPxfClmirlxlsd+1rzv4+5ba+1 Gc7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=IAUCYtIpJdQLAHm3VYiJa+7zQLWZ/9H/Vp9KmJAMYLw=; b=RU/EwNKorDBRInslqujJuRjv13q4x9/xnKF8KNPXHUdL1SvNLVPBpNysgIOYou1md5 cHSSGWmdAXeGosf2HSXXL/U6Hvd00iz6KwFGh5f/QNh3xnQtaXCGNHX/vbWtYeHyRFGE 9nSdgJPV4bRHbRetBRwjxMKH/bYAYq1CqY1IJLYTAGrn4cZf9yICziWXkERt4qOfx+p4 ydGAlyrbbEj3gbtAF+gc2u+yVOXKb243QJgLAVwPzCfgG7qtHnL7cGUdG1EFpOZWt+I6 jSk2ByDTwVNOc5ZVe2kPfAGKvsKhylqUSWeTw8o8XUK2LoMV4IbMAWdWTwIYlclEWv9Y CH7Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id t18si98107lfr.1.2020.11.25.03.35.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 03:35:43 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 0APBZgUF005921 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Nov 2020 12:35:43 +0100 Received: from [167.87.38.29] ([167.87.38.29]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 0APBZgU5026874; Wed, 25 Nov 2020 12:35:42 +0100 Subject: Re: [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching To: Vijai Kumar K , isar-users@googlegroups.com References: <20201125080535.16223-5-Vijaikumar_Kanagarajan@mentor.com> <20201125080653.16303-1-Vijaikumar_Kanagarajan@mentor.com> From: Jan Kiszka Message-ID: <83017340-e9dc-d431-7969-2d6645dc44e5@siemens.com> Date: Wed, 25 Nov 2020 12:35:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201125080653.16303-1-Vijaikumar_Kanagarajan@mentor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: VfkadQYTisIZ On 25.11.20 09:06, Vijai Kumar K wrote: > Add details about deb-src caching. > > Signed-off-by: Vijai Kumar K > --- > doc/user_manual.md | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/doc/user_manual.md b/doc/user_manual.md > index 8d04cd2..c0f842a 100644 > --- a/doc/user_manual.md > +++ b/doc/user_manual.md > @@ -918,3 +918,28 @@ And build the corresponding image target: > ``` > bitbake mc:qemuarm64-buster:isar-image-base > ``` > +## Cache all upstream Debian source packages in local apt > + > +### Motivation > + > +For OSS license clearance, we might need to have the sources of all Debian packages we > +ship with the particular image. OSS license *compliance*: Some licenses require to provide the corresponding sources code, other require copyright attributions that may be best provided via the source code. In addition, you may want to archive the code locally in order to ensure reproducibility (and modifiability) in the future. > + > +Currently the local-apt generated has only Debian binary packages. Extend the local-apt > +to have Debian source packages as well, for OSS clearing purposes. > + > +### Solution > + > + - Trigger download of Debian source packages as part of rootfs postprocess. > + > +With the current base-apt implementation, we already cache all the binary packages and > +generate a local-apt for offline build. > + > +Use rootfs postprocessing to parse through the the list fo deb files in ${DEDDIR} and > +download the corresponding Debian source file using "apt-get source" command. > + > +By default, the Debian source caching is not enabled. If you want to cache the Debian > +sources as well, as part of your image build, add the below line to your local.conf file. > +``` > +BASE_REPO_FEATURES = "cache-deb-src" > +``` > So this will fetch and and store ALL sources corresponding to the binary packages that the target image installs? Or rather that any rootfs installs, thus also buildchroots and sdkrootfs? Please make this clearer. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux