From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6878157486786871296 X-Received: by 2002:a37:af83:: with SMTP id y125mr2159452qke.410.1606291637808; Wed, 25 Nov 2020 00:07:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a0c:9144:: with SMTP id q62ls360962qvq.1.gmail; Wed, 25 Nov 2020 00:07:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzredOR37x4BiIpwyj/N9pIhQSvjxQ2aMYcjSTffr+p1SS0pGI658HjDdSG7yhVxjuFxkY X-Received: by 2002:ad4:484c:: with SMTP id t12mr2542042qvy.15.1606291637378; Wed, 25 Nov 2020 00:07:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606291637; cv=none; d=google.com; s=arc-20160816; b=EqOxLAMIxXvvjdIz5R1F0D1rbQv4uj/XBKYha66TXKMEF8NMseWXNIFPG54viiZGgi +CkWqKh9k5FeWxJg8i54mI+LwH255n/N5EanBqRhnZ/BIbJpcD4u05sWuqPuK2cdWaxf VyGJo5s88Q5eblMAnUwSPYMxIkdfmxXz897PgoRAXgiG1CJQcYUOzMNSTpqISzdP4Tnh w41OcseYirTnCr58IQCEdqHEbwdhe+l47BN7/uyOAvxLKWMbUcaKWYrJ6MB4+k13vgnV Dyiq5+P5s9ZCf+wG7d1Y757fhXwK8SeJ/0X0EV0ZWGOlQqc3XUtAz+n4/E0Jc4Ob5meZ VwwA== 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=8MtUYq2vq0T9Feo6SyJhmBwVOUL4kBjxr5CWdw587Uo=; b=T6uSHIyLehczcaFYsjv8u/S4dkKVIn+4yFDP4jFEe7TjTIMSgA/Lw57csohKgYwiOg rYWfeOBAkrEyGNYwboQkBmfjwMHFhSC6SvVx7JwPMsUq5qdOL7aMR6EraUqAH91bQnQ8 fbYxmJzH9I01J/Ly4uFrgIz4zmLrQDbE87PrNMaI4pRsEXF7u2mmjSbtjYZFAloMef8F O7FHG7VcnAwbs0atsoVNNCd/Tz+o/eB9qr0Kkdyhn4QwFajF+5ShcU3WB/t22KrXnvO3 99XElimo+qFMRUuq41acqVVh7T17jdZxmf2rvuOXc9N3lyihoM9xmuIrfFAxDq9VQHPL 9+Jg== 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 o23si79210qtm.3.2020.11.25.00.07.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 00:07:17 -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: dCScw3uPgWOMYLyn0kaAbsFySTj0r8M4vlZFzz8XwiNmPry3Ie8S5GjnFYI/aj+O5XMAFd7uSO 1ZqkJwuJEXoq0TYFcZen10HwGG1OIJipI+vw/galnyLnR/lu3MgMJmzP4OJ6jWG2dXz6AOQxqI r8vY3i09NwKiFA6OEsgPVQ/Sm5jzEUi/VXvd3JzVrwO+bPohb3leQkO5ewCnJFlhfy3oFHZ3Y4 WkmmuH2FfS+QMXtRivKeJqA92oB0kTz+s6TBf2FZrBkDh0OaYEyUyFk6kD5rDi6Z2E8ie6ltDr zMk= X-IronPort-AV: E=Sophos;i="5.78,368,1599552000"; d="scan'208";a="57762598" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 25 Nov 2020 00:07:16 -0800 IronPort-SDR: X8TyADbmoyRga6AeNlEGsJ3XFwe6FJoz7G+YChDsd0pmldkHoBwe3dU8gVO9t0n5ZKeM1SlTof RK8nkj40ERU2XsmA9tiZhtY6CfuN+farWgI+uhR1FeprioqR8oMRCTHzScadrxO4K92BLqlb2p zt9/wLVoNwnJgAR4EXmHdJq6jfDuKRWjusSYg7ZUr1w/aWEs/PBag59lRKuvW4quncq3Opc7Y2 2lxK5qD2gkBrCDvGaZtxYmpX8JyJY+AxTjHTTtxFxsEc07HcINTaqulcZJxiLmklD3J/VVEzWc T4Q= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v7 14/14] doc/user_manual.md: Document details about deb-src caching Date: Wed, 25 Nov 2020 13:36:53 +0530 Message-ID: <20201125080653.16303-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125080535.16223-5-Vijaikumar_Kanagarajan@mentor.com> References: <20201125080535.16223-5-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: JIiTz8URoll6 Add details about deb-src caching. Signed-off-by: Vijai Kumar K --- doc/user_manual.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/user_manual.md b/doc/user_manual.md index 8d04cd2..c0f842a 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -918,3 +918,28 @@ And build the corresponding image target: ``` bitbake mc:qemuarm64-buster:isar-image-base ``` +## Cache all upstream Debian source packages in local apt + +### Motivation + +For OSS license clearance, we might need to have the sources of all Debian packages we +ship with the particular image. + +Currently the local-apt generated has only Debian binary packages. Extend the local-apt +to have Debian source packages as well, for OSS clearing purposes. + +### 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 and +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. + +By default, the Debian source caching is not enabled. If you want to cache the Debian +sources as well, as part of your image build, add the below line to your local.conf file. +``` +BASE_REPO_FEATURES = "cache-deb-src" +``` -- 2.17.1