public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
To: <isar-users@googlegroups.com>
Cc: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Subject: [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching
Date: Wed, 25 Nov 2020 13:36:53 +0530	[thread overview]
Message-ID: <20201125080653.16303-1-Vijaikumar_Kanagarajan@mentor.com> (raw)
In-Reply-To: <20201125080535.16223-5-Vijaikumar_Kanagarajan@mentor.com>

Add details about deb-src caching.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@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.
+
+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"
+```
-- 
2.17.1


  reply	other threads:[~2020-11-25  8:07 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       ` Vijai Kumar K [this message]
2020-11-25 11:35         ` [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching Jan Kiszka
2020-11-25 13:14           ` vijaikumar....@gmail.com

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=20201125080653.16303-1-Vijaikumar_Kanagarajan@mentor.com \
    --to=vijaikumar_kanagarajan@mentor.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