From patchwork Thu Mar 4 07:41:36 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: 348 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:c583:0:0:0:0:0 with SMTP id x3csp6298557oop; Thu, 4 Mar 2021 09:42:04 -0800 (PST) X-Received: by 2002:a2e:9758:: with SMTP id f24mr2788416ljj.404.1614879724298; Thu, 04 Mar 2021 09:42:04 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1614879724; cv=pass; d=google.com; s=arc-20160816; b=bXJohr4s+vHcTwJhmScgvleF9HgQRMdEcjwUZ0uLUBWlgJhif8Wy1JRMP/PIsahQtD 8I7c7hSxXKfbGZW/qQjClZZqAe5IDroNUDYRDWvL/nghZA2aCYX5xan7grDGcJ7Q8r0T EcIJAfdQpHfg2MVdqVD+ZR1RcQh/rqkzBnvYciMbIXNtpR3E0KJCvcP9XCmMtdr6pDhd gVT950W71AbQSJM4q11Pkh5WpkX+cNbP6EtX6X9PopHCYR+8QAC3RJKx7Ra3YZ5AUudq /ksYFlo/KHsRIOXucDHNM8L/orkHD4Uz/83imrD8lAVGifOSI31LcyH/ysZ72Slsolcv seVQ== 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=KR2OUVwcPee+yNUo+TqRb2YVs2YzG1tWSxbpySBZxRk=; b=NUM4mM02dDH9GLWrjMY4+F7CcUsPzTTuGl00vCK9PpQNSeTNuQSKHb2iN6q+RLPV1n qQBoHRGpyTnMNDAYRWzKQS2144Zo4QSDYlF0/NN9zXr6hKMZamHa+ClTbS42B/pv58wP oP9kKQaoZ+Ko2x2QCAZD/2BOz9zxnywMi2ckiel2L8nK7104Q3SA/ak7Cd/5fDRKnGqx S61h8j2qHHmEcbEXIusLR+dhEJgO/es13mCnN27JRVVOthLXIALN82VzD2lg1QVfQH/X 67t2efEgwAtgKltWg0nlx90v/fihQQGtUWynjCjUzP/wvlMA5qGZeWcvcTQOslltbikj cT/g== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=nUIlgQe3; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb25xqsbamgqefwsjcxy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB25XQSBAMGQEFWSJCXY@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 z7sor31743ljk.69.2021.03.04.09.42.04 (Google Transport Security); Thu, 04 Mar 2021 09:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrb25xqsbamgqefwsjcxy@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=nUIlgQe3; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb25xqsbamgqefwsjcxy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB25XQSBAMGQEFWSJCXY@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1614879724; cv=pass; d=google.com; s=arc-20160816; b=w5B/GlPMBs1EDVURQ3IklKR+er9iKdVGxVscUZrkYEAM2dZPHSXp2hhkEi55f0c+S4 gppeW/BX89lA6VvG/IjBBe6pAzT5IE9DSTaKIipzTYdjfUMwkOgiyrzpLoc+5alA2lxt QZjVAqEQMEV0szKM8+k29u0vUsf3XJsCWW30XHhCpx9pg6ZPfNt2KsrxguDUXm7SoEVK kFDpjw2rb1gEBK0xuoTVx43EKWNe/DntcsXauEpRHd/CVrfTOgftOVd+YZ/BfK7U5B0G aUGk1YR+uEkoQmu47Oz2sVkl6AObyiJCdqAIunMiyz/M2ostO1amigY2CbIym20zyGGt 3MMw== 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=KR2OUVwcPee+yNUo+TqRb2YVs2YzG1tWSxbpySBZxRk=; b=R0JEawLB4F3yAV+e8fO1Tpq9oAa0BmL6rC+KiwbT6V29OIN6rymInnt2/bjvxizV5I +wodmkPDE4K3LFXTDrWR5xuvjtTCQMbg4S2FQT8MnvDSIpcCTSJ1up5Ai/Ig9q7rWP/n kNUCV4s6t0QTLo73cXAPfw3TsjvyRRVVvr02cW6ZLa5V9LibPKz4UkbTDVEsH+ZSFSCH rB+NmtATTnZEa9tEdQMJTfeKmGRWmJbGywW1ZFPHwt5hZPz8BcEAxRk5IOQKKKwnkzL1 aVxvhckwCeyJOni6UXrDJpCxUkKRI/0tS3fp2L1l8WlUOWf+oQ6lRimirM7SqYDRNoWx yqWw== 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=KR2OUVwcPee+yNUo+TqRb2YVs2YzG1tWSxbpySBZxRk=; b=nUIlgQe3oj5XkJI96UDr8uZYPlsShg9ToR0V4Q4ChMsboFKp50bN/SsGs5Li4PvqLe LaaEjaM8vQx9HI6wPHDxYF2Sz5Y72CdPM29U6I9SYVFs83fDt4NpsxdqVYrJskg97qKR 43mbdh2ZwNyNJ/KSBkWeetgKVn1hZA/WqLRZXrB97juXJPJlR0fmeD9WW/sT3NoFhPVf jVd08+3UCWm2EnkuTGrKgWNqv4WTBcfA2PHxSopDo/n88zSL8GTY0irRX+wvDT+MF6mQ e71WSQakCGBDKeWCPWJjIr4NfB2svayEI7+juu08mfc2bqbJv0zmk9P+TgmmkMQBkoSB Ni1g== 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=KR2OUVwcPee+yNUo+TqRb2YVs2YzG1tWSxbpySBZxRk=; b=ebHiij9fANIQj4bnPqb9nn7Nse+/LjZ9sYpFlf5xcXGpzAsqEVi2Y/X5qfHHNkSdz4 ovuWh8w57Z89y/dGORR0JsoNvcIyrOlnLYjACIH5vZDdY3oA0iAKiI1u152c/zSYoKsc pYw/FNqPCoje3PoScPo/gATV7dXXs091PKIhnV4K6V/l4q1gWRQr+r6eIWiSBKdH8dLh yDXjrLGlvr3NHPo1A1Jh7Ixs9imgIoYlu+x2PCoDZPnrKJAihtYTwIjhgE8P8wJqJbJZ qz3XLxckfU4yJZ0xQdK65+RXJUIM0zhMtpy50PnregV+AAw/g/owIcg7RPbdHVyQRE4k iJ3A== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530vzSkV38uTuMAZX0MgBWLkOA06UP8ctMeKNAEi39QzMNgP+rJA icWv1wBNPd0rSGAQjfVcqVM= X-Google-Smtp-Source: ABdhPJyaxVBdUdhd6++xg8spkyM8Oeyy6kHb+ISIpknYoEWkzwzZN37AgUPxeObWSDVHl7VYCEoO4g== X-Received: by 2002:a2e:9ec6:: with SMTP id h6mr2906585ljk.12.1614879723616; Thu, 04 Mar 2021 09:42:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:a409:: with SMTP id p9ls1342709ljn.0.gmail; Thu, 04 Mar 2021 09:42:02 -0800 (PST) X-Received: by 2002:a2e:5cc7:: with SMTP id q190mr2797256ljb.37.1614879722492; Thu, 04 Mar 2021 09:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614879722; cv=none; d=google.com; s=arc-20160816; b=Q5n7AgVxUnavbJhubXmhyGHFKZb/H0Wa/w9NDxiLeaUfhkrPVUDhTF62/roR0Az8zr R+ZHI5PoFoXnFXb/2MU1dcYUjag89Z++bMUsuexcTjDjZekfu7ttnwQUt1Lg1Mhwc2Sr e0VTxm4PBv1vyKI2STrymz5gpc7e0vsKqkGgnbVm9SX/g+i28PlKHVgCHphjXfjDI8IT JDqpdeQRWRd+iP+7NxxjlgoLyZbDz6WZY3ZEB/g5SVF0fIRqDJg+ipQQg1fhyBET3Wf7 jZLQ6fRKiqvPJATLNiT/fj0QrRlPi4yQ6X0SVLmAuWgWNs4hDFD+Jr8xFqMXsucstJ6C p7PQ== 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=ZVm26XCT/M1TB29g2vNguA64aiiMO5HUQtnyui8CQ4w=; b=BOSYWpSZLT85ArRf0r9mSXzslVxyC1AB3QrIW7GioCo+GC/0/124/p3A+5YY57du84 9iIXlGaulOzuBfGYHbpu4xZu369tI44OhM9FOQbH7N0Wj/d1NrmYcXWCqtUo0qIaUDBh N6yEDwD+R94muZvYqGfwFVSJNPM1p6edADerxCgVGP8iiAqmKFm25xdjVFoWB9MmKzFz o70NYj18UCdd5nD0l1rEpfeI7UuLKZo7xRZEVAY8iMOEPsrFv3o47P7CO/AYLz+6TUyv Hj+EyzP/It772rZjLSt0Vel72CVMb/+/U+ZLFLExguEtKWXRfGDF4YlbKt8cTIq1oYmU FVWQ== 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 m17si9741lfg.0.2021.03.04.09.42.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Mar 2021 09:42:02 -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: e9SpvfkBLlYTsLoar4eyUvFUMXFiwPCqfNOiBfwYS9V29Bk7wjBjdoy/1nvWuuwMn++1+simJ/ onqmS4DNrIDmQdncxUzUoG3iTx8HKA1W0nk/gXo0kRoPa5uyrS3wat0S2Y23aYNR5vpXEG7Fd0 rLCGkpYlfisz0pJxJ3cN6LR5RBQhwwy/rhk0kfHos1rNf5bK49gAKjEtWn9U30c+q14ATxl5kB iJM89OXaP9YkYTvEwYrY/2VQdpqSuLvH7vv7pE6u1G6BMV23GpBI1C2LatmIRTkLHxx+L2IZnR I9I= X-IronPort-AV: E=Sophos;i="5.81,222,1610438400"; d="scan'208";a="58899585" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 04 Mar 2021 09:42:01 -0800 IronPort-SDR: uU0ULA+7V4/XWh7Qil2Nh1hkr5MCAUEvaqXj+3JRGusYT0KSu5mip1vovBP5NcLXHE9vWT2Mb7 nuE/dcFnz6kydbMzjILSXlXckRjQbVr2lg4itPIFfmcu6QE9mgwnaMKpd9XiAZLLI9di9igOJH 15HE6uw2MorZfmpOTvxIvVM+h2E16HPzvacOvFB/o0qc9AGQ0OFw06kZXMR8QUO4H5n7LyrYWy QfxzKO+JODht1qbMtZr0Z6N0H0rfEx73YphESDPTxJ5blossYnsD8WWldLvUNRYvY03HtlgYlQ nfo= From: Vijai Kumar K To: , CC: Vijai Kumar K Subject: [PATCH v3 1/2] dpkg-base: Introduce do_apt_unpack Date: Thu, 4 Mar 2021 23:11:36 +0530 Message-ID: <20210304174137.11166-2-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210304174137.11166-1-Vijaikumar_Kanagarajan@mentor.com> References: <20210304174137.11166-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-05.mgc.mentorg.com (147.34.90.205) 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?1693324121571133391?= X-GMAIL-MSGID: =?utf-8?q?1693324121571133391?= 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..c1425bd 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 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 Thu Mar 4 07:41:37 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: 349 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:c583:0:0:0:0:0 with SMTP id x3csp6298599oop; Thu, 4 Mar 2021 09:42:07 -0800 (PST) X-Received: by 2002:a19:2393:: with SMTP id j141mr2818743lfj.533.1614879727190; Thu, 04 Mar 2021 09:42:07 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1614879727; cv=pass; d=google.com; s=arc-20160816; b=CSPYKId+01pOiBPWa/1B8VyzTcx8l3poDKw1/8u8XSHq895fZrusyunaGGuFEWqZSE ho2l9GlM4GlU+vRaynY6C/saVm5vvPGPu50urrj3b+5ukpRd2R2DalpoBU7hcOuHFOVL RmacwPr6JT0KGauMly+SkFtB3vCoYDAMXJznxzebfTYPThBCvpHTksRK2njkilzVLinN IpSu90rEUihPRADlhHK/oUFPJSlGG/GPfiG/4+uWu0Nuk7a6TOnhE6auPK0as7e7x3QN H2HuFbjaYXQzqnXCfoQSHWUGeU4UYIta1WxSeFa2isk9HOjVw8I046Oq7A10gL3RxaOK sfYw== 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=Pd68VuF6MJOKPqZ9deTh+UbstFZqiv0u6SVpkcf9Ino=; b=sS+hpdw0sVBtL0kAgKsS4I8+nuke1yQDiPJLHNzxpoF729D6dDE2Se9+qAxmZGl/23 aHcgokwao9wwtFvleJC0fCcIT2O7p8Pb7438VAMPqLLoWZZKhc1nwEYREnAXbfjYcgZa uAhPe+hBdoljlqxAJmCgjDlZX+1VLV7mZMx/13f5WUkbC0G2sLMV2Ft5kiq5SYVE6bSb xYWZ7YudQX3R70UsXhqkbbzVCkWKwGnxRedSonM5RfDcYCLc3uesv1Fi8+vqZkR6UdM1 +fDCdloD9bQ2+hqJbbXJ4dDQ7lghO3b93u1aUdpVu/R1gDSrtTvtC+ySVMgeoA0NYe7l XyLA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=BG316rEP; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb3vxqsbamgqeck3opbi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB3VXQSBAMGQECK3OPBI@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 d7sor29334ljg.76.2021.03.04.09.42.06 (Google Transport Security); Thu, 04 Mar 2021 09:42:07 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrb3vxqsbamgqeck3opbi@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=BG316rEP; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb3vxqsbamgqeck3opbi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB3VXQSBAMGQECK3OPBI@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1614879726; cv=pass; d=google.com; s=arc-20160816; b=T7uAXijozuzf72HejuINHJYKxV5v7U0ZS3MVFDqeQ+q8TmvgOfvQoS3JcDVXS3Uz3o yS//cLK/VADI1zJvum+V5/Cmth6dGTv1Q4NnpkhcxscSeOMKIa/EyfG+VmGv0neygPV4 heh7CTxHNfShr+FNPDiRMHRgqZop2GpnKd+TS+vL4jJ+Fp92lFtUEscIn5KKr4uI/bGC iPjQ5FtrIB+9r0Ebs+gBwMmaiFzvF4Ztw3hc+jupjGn+FIjJcAp8O6JKNCFNY3qAPGN1 fHUXKnSQnYfA4zY0Bfql8O+3EGWoZx5Ar2HeNITOaSOKeGiU+VyX5vDi71a7HtA/0JK+ 9KIQ== 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=Pd68VuF6MJOKPqZ9deTh+UbstFZqiv0u6SVpkcf9Ino=; b=tYckBxpj/xzISZwKrnKX21WXHV1fvXcK6tPA77088XyVBFgTzotzktP6sqX1S7yxX0 AAmr4CcAsWbWPvJ+pfE/NGGzWFmOnBzm8JDUAfZGKB0MEIrKK56AJFcG0/FDrQGh6WY4 o8ccm2AQjEAD+Zz4NuicrvjC1AnFw1NurUMFzXeeWKu0Fa2uoJjHuHevFGZ7yV75gq21 /igJE7ylmgRnBxA3lEM71OaTIOseea/FPsK6JHVg0tHjIEKWcLH3/SHYCvwbTbI4POe4 zhiV1hm1yG8WXDLwPWUf8biM3FNfkbk4hfzsmbObZWXJuHCSkLh3sJYfYSGrV3OcQblf NlEA== 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=Pd68VuF6MJOKPqZ9deTh+UbstFZqiv0u6SVpkcf9Ino=; b=BG316rEPRALkfledNjhjfaIi6iUTk4H/fXm/eYCQFRJb6zhJFNA/5PznvkDPTiIust xe3KLhTi+Wg/hJRfGrehiCwNisv3+WBI1hdym65pq0OZ/urbfHV5fxukTcPnxpbBXicP pfautln+Ff/21iahcHd5E3TfATnjNhLCTesaAzHRyH7nrTfCm5KUCYgJnQrUQWG3TQFn z8VrNYFFMXyMqJkbbUOGOgB3+ukrtRhS9ujC30APwfVmvgraucAR+mLrfF2NljOHToOP a1T/k1vT7jB/5xWKPjjgdvQ6SU8/yJtrO1K2rsy/18RbE9ZR5FXhFeKlhU5T4PSvvrV/ j2GA== 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=Pd68VuF6MJOKPqZ9deTh+UbstFZqiv0u6SVpkcf9Ino=; b=gXmfyguSL5F0WOr5U4kDZkxNXsjzKU4mmA0xApxnxDqCM/HKSs00fdjXlHl514XrkR R8k0WcTvNYDBzEe/MdBvjWn1kK3TzvrE5aCwIwoNon0jxEngGOyf9Bpwmi/YVQMMdk03 aEk2iDvxbPiu2OZFCUk8JqIR5lhZBqMLmlH4ko6s8VGc3pRpUjl73zLwUWLS6PVTtjn1 nN8ZXyn7VV7NWg3qL8SjtCjRcNQnaLeCp90jVr5R5xlgMeWXtSOL8nA5vZ9qXJIfocc3 Mdo1gqCeXpogjdNuvCjhszexlvqvEJ+419KlsqH1j5EpdJ/b7BOP0sm0Svz0hptWjWq2 vu3g== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM531xJsrwxjoTvLr9be/42c/oLHWT218PV4bMDHzE9xCzCHxszmSH 6VIKfvT/tnHEAHq31rRwMxU= X-Google-Smtp-Source: ABdhPJxBBX5n+o3ku70jykkOPAY+R1YEOOGXrG99DDXVuLUAubhGSsQJREmfwh83YRBRYB6SCKckpA== X-Received: by 2002:a2e:7317:: with SMTP id o23mr3001264ljc.250.1614879726721; Thu, 04 Mar 2021 09:42:06 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:6d4:: with SMTP id u20ls1669052lff.1.gmail; Thu, 04 Mar 2021 09:42:05 -0800 (PST) X-Received: by 2002:ac2:5103:: with SMTP id q3mr3028680lfb.26.1614879725276; Thu, 04 Mar 2021 09:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614879725; cv=none; d=google.com; s=arc-20160816; b=j3tRj0dHgxdaUUOXqYQ68KKGOwEzhfTQxHiyHqTT5wfmARf2//2bFGKgwJp/mZ1iKY 9s8T4fXSAQccHMiClUWcVXEsCNewQRF7kZeGNqEW8KJHDIj9kZ7MkU3HL1QyBtE9AmvC dYUQ41vFcQ30aoNpGh+hR4xbEiO0SHpiW9i/DexETlj7wsKWii4jFim8BJF6ncWaW3NF T/VF4wwf8gl7BmjktGCwRxbqmvHOujnQmA48AqzsE//gpS78BIlN79YcDNmD7Xuoyvf0 4CxsYvCtLVLbz5Pjmc7oalftdUxba6r24pGiXsdwOeCOJXVZCCpkGC28btGPW3tnlQUi mqLw== 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=ys+ikFARrswOGDiq54GOGg+pdl+GdG23WLTOGpWhLE9TfwZN4fF1g9JOB4smchWue4 7bIAx9ttKKT1hJwA5ws6/sRV9TTxwBPj0YEoYF+kqO3X69JJWU/UtbrBt8knP+GCIEER QUFgbkHc7xsyK0+UOCX45wN3oG9AxxZekvI/dgW2I0IiUzXgEHxH9VPeWpVVWDZ56SpG 3eiSj4MvlZPXJukodUR2ZA3peKdUvj/ZbjMJCbL2k9ePrtan4Ly71P5aDtFPfe4Cl9tE NNNAEgJXZ8m+uaClps1IZdenj0NSxmeWVn3CrueunKWDFgI2XfgZBkdrQue7CaQm4cVB +IQA== 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 m17si9741lfg.0.2021.03.04.09.42.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Mar 2021 09:42:05 -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: ZR0GuW4AX1YfVWpfLZOABr0AURSYpKTjVPQmZjNrySO9OMToQcde/l27rp1diJIriwjsu5AQt3 ipCh4XAmg8xlFf8DId/dfQ7I7XAE46jj5a2zGLAPaz1Ne8Sr+WG0ihw/4jdYTPfgW37TOsVP7g u1Z19MLzH/4Rcm1SCfSxq3SUy1A8TXx2Kp8lSojl2KjXiGesEeflWyIO+iIUYDDvRspwcQsljc f20Ggvp4EQ8PNKci1F5mCAeSF8lhCSG3I+zgq+kzgPHujI9b0XcnFZjVaFllHACn/8esq2THLN 180= X-IronPort-AV: E=Sophos;i="5.81,222,1610438400"; d="scan'208";a="58899587" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 04 Mar 2021 09:42:04 -0800 IronPort-SDR: OX6EDNVUXnm3LGbqBwqkwJxD+wSEgXHqjq/laGzkSti73NRK/GVM4mBe7oSmDL7tuCyc10XAM+ X55Ukxc8hag1LoR1eQQYzQpUVxZ3+cI+3jnXQFE8/ofjZYZe3APzRX1ud4kmBrc6I7JKdtihvr Mmy4w4qs6XKk39ehknfFhMNm7q0xrRMcKLjA//X9ZvC+fSubD0UIHHLVSFQdhWTR+b6MeIiUdb yMgrRUAtak26FJsXsNR6ddZPhnPCYezXmh5FuutbLq+x3uhWJfflAhQ2J9CwRz1vZOAmMm7YRp lqY= From: Vijai Kumar K To: , CC: Vijai Kumar K Subject: [PATCH v3 2/2] Modify hello to demonstrate apt:// without ${PV} Date: Thu, 4 Mar 2021 23:11:37 +0530 Message-ID: <20210304174137.11166-3-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210304174137.11166-1-Vijaikumar_Kanagarajan@mentor.com> References: <20210304174137.11166-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-05.mgc.mentorg.com (147.34.90.205) 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?1693324125011493602?= X-GMAIL-MSGID: =?utf-8?q?1693324125011493602?= 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