From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6899390751905415168 X-Received: by 2002:a2e:86c1:: with SMTP id n1mr1048915ljj.351.1606389775624; Thu, 26 Nov 2020 03:22:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:ccc2:: with SMTP id c185ls1028729lfg.3.gmail; Thu, 26 Nov 2020 03:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGExUQJ7Pq3MGILVI4qa++G2FcIV3oToKt3lNG5igEzoc+vRKSsZchzgCXe3tIwlgd22oq X-Received: by 2002:a19:c815:: with SMTP id y21mr1079872lff.589.1606389774402; Thu, 26 Nov 2020 03:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606389774; cv=none; d=google.com; s=arc-20160816; b=WBOGGVxUaiwHWprsd6YscKOhdDbff0qQdiwEgIKMfY2gRRENzevGNVypZ3R5gzhFQm +pAoCmHZNLSrXGYmIEge05VxNH5O/ue6+6xxdRenE/dXg+nezHXVYqAXBgDjXJpB3R8B htVPES8Lilsf4nIafpiGQuTpqxPqW+XhQD5jg9Q+uImnUgjeybFgx76zzXlE9eEP53l+ WmDD130zJDpc4QqlAl9zGY5nnLF/ZuG2Wah8y9TvPm4BA463nABwqPhlXtfp2JdYi8oB RcDD3gCR42dWW1qygSr5QI4r33EOjCQs1F390Dh1SMjwb323m+MPieu1rfStWxJ6AtnF d7sQ== 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=lfarbXaVgFViW6PH8jVECCsBxs0yaqU9vngv2YHNKTY=; b=I+zwJsMus3pVxRcOWZt5/heftGdm6fYZjk+prlW6MdMb9XKPpbb+t4Y0yOfGa4KW9h YiyTx0MWdq2zSoC0O8MpqGDtEJrkQI2t+ysj02ZMdSHpFRV9IAxXeHCtBhvjfWTb4NW1 kk313eYJDGGl2aNmCtctyaOaU2lt7Qd3tLPi5Ns52V1aqlBqt/3RpvQKA8r61hd/pwnO 5iXWXtTuMRbDVhTv/ram6CEgPkAUZcRHGNF3IyA/AX5nN7OD0Vpd81pEoP23TRVpow5/ 1SaszwtSbeYgazcY8l1tobnwB+J+JaRT2l0S9cTb5Yj14fbG9GTb1TsjJaMb8G8OmPqn w2Jw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id h4si160165ljl.6.2020.11.26.03.22.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 03:22:54 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: 7z5tDN3UWDgXlTj3VIQ0YrFIdJroNlPgp+fST2rID1cwkfdmb+VoEzZJ0MJC5IBpR03G8s0S0Y V6dkdrwq3mToDcTgFV6EiVshEnNv5sF6bRx6THCyIUvG9aWztFi8qbIhKTKzL3b4Uek6kmd4R4 VOvi+IUd1+IGe1ktAw7GI4XEIL9Qa4VtJRZ1AwX2149OxaMc4CPCmo/HFbccFAMo7JjoFgmhIG XJRqFsdsLamNaJhWECzSmuxh77f3ofTAAnRobU0xyIqCsPHuNSnRAhh1SxkuZQ7bGjgEcVCc89 wkE= X-IronPort-AV: E=Sophos;i="5.78,371,1599552000"; d="scan'208";a="55500583" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 26 Nov 2020 03:22:52 -0800 IronPort-SDR: /XM2ZGJK0tJlnSPVW0JC4iompyvAfmAV1MmNCZE+lRzaB+wcAYZkvWBSi4pz9FxyqqHZ9qbrdc eERyFg0Jw6mLbDjLrO6eA6NDK3D1Tk5Bjix72lKrI4Vc9GQ/OkE0fMAgKXCLaIKlh5L906KMBE GiWqRaX3NayTEMhqisWw9Qz3C/6HVAacPknE+LkrtH/IVlNrgUm9uk/D07DQLzcGmJ8bkN7bFC pHZ3aliFx+LZ+oU63cDDSeyU78SpvsDSj2fM26fwCRD2GyOkvC6hw5G2WdZomn0Rlni1zDOwwd 4lQ= From: Vijai Kumar K To: , CC: Vijai Kumar K Subject: [PATCH v9 14/14] doc/user_manual.md: Document details about deb-src caching Date: Thu, 26 Nov 2020 16:52:27 +0530 Message-ID: <20201126112227.3395-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126112108.3320-5-Vijaikumar_Kanagarajan@mentor.com> References: <20201126112108.3320-5-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: 4X9/eS4Bk4NV 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..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