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>, <ibr@radix50.net>
Cc: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Subject: [PATCH v9 14/14] doc/user_manual.md: Document details about deb-src caching
Date: Thu, 26 Nov 2020 16:52:27 +0530	[thread overview]
Message-ID: <20201126112227.3395-1-Vijaikumar_Kanagarajan@mentor.com> (raw)
In-Reply-To: <20201126112108.3320-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 | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/doc/user_manual.md b/doc/user_manual.md
index dd6fc34..8827b29 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -919,3 +919,33 @@ And build the corresponding image target:
 ```
 bitbake mc:qemuarm64-buster:isar-image-base
 ```
+## Cache all upstream Debian source packages in local apt
+
+### Motivation
+
+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.
+
+### 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 that
+we download and install onto the target rootfs and buildchroot. This is then used to
+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.
+This caches the sources of all the Debian packages that are downloaded and installed onto
+the target rootfs and buildchroots.
+
+By default, the Debian source caching is not enabled.
+To enable it, add the below line to your local.conf file.
+```
+BASE_REPO_FEATURES = "cache-deb-src"
+```
-- 
2.17.1


  reply	other threads:[~2020-11-26 11:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26 11:18 [PATCH v9 00/14] Debsrc caching Vijai Kumar K
2020-11-26 11:18 ` [PATCH v9 01/14] rootfs: Make rootfs finalize a separate task Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 02/14] deb-dl-dir: Cache host distro debs separately Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 03/14] meta: cache deb srcs as part of postprocessing Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 04/14] deb-dl-dir: Make debsrc_download faster Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 05/14] deb-dl-dir: Download files only belonging to the current image Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 06/14] deb-dl-dir: Factor out the mounting part Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 07/14] deb-dl-dir: Fix skipping of removed files Vijai Kumar K
2020-11-26 11:19 ` [PATCH v9 08/14] repository: Add a sanity test to check missing sources Vijai Kumar K
2020-11-26 11:21   ` [PATCH v9 09/14] base-apt: Introduce BASE_REPO_FEATURES Vijai Kumar K
2020-11-26 11:21     ` [PATCH v9 10/14] repository: Fix failures due to missing section Vijai Kumar K
2020-11-26 11:21     ` [PATCH v9 11/14] scripts/ci_build.sh: Enable deb-src caching Vijai Kumar K
2020-11-26 11:21     ` [PATCH v9 12/14] rootfs: Fix possible overwrite of existing resolv.conf Vijai Kumar K
2020-11-26 11:21     ` [PATCH v9 13/14] rootfs: Handle failures when postprocess is rerun Vijai Kumar K
2020-11-26 11:22       ` Vijai Kumar K [this message]
2020-11-26 17:28         ` [PATCH v9 14/14] doc/user_manual.md: Document details about deb-src caching Anton Mikanovich
2020-11-26 17:56           ` vijaikumar....@gmail.com
2020-11-26 18:12             ` 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=20201126112227.3395-1-Vijaikumar_Kanagarajan@mentor.com \
    --to=vijaikumar_kanagarajan@mentor.com \
    --cc=ibr@radix50.net \
    --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