From patchwork Mon Apr 5 00:34:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 401 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:378f:0:0:0:0:0 with SMTP id r137csp3239278oor; Mon, 5 Apr 2021 01:35:24 -0700 (PDT) X-Received: by 2002:a05:600c:4f55:: with SMTP id m21mr24094066wmq.11.1617611724705; Mon, 05 Apr 2021 01:35:24 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1617611724; cv=pass; d=google.com; s=arc-20160816; b=tECKAvBbgEwkV4JvzuKin6StKjoCYJH4/paQl8oS5LZaLvAwWJHshWL0Qf70gzbBh9 hecXAwzfdG3GxtItMtJVwEAvONEVRHhfopG9Opcv6XBqZ7z1TPkmvo75wCsWs0xjCnj3 Gdf1EjMABc2hJnnp0jNgxcib6TwYLDoj4/8j2j2Q8EOENX/psoGq+w2/vWEfOyqzGCRL rt3JyZhub9yPgNOtpgLP1gVMHX/u4SPcLVwbH8rgd2XZXUcYRUOypuanZJMy3l/nhfhG kwNo+elZchVfEpeTU5MdQZyU6xphJEJ9dqsaGPLEwA8N6i/Jj0Llx/ywzyddTldBb7WG rC0w== 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=zRiBV4r8bbn6cN2BQgfu91UnQiRHyFxrEmxctG+AUf4=; b=QeXECRyWp8r+kJz48mH2oshaJxrH4fWW/5R3AQ0WpkH7Kmcd7oshhzUvyUaIn5BL7z V5LNzZ565v9YNoY53HXvAp+1WW0kR29WoyPywGZxOKw8pfFvH0+Io/rwXcbs6Taeyjp8 Lis+80RP1P6H6VtipltjcppQa2++I79b0gCVxrcZdYjg533zKDz4MrQ2ldk4Nzxl60lE 7gsu8lbdMPRHD1NbbnEv5RQOMQIKtxXahYRF9o3i4bCrDyVqGMxjovjmiCRNH0mLIEgm wmX01IejQd9nYSob/Ssjrsg9HQIAGJwZHtukVtkhsb38ghlob1N3Pbz+kfUZP5uNqJVp KlNA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=FCAHA9i+; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbtexvobqmgqeeuk272i@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBTEXVOBQMGQEEUK272I@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 l24sor6647795wmj.1.2021.04.05.01.35.24 (Google Transport Security); Mon, 05 Apr 2021 01:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbtexvobqmgqeeuk272i@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=FCAHA9i+; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbtexvobqmgqeeuk272i@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBTEXVOBQMGQEEUK272I@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1617611724; cv=pass; d=google.com; s=arc-20160816; b=aFTZW9dey/URkT3lD57URVSMwzFTIvAb983yhywW8DT8JyVePaG/Mv+jXdX+QJTOOa ZD4QOvJ0tatfEUB4xlmn0U8jBt2v5QNbMML3LpAR5h+iC6Na508TAj7hchrSRkV4k+Ia eVkEiYveFz6lMduUrB36peSq4aAcDASq+OYLVwoemoTftVqGUQJL7J46kobjsGXyvGo1 FFvameFmd5/4ZZUV9VpCLvhsyI2OJDDgWsEbbeFFh9esaoqqbj0YKXCAIRvWb9L32a0G ErmDdGslAtXOoANNZbaaC8H14mGI+ooU5ySZwzRBSrQB5OFQ5iDs35iPWhIQFd2jegsF rFPg== 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=zRiBV4r8bbn6cN2BQgfu91UnQiRHyFxrEmxctG+AUf4=; b=UunCXlSA2pzfL7+HNqPmvbb4gOToF6mnzBRbwBOPFKqMo1XSdACN9WBMisGFvttsLm UNflYVVxxgQoG4uHtjKn7M1RMUKouVvfL2GqWwv4lpn2iJkEXrEoC9AAStZ0hp5M5ur8 pjVe7Xw9jNv5JYxIJXAG6Vd0OTSrGCX6P1KP2gU3GDcdayDgSoJ0Xou8Um4bvKKSVn5N POvJoOlL4Iwe1CeNbMGUDjowPZWvB6/3OMZM8e0s0ZtgTzCXb3ss/hcKiJgZXimUuW11 32UjksX60/GgpHRuXCcloLFTJPvT0hsowCHXX1J7T6hA4Ixks1KyAl0SMdbMEQIbYrkl 9GtQ== 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=zRiBV4r8bbn6cN2BQgfu91UnQiRHyFxrEmxctG+AUf4=; b=FCAHA9i+RBxS1C4zF+wCNErMDiu4mtobicxJ66fQPIHRaalB6vipokjRKh8ExZy23e dJSPkGoJj3wcy+7JTesLEKfsAUlr1KCh8V28etTWn6s20Ek4Jj7OZmfPHvGhbvSRwGPi 10XccZKLdzricIM/aAsQ5Xw0/NRhDJLXOPZzIBpty3NkuG5wJBWR0mjXeabYgUEQuQ3b OnX2D4tuOChfiVjNEaQhyYkDrqIuJt4SD65/YnYoDOrQ5DQt3BLPIl1pQ2wnb6AC4pZm 6U3LPhi10yITUczPXdLfGb7Qytpv9F70UvlRgwDyNE9FSIQNpOun6Qm6VhLFt3s1Jb4D 0eRA== 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=zRiBV4r8bbn6cN2BQgfu91UnQiRHyFxrEmxctG+AUf4=; b=g9zyfm3zCwuR0scySSXiVHs2SnKkKR0l4cbzj1SxoIeq4eyRzPHGyokb15/K3uCs0o XTVYNep60PIJ6uvlXQSUUTWQjP8SnKe9pzoaZpFdZQZO9tzHFznPrnuHrJL023YicPmw JrEXS/HyPhQUbgQFa3T2GMXlKSFbubiKfat6WAMegsqDvmYlbCR9vmV/avzV/DCNfGpD G0CCCpc4tdCpEfog56PHtSUUVL+cv8niNAeNjaMFEqSFGubhgpVfz/g/A5tOLt+7uH4+ fpLhCyBtANzwaFIsKu7xpWRNE154C9al/7M62ibYAhO44P3r6qUEkMc9bbS4lZTmcpsK 79kg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530zWRpnihy6Rn8U6CYzmDTsGug/drWGr3xmT3CcQohCf1ZCv/Y+ 8ps8Vo1jCxZ2zw677XYoxLY= X-Google-Smtp-Source: ABdhPJyE8kbEvCVK/KupcZwBLDNlJYH78Ri2Tim2VCrp1+1FSrzQEOv+SBtPngzqKGy2oObW/J4N2w== X-Received: by 2002:a7b:c407:: with SMTP id k7mr24814946wmi.136.1617611724451; Mon, 05 Apr 2021 01:35:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:58f0:: with SMTP id f16ls7053204wrd.0.gmail; Mon, 05 Apr 2021 01:35:23 -0700 (PDT) X-Received: by 2002:adf:e7c2:: with SMTP id e2mr29313739wrn.338.1617611723658; Mon, 05 Apr 2021 01:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617611723; cv=none; d=google.com; s=arc-20160816; b=xnQocloJElGNsG9RZNjkRlNVPbvZndgC1gRLlpxcYP8Vqe9fTRLHLY9SeELJWMK2Q3 pdO4ya/EbRf8EsHv+T3hsvAee61vVoNITS1KzFY9omMINR3gj4kXFj6AzkEhI8x0s7Kz hHNU5E5tsVvfAx9aXhnDEjdqm8It/swdjoG9Rh7TsKowpEZfUH8eN8fgtiFhJjSi772G 1ba7xbzRUNOcs+WTKwyNprxLg/fjAXy5WS+EuciW33Xr9l0m+6Fx7mX16Zd11pPhAgXG BhCocqcGF/3O4eGcpm1GaBhrm6idTqAeuXAvQXFJN21DNlzwcFjreyZjYXv8IfaCGAsf yBUQ== 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=wt/a4noj1XECmcjduf/Ap33vmB9uz8awcEnSH3hUwsg=; b=U2hCJquRsrWYMXHHuzTLAQBFYJzNO/v3UAjOmp1m/HslN2pqz85fWVsTZGNfwsZk2U kdPzf1akDM92m2ywRGsdUJ1iwF0ZO3GjczoZUniae9t1bPhH5jJnvZMKNhfMp/iGHuV/ tdjl5VllJaWHnIu5rxDC5K5i+jTsbWufeu/2OcO7DGYpofau8THaSmXRyE0owLFKM65J w03BRJKFU7vDDceIk3zvllJBHVZlu7QU4w0UeK1cSUcxZjy2omTuxH4bOkTaTtdYnWgf tKuSOXaO11GhHco25pF9e2N/u8nHZGKvpNcsZKjQKfce4A4r48Qw6Iw/MEYgNPKb0q4D ozDA== 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 r11si2072016wrm.1.2021.04.05.01.35.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 01:35:23 -0700 (PDT) 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: Z7GR591VVywtyQR3zQLjPJpNqHsyGDcO6Gw/qxAHNT4EQ9YiexNIky6BxQNtT8drgYEuI3Ly3q pouYV/zNsrJv9LZuApd9i5sC+4ehLjhLp+qblDSRJSI/pPurh6t9GUcE89kPsENkkPBngwXAsE D5/fo8KNUMuXQuqMlEU7zUCfggea6DqvNxIXU0HRFG8bLXYPISWszIkhBQCJiS0n73hM8Sn+rD 1UqUxAuBXyyy6jVupdu+dhnJH8sgP4hZLwLUNSDsjGmlK3mCnASu6khf8DRErI0gWFQQwrk1Pn 9Gk= X-IronPort-AV: E=Sophos;i="5.81,306,1610438400"; d="scan'208";a="59930278" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 05 Apr 2021 00:35:22 -0800 IronPort-SDR: PUHNvU0tk7apMn3S7FcBUq3NWnCdv4PMtWwqdZD3aZoClbPmPzVtv8WAOhLomT+msIUpqSp9XC iAGHi0+AaE+1mOgOykiNw7uS7xYvwlJT03f42G8Fwi6hxFSfuBHiZhFzrd8Xe7qMlZW/KMX7XP nLLy0AFUrplU4hrxBblJXgZSHK9x5e6cmxM12s9gF9dwZfmkOStgRU80DEoq3Vn5NHQaoGUuF5 Gtllb88ICQtfrB0ckEp2gAKCGedqhSoCoAKOb5uvAEz95HcmSEZYXlswfMs6PBGWd5G9pHTrfw peU= From: Vijai Kumar K To: , , , CC: Vijai Kumar K Subject: [PATCH v5 1/3] dpkg-base: Introduce do_apt_unpack Date: Mon, 5 Apr 2021 14:04:57 +0530 Message-ID: <20210405083459.12277-2-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> References: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-04.mgc.mentorg.com (147.34.90.204) 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?1696188831544747703?= X-GMAIL-MSGID: =?utf-8?q?1696188831544747703?= The Debian source package fetch and unpacking happens now inside the do_apt_fetch task. With the current do_apt_fetch implementation, it is not possible to use a custom source directory(${S}). apt-get source by default extracts the contents of the debian source into folder with name _. Add provision for specifying a custom source directory. Add a new task called do_apt_unpack and move unpacking logic there. Signed-off-by: Vijai Kumar K --- meta/classes/dpkg-base.bbclass | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass index 5c7bddc..9f17906 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -58,7 +58,6 @@ do_apt_fetch() { if [ -z "${@d.getVar("SRC_APT", True).strip()}" ]; then return 0 fi - rm -rf ${S} dpkg_do_mounts E="${@ isar_export_proxies(d)}" sudo -E chroot ${BUILDCHROOT_DIR} /usr/bin/apt-get update \ @@ -69,16 +68,38 @@ do_apt_fetch() { for uri in "${SRC_APT}"; do sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ sh -c 'mkdir -p /downloads/deb-src/"$1"/"$2" && cd /downloads/deb-src/"$1"/"$2" && apt-get -y --download-only --only-source source "$2"' my_script "${DISTRO}" "${uri}" - sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ - sh -c 'cp /downloads/deb-src/"$1"/"$2"/* ${PP} && cd ${PP} && apt-get -y --only-source source "$2"' my_script "${DISTRO}" "${uri}" done dpkg_undo_mounts } -addtask apt_fetch after do_unpack before do_patch +addtask apt_fetch after do_unpack before do_apt_unpack do_apt_fetch[lockfiles] += "${REPO_ISAR_DIR}/isar.lock" +do_apt_unpack() { + if [ -z "${@d.getVar("SRC_APT", True).strip()}" ]; then + return 0 + fi + rm -rf ${S} + dpkg_do_mounts + E="${@ isar_export_proxies(d)}" + + for uri in "${SRC_APT}"; do + sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ + sh -c ' \ + set -e + dscfile="$(apt-get -y -qq --print-uris --only-source source "${2}" | cut -d " " -f2 | grep -E "*.dsc")" + cd ${PP} + cp /downloads/deb-src/"${1}"/"${2}"/* ${PP} + dpkg-source -x "${dscfile}" "${PPS}"' \ + my_script "${DISTRO}" "${uri}" + done + + dpkg_undo_mounts +} + +addtask apt_unpack after do_apt_fetch before do_patch + addtask cleanall_apt before do_cleanall do_cleanall_apt[nostamp] = "1" do_cleanall_apt() { From patchwork Mon Apr 5 00:34:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 402 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:378f:0:0:0:0:0 with SMTP id r137csp3239311oor; Mon, 5 Apr 2021 01:35:29 -0700 (PDT) X-Received: by 2002:a05:600c:1912:: with SMTP id j18mr24307970wmq.137.1617611729671; Mon, 05 Apr 2021 01:35:29 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1617611729; cv=pass; d=google.com; s=arc-20160816; b=wP4D7EgX1L+woU5pUCZ9WahXT3ylVHUAR4FX8pBL9zqzvJ9iGs1oTDP4fYliPQtxIM gPsp+unSaUXyN4/vCMI+23q0pXxA1Be/kNoTBR3i+Qo5Drkzi8ZUObbPIqJ4Ujwu9mHj y1Zh0UonSDDAfyiZ9gR/wJlOqtDLzvGc7nznCPEyx7AbevOBlNxbda3GPrT0ZkSjBBbt UIOWbPX/+A5y+Dx4VmAB1i4ptR88Y7IrcJtj3sWfljsxBleKJd3clYF1mXiLI/zcA88Y Uh5nAoFgvHqP3T9AM72K1wzbb+HLpjGRYz6RHCUkx6Y/dZRVuxfzPB6qn24s+Mts8tJ+ VUzw== 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=WgzNz3gpD9NJJtuBKhGjEKMOk5D69vvtsxiRMDx673A=; b=VJTOSJ1VU/tFHYqCZwIfP+TknYShvwQak8tafZrvPfspE63wbzhDQtgdpuFGf+zYmP yNfjcT3a//T9onkOzh4a4hHadO+o22xgSXrsKmRPLlqUgR16hDzJhHPloYCiJt90rk63 PTtcCCWsFdg9cT0uG+0yPu+ysan4pw42+/gZ8FsyWISWlYj1enS3tYKMAo6y1N1oWwm3 PvaqT0UW647UAQN9TNVnyfjHhKAtYZZfdwHQwJAZhDQHtSwhPhfbZ6SNDxUX9NmyRbdR 1KSAanpLyrrQ/9RdffKsL6zhiTQzIjcfHjqnXmIbCh711vaL+HVZsfj4UIlwFQbfPQwZ Rulw== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=gTJaEeCK; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbumxvobqmgqez7w2rfa@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBUMXVOBQMGQEZ7W2RFA@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 b13sor1871133wrp.9.2021.04.05.01.35.29 (Google Transport Security); Mon, 05 Apr 2021 01:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbumxvobqmgqez7w2rfa@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=gTJaEeCK; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbumxvobqmgqez7w2rfa@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBUMXVOBQMGQEZ7W2RFA@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1617611729; cv=pass; d=google.com; s=arc-20160816; b=0OS7oCMspSh2Tj3RuzjixR723HwdiJESLjEYZBIumXsSWoTOqHuNOw9mLHp33xfa9X qYzfMnz4XgK9C3zj3K3LM/1qZFnDVcFrRMDXjRjlyIEOwK/NfzGgk7BczejAE141BsxR Z5Zdd+46MbgulmBze0EYP4qgEQiyT1sdlAWER0bgeQM/oRhKNWbf+/ZkCMy3klkn9jl0 wRs30QcDP2EE7KdecJHmBevoS40HlrnYNgQG7mb6TT4RooqorHYo/zcORt/2h/pmX7Pf GE4XP9YRv/RsrK4i0M8IBKhsPzwzFjTH0HmQ5FfJHaQCbz9BThB14tJKTphMiJ/DowHW ATsg== 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=WgzNz3gpD9NJJtuBKhGjEKMOk5D69vvtsxiRMDx673A=; b=ZOHGBVMMCQn2mpFi0UjclAqZcYXuV8zEvkUBAoXm0rFn7aqePX3yGVdTtJim1iVGtI yD87mPb5WTwQezwA8XadJDFx44pnlMDm/N51W5VUKZtK7HLS6V7nkpSHonRV6wWCRxUk CmMfejaNt1PEvlX2uOHrbpHgjy1y5Bvt+6J9LuFBraTxnOpq6QhFmR5DdLuN/1SZgLfL kkengOiOAEr7dCt3kp8jdaVKxhosiYCif4TTp8B8y4G7Cq8b/Leov4ne1OxY4l1zddoK fVwzQhSot33ys0zrw2GPQk2cbzUIvR3x6p5s6aPHdRGRk4KYgy/RPabKqt6kaaUMJ+V7 hTOA== 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=WgzNz3gpD9NJJtuBKhGjEKMOk5D69vvtsxiRMDx673A=; b=gTJaEeCK9NEUJvr1QIz/VisWOeUDsiwfNtdIQmTvj28oD+HuNeooOJYjZcglTQODRr Fvv14XDpxUhU5Hu63X0NXs2LWagFKuRRi0gXruv28uroj74o5Fxxw8FcH64G8U6Eqpnr aXYlvX7Ey9REPQibDTKgwGiMpD/umgCqDCSX/TflkNjrDRfW/AvtJnI1vuZHGnTR1DPn f4B5MF6VbSPrXXeManl4hFlhcZIWvTKwsVyYHF+Nn2wDhwUT2ygzjCAqMFIpqiWF8Z6r zdQMEkIH3W7fXzKuWtqIAykkxmZiGpY4vTcr8+sMfj7tQVt3sxjZpvuNfMvJ6V4hjjnF hB7A== 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=WgzNz3gpD9NJJtuBKhGjEKMOk5D69vvtsxiRMDx673A=; b=ZkQhGSOhWkpzeYDryy87mxVy8uqqDSH2lg20Tmk+KxXtpogtX+IQ3S53Z+dzTxwht7 Bf2aWinOC0JD+sPySxeGW1u0hKo9Iq39MnrmcWQ2HyLbXoZaN1UFs20+B8Of6H5dDSzj v7Yfn/OGCUfMtQK/GXJNxk7cqOSHRJYUjiGwjZGWSxfZdX4/MzKYBa78C30HVSQ05Acc KzuyW3h+jPa6KXS+GtTZnPtC2q29iByx1I7mkF+L5QAcbVgbKJ2KYeG9Rxb9lY8+15Kc NsMuwfsK6YbJxCw/Dk5eot3bxuf0yV1fGO6WKRvNIazw1hAfcHRJoJg/FBSlxRO/edXv AASw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM5322De1BfneYOz7IHsXDIITh9uPeZeoV9TnU/K5pIbqFgtaCIltR 4LbaG4JihSlZ4RBZUOTVWec= X-Google-Smtp-Source: ABdhPJzqiaxLW1wSfEr8Ki3zdu1trTN2UEmC8eSHdkEQTTlxhhkOGg2eaps1mk14fUX0vdqdN+GWXQ== X-Received: by 2002:adf:f94c:: with SMTP id q12mr27754175wrr.283.1617611729437; Mon, 05 Apr 2021 01:35:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a7b:cc94:: with SMTP id p20ls7202148wma.0.gmail; Mon, 05 Apr 2021 01:35:28 -0700 (PDT) X-Received: by 2002:a1c:f705:: with SMTP id v5mr5641845wmh.105.1617611728614; Mon, 05 Apr 2021 01:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617611728; cv=none; d=google.com; s=arc-20160816; b=MNnX/Kd56F/Xum6OnGRrrSnldd9wyL2qpkAKGcYXsEAOLKyJe0A/dzvfyiQmRqHNMw F3+76Ujhy747+HkzCcjk3v+M/EDgdIXnq4/c6yF729HBaa8zEOZhdqKcGzyHyj2U+QIj 17ER00fMXTAwEnffAAckQnSVvC6Viv4BIZeCbx7SXlJ0Ii1WeLYYhG7b/+CtCC2kmeE+ 1LhUMxFnVGkus1d/Uc8NEmllw9KWGimwIOSWimXMV7I1nujWoF+BA54aEAVOqMc9Nhdd LmVjwG1+pZSVJIPIW3sAwEl2380kPkVkfEaORrSSq4Mhz+wAPLNrcWm7hzMMxBd+UrbK 4AGQ== 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=RnorLW1jmjSsCV4wyKAYJqq1zr+sbyQFPRfC5ZeBQVs=; b=Ulbg7AYzjgNC/NGWfiDsGI1v3f6Vvylxv/ynvsUhkoBtxSYNvTtZyetlhw9FHY5+cM wPZa8bk8EvmyJtLlxDmSIcxNnKduZWUc5AM1D06WcOmHMXyflPfT5KtztOZcH7ST5x5T M+S3SZPLR/CPNjiAg2A1j7zFH+Rn4Vm8x5O9Nk2or2ikCapvFa0CapXAbYvpeFTZXrAw fAkghhIqnE9rgUdyQaoEje8zhLylK6M6kNCimQVqgRFbDDmyNDzBeudUkuyz0VfyaQhD xKcuGZ1WzIcJZGv+rbMmF1bXBW8s/ey9ZaZGTSqA+W8CTTT3dSZ1RgIm0iS9i2i6Vz58 8YwQ== 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 r11si2072016wrm.1.2021.04.05.01.35.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 01:35:28 -0700 (PDT) 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: 88GVVUjfQJsxLvsvL5RySlUTBvoAsOKE8LPKoNMWyVtcB+eBCXgC7RJwSrFH+4/KqhSy4iVckR UebaL9zLOZSSzcuGLyDqiCwiFSrXAehdN9ZH8x0CyJYDBQLXhrRoAE8CIdVK7XZZ4YnmwlKKXV 6UzEHrM0EwSLNF7p98QZnnEUsnorqQ1nQDCna9itt2T7t3g0cfmSEtX9065655GuDy8VIyp1UG Gl15rgYpueKykeMp2PGtPAvaOZ465HtXK6lZsWRBvA6JZTYSUxj6PGedP1zHtQnPLgm6nQ1Upq hJY= X-IronPort-AV: E=Sophos;i="5.81,306,1610438400"; d="scan'208";a="59930279" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 05 Apr 2021 00:35:27 -0800 IronPort-SDR: GwJwinol1ZZ1YdLciqK60JH0wygOysBuJsjWbNOgdmqQUoTfSMezm/yHjSigfS/lJ06yUG0S+f DYsGyLZ7y6XjbTffSuHW7eTpdhEvzBokaq7XYPGIJpKF6Tmgs9t/IN//aSXfv22Gd4PIJliRhS LppMSJYheiV+y6koMqSU85l5dikS+NdtoX4LgqsXeAeGD6ED9aAxiSkH+TcBTJdALCCZcK42G8 Z6I7vCra0oRMjGZNPtcFwL8KCl4IowVgkkD1w/Nr1yZJl++6fQ3Tgv81+obsLRg0KxC7yDv+2q 7iw= From: Vijai Kumar K To: , , , CC: Vijai Kumar K Subject: [PATCH v5 2/3] Modify hello to demonstrate apt:// without ${PV} Date: Mon, 5 Apr 2021 14:04:58 +0530 Message-ID: <20210405083459.12277-3-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> References: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-04.mgc.mentorg.com (147.34.90.204) 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?1696188837101166362?= X-GMAIL-MSGID: =?utf-8?q?1696188837101166362?= With the introduction of do_apt_unpack, we can set custom ${S}. With that feature in place it is no longer mandatory to specify the ${PV} of the package. ${PV} was mandatory before because do_apt_fetch was unpacking the contents into a folder named "-" hardcoding ${S} to it. So we needed to know the correct ${PV}(debian-source-version) beforehand. Signed-off-by: Vijai Kumar K --- meta-isar/recipes-app/hello/{hello.inc => hello.bb} | 0 meta-isar/recipes-app/hello/hello_2.10.bb | 11 ----------- meta-isar/recipes-app/hello/hello_2.9.bb | 8 -------- 3 files changed, 19 deletions(-) rename meta-isar/recipes-app/hello/{hello.inc => hello.bb} (100%) delete mode 100644 meta-isar/recipes-app/hello/hello_2.10.bb delete mode 100644 meta-isar/recipes-app/hello/hello_2.9.bb diff --git a/meta-isar/recipes-app/hello/hello.inc b/meta-isar/recipes-app/hello/hello.bb similarity index 100% rename from meta-isar/recipes-app/hello/hello.inc rename to meta-isar/recipes-app/hello/hello.bb diff --git a/meta-isar/recipes-app/hello/hello_2.10.bb b/meta-isar/recipes-app/hello/hello_2.10.bb deleted file mode 100644 index bfb8722..0000000 --- a/meta-isar/recipes-app/hello/hello_2.10.bb +++ /dev/null @@ -1,11 +0,0 @@ -# Example recipe to rebuild a debian source package -# -# This software is a part of ISAR. -# Copyright (c) Siemens AG, 2019 -# -# SPDX-License-Identifier: MIT - -require hello.inc - -DEFAULT_PREFERENCE_debian-buster = "1" -DEFAULT_PREFERENCE_debian-stretch = "1" diff --git a/meta-isar/recipes-app/hello/hello_2.9.bb b/meta-isar/recipes-app/hello/hello_2.9.bb deleted file mode 100644 index 2fe59d1..0000000 --- a/meta-isar/recipes-app/hello/hello_2.9.bb +++ /dev/null @@ -1,8 +0,0 @@ -# Example recipe to rebuild a debian source package -# -# This software is a part of ISAR. -# Copyright (c) Siemens AG, 2019 -# -# SPDX-License-Identifier: MIT - -require hello.inc From patchwork Mon Apr 5 00:34:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 403 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:378f:0:0:0:0:0 with SMTP id r137csp3239344oor; Mon, 5 Apr 2021 01:35:34 -0700 (PDT) X-Received: by 2002:adf:fa08:: with SMTP id m8mr28205772wrr.12.1617611734723; Mon, 05 Apr 2021 01:35:34 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1617611734; cv=pass; d=google.com; s=arc-20160816; b=pSI9iPr0A+7XWHpyZ0CKrL5z0aSr6rYHINPKVpjA8XbSp6QonPirzdhlXf7NCUacVb jjm+rLT8obPeDFLOxWF1yJ6ZvTBQjpkclp0Pl1abmh+Usz4HI1Xhnd/qco9CfjSAlLmc zZDS6oIm5VPaBIvyht3ah+QYv5uUQIVzeuM2YMBtNh10Jv/XQreMMWPHmo6cdcDP9pDq o7vXvLMsn9TLGNMTbp+NQC+DlWaRRzLYL2plV7s/0o2iUJLf7y+TzwdNp59vo9sthKQp SjZdcYBPWfX2e1zJl7PgtmR/gnjZBTnfm+3vbE8eWgql53RHMQo220FhOpD2HsmC+ooL AOxA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=xaovFuBMeHGdM36XS1BczsJWV0ROrZiAdTR8NqFzQwQ=; b=lZDGNT8bM6yz70EoF+Z9lpW8nwfghtci4KCByzwd5ZK8KxwugckvyM3zGlb3z3qI9b he1LBA4hspqkjEhKPSoliCRK/wjQ3VM5RExrTYBzF4tfXS1r1+slMfRGm1gG6xtGG+dE uGxLHsRJsgUNeGpYUJuoHipH81xAPj6m5S6Wynx+wlDXqfYpyZ7T9f4PsnqsDZl7Xcmd ZVs0TYI0NDiT9k2lvWv9FmRpthPotgaxraBXrWlSFpbv2L3I2ggxfEvzyVp18R+vVq8S ujZP7TQLapOC+Ym587DXX6M0+nq0lr+9+PQ9fyazoyhGXRFf8jwfWr9XFTR4yxsP/IBP O4MA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=Bj528B8s; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbvuxvobqmgqedjohg5a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBVUXVOBQMGQEDJOHG5A@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 m17sor6852469wmq.7.2021.04.05.01.35.34 (Google Transport Security); Mon, 05 Apr 2021 01:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbvuxvobqmgqedjohg5a@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=Bj528B8s; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbvuxvobqmgqedjohg5a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBVUXVOBQMGQEDJOHG5A@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1617611734; cv=pass; d=google.com; s=arc-20160816; b=EpAo9fmNASuqrMoJR5oivD5pWtVoEmA+k2f6fZow3loKW+6L6yXm8SlI1S3yHXlvwR AMudfS3DMZD3Y0VRHAvzfXlUq/kqvE9l+ipjopR+JEEOo2J6fb4/2a4dCw9lHxZZlEFX IyXPrJHni/GE6plRckF3iWxst4pv47vMxctYQ0lnHlr5Iz9AE7yEngxfsvk9cC6cDkyK rshU+CBPEFVwvbw+mWM8PsvWJr989uCUcpfuvdd9nrO+yPZZqC2MLZvDw0HxD7fi0ZWO Twpd9TtywJadmSCvdrEeWLHj1RMe6vbLhdnzVDNHNjw0/yhgSTM5pP4GWoLFSBeYC0Yn DEKA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=xaovFuBMeHGdM36XS1BczsJWV0ROrZiAdTR8NqFzQwQ=; b=jWE6Ep1iZpBZIiNSVAQzHcCVa9IVf9ZNLQ1wDjTDKC4nBo3Vxyrm2B9981rqWisHyv uZfyiwtMDqKwSU60QCFtBu++xAcBISJKgHtJmpgc8EEbPcR0ipKOvtxaxBu7D5Yn8LSQ QiACIvmx+B33dS1Kb+fXgelcGcDTQoZWaw2JONHPgxUdwUKdw06ViKe5PXUJrHb7ndBA 4is7RQvqMt2fqF9FXxfPEvIy2cw8cl20mxPQNkIcuMeY03RkcL8O5OJ79cGMMoF06dLm GNiV0LA2KIP6UKqPqfgdAPQDgtTCX8dtKHh0nf97ETYZUCFYOmw7tqolqFyqKlJ7K1PO G+PQ== 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:content-transfer-encoding :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=xaovFuBMeHGdM36XS1BczsJWV0ROrZiAdTR8NqFzQwQ=; b=Bj528B8swW7P3iXVFA9xlmbs3zIyQ7TIrg4rtBUriHD0Pt8GQ9rjcCiFUyBo1dS2NE xJCsrD5mdsDapybfJZtJEEmxXy2l4Iej2psf3QmrbqdwhAkWeOIv+ZVXu8Wxz/Hz9Tb0 DwuwN0KxrWfTR/OlFcIdlIboornMVpfWcITXONPoOlGyfdfhipdpFMOYbowiCP8X0Wr3 xxU3SJ68blL7em2qxF/Xlvf8ynWRUclc+/oA7+fE8VMtdXywZMK2Nsc7F3flnmrfNTin N4Do9YKSd317/JxdSJU7ZyoZfozGSqKoKvfw4HYexDO+pQVymMMl8EWoHpBNlXIgIBN4 Ll6Q== 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 :content-transfer-encoding:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=xaovFuBMeHGdM36XS1BczsJWV0ROrZiAdTR8NqFzQwQ=; b=n2Q7or8ydZ8LyivYSZW8EV4pWV8KameU7jLnZRbnyoI4hsgwDQUfyDX2GpImiDghaz GTB4bAo58WhRZUsNJtSarJ0rIyI5RFGezqUHTOqh+o8ceqmyiL8swWCaisrWEk0cHH4G pU09cQGjdGlDH9rsaRB5jeRQBDwMlYvaPk6IlLDWeAWLEngLRhl1F0X41NhOlbrfieWY lv+mJOubgCiABZ3CDQmu0PCrZQYgLGv1ynEuN5Uik+h0U7ADKJcdOmObProF09vt+irB cqqU3Hz6oQtQTmWgap45hYn09cmVBqwIZj1acnyT9Bp3I5Jksu4aGCtx3EIYhR6iLS59 /4yg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530L9YQDcaCJ0Ous37XK4sp3Jeu1PHTMR7OerPVBjYLvPWCvqONQ 9EhUOPE8R2+q7jOzS1TVydw= X-Google-Smtp-Source: ABdhPJzgX+DIo/xicMFZN3n4Si5INP8lsvwCNtwBxckOTRZvz09pa3qxgU6AMgMAIprjVropBQnT6Q== X-Received: by 2002:a05:600c:4998:: with SMTP id h24mr13709104wmp.174.1617611734481; Mon, 05 Apr 2021 01:35:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:6204:: with SMTP id w4ls1335162wmb.2.gmail; Mon, 05 Apr 2021 01:35:33 -0700 (PDT) X-Received: by 2002:a05:600c:358c:: with SMTP id p12mr24844606wmq.159.1617611733644; Mon, 05 Apr 2021 01:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617611733; cv=none; d=google.com; s=arc-20160816; b=WewbbE6BwdjHIT9xvO7dy1IfE06drkeX8TM5sKzU/oRjWY0DDwTEpFrHnoMmAbZ/I2 sjEaJnDMAU/fF6QIyLfQZ2VY0Ji3SMAja6Mr0tiQxfn0VAb5OS/ulIAQ+OQ53ZQYx+kN tv2bFl/PczbT/6FmTwAze2cKXd+BMQPvfMSzYeCdeCP0yrnvwZJrEt5hwSCmSzJxfyhH 9CPe0U86i0qwW9jmHGqJUfFGUiSm8jhyUFbuU0zS5J9PVHFol3L6yOmyu2WjXBXd5TBQ CmoX22BN6Lobm/0NCCSymXZQM1vgZH+0nZLxqTRVLbRXAchcrgk5EQkCLEv8uugbbmQA 14Qg== 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=hutTmkbd7edZUOBMyQ2tFZlyi790wkfX1Jwj6+whHhw=; b=MLZEKm6FPym3FCGzbPn8IbFIck3fi5ePbWx0UHFgwEubV0QQ896Y91nSOOH1V+aYkc CZujNLnpp0A1cYK+XL8OiaI1yV58iSYAzI3gnw/dPWSH3cHFMnXyrrMlK7KTK0lK/utH r8truGdVtk6Ofk4sonZPcr4o5AvwNk0PsQCSXjTVVvd7rmfxaywqBjKykmfcjQ7TLTje EIHllKMauYHOi/06MSbzzO3bn3tLgqra4Sc2tvjRjcdgIq9pnS8I0G0W7LRu4z3ukeVa 6NojT3FHay4rnd70gKN/Cr7bSmlerrEZjvGnoorZWzfCV+3hwyOk/RHrqtT8K9B/uiBB wZ9A== 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 r11si2072016wrm.1.2021.04.05.01.35.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 01:35:33 -0700 (PDT) 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: aKyVzLwj6OxfFSJ6KNH0ET1aKWP9leeiSEElP5MKHZtdQ4sZc9a8MLok2dTr1FfTvkingdefET 9rTyX4vWnbNkVg9zgsehYcuECEZPAwdOwuT8148A/QHFIqRXP4a3YOkf17yCL9JBDw7gCtrqqh wp57Qyz34DjzwaMbufWsSwraKAvJyt0R6sE/DuWW6bRvT9+dynUfubj9/eBIYf0xI1aVM3B4sL SCtq86CQo43ph7VWDYb8oER823TJFvJFUXah/dVy3PUqSIaahmEODePPda4znLTDwmKgXtloSY GVA= X-IronPort-AV: E=Sophos;i="5.81,306,1610438400"; d="scan'208";a="59930283" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 05 Apr 2021 00:35:32 -0800 IronPort-SDR: 4+4/itC3dslyk7BMwKawilsxFLrJQmb5NiIZLGS2P7G4DA0xo2fGCbP+okiCCieHhPVGaOcLiK dL3wMMmwC/SwGGrp+lexTTnRSk/sOsgr1SAx7QlojbsiUO8I2uzdpgRUxvTtL5u48XJLDK2vZi KpfnBYlSdWen+EFhOvWWmmXGWGya3UaMk11kNm8F5dbYdhzF2UVG41msm50So88FZtNSuYAoTw 4tn7SgR6I1223VJs8HGjQCfk8yH0m2vg+iFCJetxaKYYvzz9yfnWsgZnhanUnDYezQZ0jAbCZD mXk= From: Vijai Kumar K To: , , , CC: Vijai Kumar K Subject: [PATCH v5 3/3] docs: Add detailed documentation about apt:// Date: Mon, 5 Apr 2021 14:04:59 +0530 Message-ID: <20210405083459.12277-4-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> References: <20210405083459.12277-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-04.mgc.mentorg.com (147.34.90.204) 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?1696188842328859906?= X-GMAIL-MSGID: =?utf-8?q?1696188842328859906?= Add detailed documentation about apt:// in user manual. Signed-off-by: Vijai Kumar K --- doc/user_manual.md | 61 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/doc/user_manual.md b/doc/user_manual.md index 9ca8e01..530f4c6 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -676,16 +676,69 @@ Before creating a new recipe it's highly recommended to take a look into the Bit Isar currently supports two ways of creating custom packages. +### Compilation of upstream sources + +Isar does understand `SRC_URI` entries starting with "apt://". For an example +of a customized upstream package have a look at `meta-isar/recipes-app/hello`. +This is what you do if you want to rebuild/modify an upstream package. + +### apt:// options +With apt:// you can specify the version of package you want to fetch by one of the below methods. + + - Specify the right ${PV} in the recipe name or inside the recipe. +``` +inherit dpkg + +PV=2.10 + +SRC_URI = "apt://${PN}" +``` + - You could also specify the version in SRC_URI as below +``` +inherit dpkg + +SRC_URI="apt://hello=2.10" +``` + - You can also specify the distribution instead of the package version. +``` +inherit dpkg + +SRC_URI="apt://hello/buster" +``` + - You can also ignore the ${PV} or distribution name and let apt resolve the version at build time. + +Recipe filename: hello.bb +``` +inherit dpkg + +SRC_URI="apt://hello" +``` + +When you use the last two methods, apt will pull the latest source package available for that particular +distribution. This might be different than the latest binary package version available for that particular +architecture. + +This happens when new source package is available via the debian security feeds, but builds are only available +for the major architectures like amd64, i386 and arm. + +Please see https://www.debian.org/security/faq#archismissing for details. + +If the user wants to make sure that he builds the right binary package available for their architecture, +please set ${PV}, so that the right source package is pulled for that architecture. + +Below are some of the packages with this scenario at the time of writing this. + +1. https://packages.debian.org/stretch/zstd +2. https://packages.debian.org/stretch/hello +3. https://packages.debian.org/stretch/apt +4. https://packages.debian.org/stretch/busybox + ### Compilation of debianized-sources The `deb` packages are built using `dpkg-buildpackage`, so the sources should contain the `debian` directory with necessary meta information. This way is the default way of adding software that needs to be compiled from source. The bbclass for this approach is called `dpkg`. **NOTE:** If the sources do not contain a `debian` directory your recipe can fetch, create, or ship that. You might want to read the the next section before returning here. -This is also what you do if you want to rebuild/modify an upstream package. -Isar does understand `SRC_URI` entries starting with "apt://". For an example -of a customized upstream package have a look at `meta-isar/recipes-app/hello`. - #### Example ``` DESCRIPTION = "Sample application for ISAR"