From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6878157486786871296 X-Received: by 2002:adf:e60e:: with SMTP id p14mr4220023wrm.188.1606311994991; Wed, 25 Nov 2020 05:46:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:c689:: with SMTP id j9ls2859062wrg.0.gmail; Wed, 25 Nov 2020 05:46:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJydJKv7ZoshkJ7usNsGShuPksiisdtbv3S93Ie9LJifcQVcZjxrH5fkNSDfnCuoM8ewQSHw X-Received: by 2002:adf:f7c7:: with SMTP id a7mr4224422wrq.347.1606311994203; Wed, 25 Nov 2020 05:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606311994; cv=none; d=google.com; s=arc-20160816; b=yt5kAEXluXOb1PSyRi27WbhGbX+i8EnGmNTtEggjG861c0YxvKffeZN4+yVuIslgtp DeeotFAmFYM3FaI7vCKlB7widB80WIbK6nvMXXJi83cgUGsFd930H9o4tnpaeLcsE4Wz cusIZaXHA7Vb6DPaSKOb37A0ADtBD/UwS2El2yG/f7dMWCHh4qoQYynDqqYK//MgS+mE ti4Yuugex2Z19D7K8YIRGzNFxc/st58iDijsIrX64IgR5sxZ9b3RXzHIithQAtCFSX93 F96VzQXui8hZw0n5qYmHgrloT1Xvpx5UQeeEldXPHOCt43+YYlnDuB6x4UGGdmIPiQtu SJTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=ScOXwfGUHUIcum4pd9ZKltNGlrCtTZYOy0dWn1UehKg=; b=pL7uZIXew8lXC4YIR8MVwWLZHBurXV4yWbyqmZIVoGqP9hfr+nfoXnP9hG29SLQtyl VlVQCxqA/6StQPkzKzV45VXDu+UbKwB6kAQkt+80TILeNqXVPROuWO6LNbOHBt6+ZBoC XgS9Arb3fay2eZ8qUCGvEOB/PyDrvaDuvw6XqZ6Esy7sIeeAMnWPF6d1ICp3jC+vMvxf BZ3/T5gzY7ED9AE4ncCAazBdxenfsDFdui0Sxm4Ur+UHblAbNCy620wSuOsge3m5jh6q Hyi6wcLj5rJP2g8ZUz7xZ6IpBdN30s0EcgdiHLNWjfg07iV4nARpE1AHfIGH29skIF+Y Rlig== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id m5si64609wmc.0.2020.11.25.05.46.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 05:46:34 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: ZPdHYlNRxP3k8T27weZMeN9T+yYQBszmcUblPbk8YEv1nIvIhASJijJ5xljPmtM+50J7mC9m1t XJHC6+veJC6YuZnbhLhjPHNDOfe7eOuOynK5mD255YWGnZvhNdjchhwAhLdsloRcZ3dQG84wRV 03T91qZyb+l0h0ryS0U8jTC7aznNh/3St6dNgAhih9iwMtQjvSmiG7O/mBueYJfL+YCQyCWjRC RBxSikReemjUGipR8xXrwr7FsPrW+moFyHjm7eh/rsf7OkKZ/bTUhlgSt8eEZYH4h9TiLxrkP2 BqU= X-IronPort-AV: E=Sophos;i="5.78,368,1599552000"; d="scan'208";a="55597814" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 25 Nov 2020 05:46:33 -0800 IronPort-SDR: qlTapQoHOPz0YLK1/FnrfT89zc6aklkAFG7/j4NtxDH28AVZIB5qILJeOcfFp2BNCTXbT/dprB lfCCgkmUsRYJApyRVJS8A+04JNzjMvy9JukZgH7ZypiIqfxsqT7zDYTH3d1o4GKL06eQXkdL9W qABtEYwfgRBk3vmJfwtIW+QHqhfsb1DL2NxKwfAxb2YePFIS1NHMqEqiGRRwh9leAx2uis5RGq wugCgCvo5kvAEjgivFVHy8o0AXxTZF/bL5qNAvB4PXJsYesl7cOUSmzdqffMnY/16cbkXwLtYT I5Q= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v8 14/14] doc/user_manual.md: Document details about deb-src caching Date: Wed, 25 Nov 2020 19:15:58 +0530 Message-ID: <20201125134558.26246-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125134558.26246-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201125134414.26061-5-Vijaikumar_Kanagarajan@mentor.com> <20201125134558.26246-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: bCFlGC5yM3hR Add details about deb-src caching. Signed-off-by: Vijai Kumar K --- doc/user_manual.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/user_manual.md b/doc/user_manual.md index 8d04cd2..cc7e47f 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -918,3 +918,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