public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "vijaikumar....@gmail.com" <vijaikumar.kanagarajan@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching
Date: Wed, 25 Nov 2020 05:14:58 -0800 (PST)	[thread overview]
Message-ID: <0251dcf4-3acd-45f6-b4ef-de736741e4f2n@googlegroups.com> (raw)
In-Reply-To: <83017340-e9dc-d431-7969-2d6645dc44e5@siemens.com>


[-- Attachment #1.1: Type: text/plain, Size: 2491 bytes --]



On Wednesday, November 25, 2020 at 5:05:45 PM UTC+5:30 Jan Kiszka wrote:

> On 25.11.20 09:06, Vijai Kumar K wrote: 
> > Add details about deb-src caching. 
> > 
> > Signed-off-by: Vijai Kumar K <Vijaikumar_...@mentor.com> 
> > --- 
> > 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. 
>

Will include this line.
 

>
> > + 
> > +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. 
>

Yes. Exactly. I will update the document.

Thanks,
Vijai Kumar K
 

>
> Jan 
>
> -- 
> Siemens AG, T RDA IOT 
> Corporate Competence Center Embedded Linux 
>

[-- Attachment #1.2: Type: text/html, Size: 3317 bytes --]

      reply	other threads:[~2020-11-25 13:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  8:02 [PATCH v7 00/14] Deb-src caching Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 01/14] rootfs: Make rootfs finalize a separate task Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 02/14] deb-dl-dir: Cache host distro debs separately Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 03/14] meta: cache deb srcs as part of postprocessing Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 04/14] deb-dl-dir: Make debsrc_download faster Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 05/14] deb-dl-dir: Download files only belonging to the current image Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 06/14] deb-dl-dir: Factor out the mounting part Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 07/14] deb-dl-dir: Fix skipping of removed files Vijai Kumar K
2020-11-25  8:02 ` [PATCH v7 08/14] repository: Add a sanity test to check missing sources Vijai Kumar K
2020-11-25  8:05   ` [PATCH v7 09/14] base-apt: Introduce BASE_REPO_FEATURES Vijai Kumar K
2020-11-25  8:05     ` [PATCH v7 10/14] repository: Fix failures due to missing section Vijai Kumar K
2020-11-25  8:05     ` [PATCH v7 11/14] scripts/ci_build.sh: Enable deb-src caching Vijai Kumar K
2020-11-25  8:05     ` [PATCH v7 12/14] rootfs: Fix possible overwrite of existing resolv.conf Vijai Kumar K
2020-11-25  8:05     ` [PATCH v7 13/14] rootfs: Handle failures when postprocess is rerun Vijai Kumar K
2020-11-25  8:06       ` [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching Vijai Kumar K
2020-11-25 11:35         ` Jan Kiszka
2020-11-25 13:14           ` vijaikumar....@gmail.com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0251dcf4-3acd-45f6-b4ef-de736741e4f2n@googlegroups.com \
    --to=vijaikumar.kanagarajan@gmail.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox