From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6899501277566205952 X-Received: by 2002:a17:90b:3610:: with SMTP id ml16mr5095182pjb.119.1606415477525; Thu, 26 Nov 2020 10:31:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a63:f601:: with SMTP id m1ls1002484pgh.4.gmail; Thu, 26 Nov 2020 10:31:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRdbQjZdYp95o21PXwXTIlZX6zmtXX/34mO/8IYywL/6QhFrT7Isqb9uf5SYAJPSVW6Y4h X-Received: by 2002:aa7:9888:0:b029:18b:a9e2:dc7a with SMTP id r8-20020aa798880000b029018ba9e2dc7amr3586894pfl.67.1606415476778; Thu, 26 Nov 2020 10:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606415476; cv=none; d=google.com; s=arc-20160816; b=uAShWdcJFOJYtxUuhZ6XGK27CR+tvxvMObS3RffPMp/Wv3WHZwiUcrnkEz76wuqLdC yk4YwlQTbQfzRdoXMAK1Q7QO1xnyMzJa9rwsOJrP3Ljmtr3mv6eqH89SKm5DiILenoCo fv/8cJwfAt3emCNfheEO9qTdTd8phg6uT8whz2CEvvI8pdsIXGcK/AQWzSbNsTPJX0O0 4nUSwp+WeoBzlfW/3YFBr9p9CyHTksRSE8e4AjEGex+hI4zYxkDtpbKJD+owIfmkfOKr G0wrrWbdf3XWetEgZqXU5MBAWTS+DeK408goZ4mZW+UI9nmKInE1rEOgpTKNkRynU3dW 7CBw== 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=n86CWes63CscKi28nbFasxAn1G8SdKgNCwDn56jZAJ8=; b=Y2NfecCpv500Hc511k8SIrUcW9TuXb1FYMi/m9BtVC3dfnRgVc1jDSUHk/7vsDfyOS HNzQ/ALbbxI+c+4PKQi6snNafoXWolE1N1JdWvAWCLJ+PWcxKXYvD7HWF9+XZ70j6Ic+ +IHRvHU9vlmmKD9zNfBalOPo+x3z7UhUh4MCRJgtKssj4kQIYG9DI5FM4NgvdUNJr4QH 8jpjM2b79urAd8NP/S7o5YNJ1QexGuKFNqFjPLzXugw9/zu8G3OreFoHtJWz4pQO+/zn R6PPOQvuW3y7vDHERH6mQms3IEU6dwpEz8E1LMr49Lym8GUqCPBqbSbVmJynModlU2nh pnhg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com. [68.232.129.153]) by gmr-mx.google.com with ESMTPS id o2si477769pjq.0.2020.11.26.10.31.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 10:31:16 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) client-ip=68.232.129.153; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: 4zWRAI0EH9DawSACPSsllKRmvsMyDXTUTdUwKykd+j9mi+scGuJi7/QpAecYNhTnht3ltpa0BO 06KL6hkmWbX9U+xL6pz5XS27kMCwhXdqhl0LRwj4NPOU1zsulls/WxhHDrbJrKg6PFiEomW3j3 v5mIo+9+54SyNDbWvxWBmGaDCknpp3JqXuKk92sZGO2Lwq7LO6a0gUOZnyZoi7lwuVNZJSk11U a4PArjzWavU4L1raEfARMMI17LmdAETOICnA+kE9DP6r5JK5pm3hPgP/5VhmJLRHo1RctfY3Js DPM= X-IronPort-AV: E=Sophos;i="5.78,372,1599552000"; d="scan'208";a="57815823" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 26 Nov 2020 10:31:16 -0800 IronPort-SDR: kHpAMUSlLrt+Z6Zmz2DR9vCpiVz751VbfFIpXR64xNo011FVrtqFJaDnNzJ7O7wuqbH8by5k4x Y65Zq9Dp1EFhyVvM1Aak1pGdVyZZqestrl4cbjt1i3yscmoIb2DkfgollSX/10vIk8T6r9K62o rymag7QfPktbrXGH5VmR/l9pr+QpL12iBrrldYH0VxBmqyjnpRi7yBcq/FtOgobCkrmhJZnbNF +HcwaQ4hqzhS4iyYZwHKsSb7GqhS4dJefCM9XwVDWfh67uzBQE+th01kC+RTt3PhYmjmLEhPqO v9o= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v10 14/14] doc/user_manual.md: Document details about deb-src caching Date: Fri, 27 Nov 2020 00:00:54 +0530 Message-ID: <20201126183054.7593-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126182953.7518-5-Vijaikumar_Kanagarajan@mentor.com> References: <20201126182953.7518-5-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: SVR-ORW-MBX-06.mgc.mentorg.com (147.34.90.206) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: zS5qLcAim6Sj 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 dd6fc34..a4f3d1d 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 of deb files in ${DEBDIR} 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