From patchwork Wed Nov 25 03:45:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 220 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:df02:0:0:0:0:0 with SMTP id i2csp373741oou; Wed, 25 Nov 2020 05:46:35 -0800 (PST) X-Received: by 2002:adf:fb90:: with SMTP id a16mr4210041wrr.192.1606311995198; Wed, 25 Nov 2020 05:46:35 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1606311995; cv=pass; d=google.com; s=arc-20160816; b=LO9dVCmnA5eN5K6TzwHMo9bypv46hlTwZiyIkCLnt86HDt6UOOB8O312lwqxH8KGV5 UFkc6Wg8Vo9WV9ntLp38vexTpwiXMcdr42HBwvE/e7/kwQtDvFMh4QPaWZdpaZAvt/mD DswmX/6jAKPKBo1D2wH7gKOA0CHxqS3eDNX0SIw3WRCyHsF/BlKr3EOiOgvkGqYXbFSQ v9eAmICTFlGIhCR1j52Etxgb7VmJmOtcziqSdMV7FgTTiCXzjH1X1gea5vbk79WI/We2 KjimgnJbtPQqIWt/RUVCj/VQQoZCBhOP5V9gJRTBsjqeHIY8XGwqgbZ61BJHm6cHrSOl Z8Hw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=/m8Er6t4fBHQoKT1oEPK7EfC0G/3YxATZfkMoNnimzM=; b=HeEwjlXtwUhMRZJnmuKdA1DSab6UGRvgLTgnAmUkqPMKPyvb8e4e1Hukquv05YfK8n BRHsJDc6p9r2TX/XKMrFi/w5SI2awDRL55lPyAivExpGHKMoaWanaAw8DFYP5Z+v0NfQ n2Xeef62VHoazqJBHslnJyZFcbYYMFZpCvrRafd7Hdxm3RvBKH4cyXcyHPcAelcYI9vN aqJqNsex9/auwNoW/X+ZWtbpZ4+w//EjFCnNo3S9WfdSAJXINpi+hxeYs1KBF1XUIKSi a0vbmaIJWxg+pEriLh7f8DltssKJ7vsb4MPJvXFkfbHnQzxRxbpUU17uykO+DIPAOp/x 2hbg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=WXbHI+1B; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbowa7h6qkgqejoewazy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBOWA7H6QKGQEJOEWAZY@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id v187sor1260586wmb.17.2020.11.25.05.46.35 (Google Transport Security); Wed, 25 Nov 2020 05:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbowa7h6qkgqejoewazy@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=WXbHI+1B; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbowa7h6qkgqejoewazy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBOWA7H6QKGQEJOEWAZY@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1606311995; cv=pass; d=google.com; s=arc-20160816; b=DYGs3ScjakoXZFikL8L3N1Ny4I27fCeOsDVhd2juqgB4A58Wo2xKqG9/xS9AW6Zyfv MmwOW5SYmXZ5bm2k+nHteQIfztvgVZqL118myAJBbd+ybKNLCZeK5GdZPKk8vkgbsd0t hZVy5Sjv9ZGnVxdPHWkxxD4fvlLq9jxYDTvYALMXZYkU7BHrweOqvbTHrhmRnynsSjIo fMeU+6kfUbqvhfns2OW7d5haGcgfA29EbyOT/Rm05L2+3kTsXfPU+FIRlUdV5zyTVr4C VvcjEwt/8/FtsOHKj0t8vLQMxHS+ac7rfJcZ/+Cm0gXyAR5QlKQKQNIUb1Ljza5DJVwC OMDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=/m8Er6t4fBHQoKT1oEPK7EfC0G/3YxATZfkMoNnimzM=; b=qqM44ECCVRb+KvvkK9aR3EqNx6imXcEAd+T63Pt7q4Ih2cZYLTHKAPJzrMN2qODiaU RUJ49wGNCkCaM12qXqenv65beBtcVULlWZB/oOmVH/Ni6/QzzPGOydoVlvIPEfvEZTNd 7vzyaCGP/KQw3meW3fvn7zbL9ckWcmVBXju2UedloU/sDjKEto24yhziKa/iwp0FYRQM 5FupHe6b73kVBV2g7T6ClqdEVzvXj56I6qojrXGGGTe+gMfAGgxGn/hhLE7EqlD4FhRd IEqKwpWgh3fHyhouGiycnGTiHyaFu+2QMSd3cl2nZN4vAngYuQOvr77POvRKqTMYsbs7 DGFQ== ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/m8Er6t4fBHQoKT1oEPK7EfC0G/3YxATZfkMoNnimzM=; b=WXbHI+1BGPrejF790E/8aob0kheGZiDc/B8krOQbzt/I29OjnyxOtUXsHA+EqAH4gY cvMjOctyaYTcx8EIIckYwxnJM9D+CoM+tFfd64BSYMQL9UqN06BG5MzbrONMPn5SJK4z oLxFvsC2L0qFzwmpO/THro9a8CLGxHEer8dURClpa6wJV4mOR4YcJDYcvKJpCfGLpMF+ 30tE7fGYiOosMSr+6v+kKUiwAla96KORM7o7YBI1TAkpNNz8ZhBrdR3cP+znu4NqEwgs L8dapTXMjEeoFtDaRz2INul/P4DD36wcdpCt55Lyl8LS32Zd6KAFWLuH7IOnhs8hOWuI OHwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/m8Er6t4fBHQoKT1oEPK7EfC0G/3YxATZfkMoNnimzM=; b=K6G7hBLLrY+sAbYxbx5XjJXZ8qYJGIqwkgSOHBtPvlpmedxPnmGM755A+19rGC338T 5bB1tKb4q7uwg94a6e4Cxa7iU6ovMtaRcSsAKtmn/wCdIDO5dUYJTD9kHBLzJ7Fxq3vF mhCksLeBiE2d/v2DxOL/3GIsDqnV5Plu0zHbuOb6gZnaqTTANxcoho85NXDpBPSWZer7 AT2sZC6lEow1k6+u1wLIqAWs8quxPc7VXJQro9s+M6IF2ZwpyeWh/aHuIU8x0zxr2rCB 9a/Cz/mUGoT8gMd3Du11cB0B66oQqqiQHgWBuVsaky0aZwilLP6eVHXx4SWMmrqeFULq hK/w== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530OHh2q7BCCov4tHFrE/KaxBn69TZ5VltYVYtSQH76FvKGiLzqh sQLHoOvnORSkGBZ/cHxMZis= X-Google-Smtp-Source: ABdhPJzgm2aZKW/8bmxvx27/BScmLVR6vLIuD0XrgxNTbtZx0jo4gZilsF7ZZZHZxvTXxNQuf/5/Mg== X-Received: by 2002:a1c:6284:: with SMTP id w126mr3926287wmb.145.1606311994955; 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-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 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; 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 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-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-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 Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1684340206777216855?= X-GMAIL-MSGID: =?utf-8?q?1684340206777216855?= 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" +```