From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6935855593929310208 X-Received: by 2002:a05:620a:22d0:: with SMTP id o16mr4569652qki.376.1617216794871; Wed, 31 Mar 2021 11:53:14 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:620a:a98:: with SMTP id v24ls1863593qkg.6.gmail; Wed, 31 Mar 2021 11:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi3qg2O5EkYmWUTVi9tkTV5T4Y1wfI5YXCb+3R3JLiNWl2araWb8JD3ttdlya+q/EaWbWa X-Received: by 2002:a05:620a:126d:: with SMTP id b13mr4772808qkl.122.1617216794351; Wed, 31 Mar 2021 11:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617216794; cv=none; d=google.com; s=arc-20160816; b=XLpwUf6uGu7cOzjWtVYpQ5SKgBsyht4Va887gMTGcpwxyKgwB/baUfccFe9Qd4W9Xa wJMbzn88HQjWFOj/WnnjIagDKTuRX0naRItAWEfGEIougrTyOPaXXU4SiYLUQYzhS7wp whbruknVapiEuJWghhx89AIgFq1ZJIhq7tVx+0Axi1+UpzwSc5gqMV36qDeyFK14Y5ZI l7iG11YGJEXTv/JVFFQS315HD7LestuDkHN2/zQqUnaYF17NZ/JG89bbERZbbYWDewsl 06YxaBNpYi0Ug7QhqcdWe+qC5YSuaT22eS1PCwmjUySpytt+ge7lEoz8GTyLNMcX1MwE Y/Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=IDa4bleqyuVa3SZafc/1zXXZ/4XUrCHYoQGa8XrvsOk=; b=yKjwBbpEsXHXfEN1fIgDSPKT4ILaDqcOMzTTfXirERKIAp9XDdWseVu52y2z0vgTGG JdNUtjySek5dNTpXr84XK+wTTdp5OLTAstwEvxsoXFI0+efdxfEk0bajm/cHLia5lODf +ki10dduH6lcQM9u7/ZJGxRR4nZt2z7a6mhgt2H1HLYKMV6QWcecFUZBA9F19qOn22oR lRtQItf+yYd6UPcegq3NKehsBVHgZUy8UO92Y5w5Ll4N6+ZaYbwJx11AIwm7RCQwIhoS 4f5UhyGCUtbmkAZTuyOOBs53s62S8kgk9/595iDcLacMLRZ131bwjjJ7kh7Ay9OAfO7T YHdw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I04Pa+kv; spf=pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=vijaikumar.kanagarajan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com. [2607:f8b0:4864:20::732]) by gmr-mx.google.com with ESMTPS id a15si444301qtn.4.2021.03.31.11.53.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Mar 2021 11:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) client-ip=2607:f8b0:4864:20::732; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I04Pa+kv; spf=pass (google.com: domain of vijaikumar.kanagarajan@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=vijaikumar.kanagarajan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qk1-x732.google.com with SMTP id x11so2195462qkp.11 for ; Wed, 31 Mar 2021 11:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IDa4bleqyuVa3SZafc/1zXXZ/4XUrCHYoQGa8XrvsOk=; b=I04Pa+kvUASnbRWP6wd1bmJkVjvzLGihYbjWiKhjtMqOkAtClAZSRgvFWZetGu5puP /C9H6CAGTrjtbjZIoTGW9p2iZ0enNJziUEnc2HRNJnn0OxY2iiEgsNGbkI+qdT+Pxi5D gL6T2Tx+HYflgpqg41tx1AZtuB7JOEqEY0sjZpIBXSwY1TlCP7Y0kacr6+BILi2Gx3/V 9O/wjK7+BFKdp/TawZDKhrLNh9N0JE29Wyn1UaNFv0LqTGdLKlHTUezpTJjvhkz1UQye iXrfqWaJLq9qqMe1c2Lh0mJiIfj6z9UVj4cQ1rJePXrhpmF5G8gKWww2t9NdAmmR6k6F WikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IDa4bleqyuVa3SZafc/1zXXZ/4XUrCHYoQGa8XrvsOk=; b=ARrBxAU4yeBkPiKWrLH1SdKrB+EvediScDQH56bTNdxM1+hzjupVXBXw//FFzsYs6w Sx9e/FIB10H+ntqCIePL/N99NHMGgIZlmGqKJwHC2eETGTV9LcfGvx/RH6x+HtsgS7OT 2BG9oAkGCJeZTag9zPUpKcRCtKecywOFGJxAjz+gygZVGaMj0NQSyiTdS4JMg5RS7zwy WxS1TQsIPvTxpd8MEgGohzISvcsiJl3GAk00m8X8LxuFp7Vt0+CKmLSwL6EOewKICE5g hpIavO4dv3CkBccS1AtHc3HAIGaXz7uP6NSfpQWasAfJx65S+jS8SH/89PKC4IH+3rmv Occg== X-Gm-Message-State: AOAM532YVnb4TsJE1ia0bWdFGCp312hX309b1IoYg2akSASFfW+cU6ZS Rh0iZpUXpdHLfsDWi5zq303fWHoAKCK9B8/Cdw8= X-Received: by 2002:a05:620a:20d6:: with SMTP id f22mr4474191qka.104.1617216794004; Wed, 31 Mar 2021 11:53:14 -0700 (PDT) MIME-Version: 1.0 References: <20210331063235.6877-1-Vijaikumar_Kanagarajan@mentor.com> <20210331103433.34d5414b@md1za8fc.ad001.siemens.net> In-Reply-To: <20210331103433.34d5414b@md1za8fc.ad001.siemens.net> From: vijai kumar Date: Thu, 1 Apr 2021 00:23:02 +0530 Message-ID: Subject: Re: [PATCH v4 0/2] Custom ${S} series To: Henning Schild Cc: Vijai Kumar K , Baurzhan Ismagulov , Jan Kiszka , isar-users Content-Type: text/plain; charset="UTF-8" X-TUID: 4OjHtQlg7icW On Wed, Mar 31, 2021 at 2:04 PM Henning Schild wrote: > > Am Wed, 31 Mar 2021 13:07:17 +0530 > schrieb vijai kumar : > > > Hi, > > > > On Wed, Mar 31, 2021 at 12:03 PM Vijai Kumar K > > wrote: > > > > > > Changes since V3: > > > - Fix build issue with qemumipsel-stretch. > > > (Need to pass --only source with --print-uris, since we are dealing > > > with source package) > > > > This case is something interesting. If you see the hello package in > > [1], There are 2 versions of the binary package. > > > > All x86 and ARM architectures have version "2.10-1+deb9u1" > > Rest of the architectures like mips, s390 and ppc have "2.10-1+b1" > > That is weird on its own. But we probably had this problem even before > this series. > Do those new sources produce working packages for those other arches or > do we really need to find the other sources? It does produce a working package. At least for hello. > > > Since we are using --only-source option to download, apt skips the > > binary to source translation and directly fetches the latest source. > > Which is "2.10-1+deb9u1". That is how it could be done, since the > > recipe here is just the debian source file name. > > But if you see by apt-cache policy the installation candidate for > > mipsel is 2.10-1+b1 and the corresponding source version is "2.10-1". > > Maybe we can also download that binary, maybe not store it, to make apt > double check against the binary. Jan found preferences not working for > apt-get source, maybe his case would also benefit from that. What i > understand is that "--only-source" can maybe be skipped to download > binary and source and get a cross check. For that we need to know the binary package it generates. Not all source packages produce binary packages with the same name. I still believe using --only-source is right, if the SRC_URI of the recipe is expected to point to the source package name. Which is by the way is the case. This also acts as a guard, in case the user incorrectly specifies the binary package name in SRC_URI. In such a case do_apt_fetch would simply fail. > > > Ideally we should pull 2.10-1 instead of 2.10-1+deb9u1 for mipsel. > > That is what the binary is available for? > > We modify the package anyways, i guess it is important to produce a > working package, not too much "taking old sources" because upstream did > not build new ones for that arch. I agree here. Some other packages with similar scenarios are mentioned below(not a complete list). 1. https://packages.debian.org/stretch/zstd 2. https://packages.debian.org/stretch/zsh-static 3. https://packages.debian.org/stretch/apt 4. https://packages.debian.org/stretch/busybox The updated version comes in via the security feed. Where only x86 and arm based binaries are uploaded. This FAQ[1], explains why it is missing for certain archs. I guess it should be okay to use the new source to generate the debs. Maybe we could capture this entire scenario in a doc. I could amend the PR to add some info in one of the docs. [1] https://www.debian.org/security/faq#archismissing Thanks, Vijai Kumar K > > Henning > > > I know a non-maintainer upload will have a different binary package > > version (+bX), but will point to the same source. > > Here there are 2 different sources for different archs. > > I am not sure if there are other such packages which have a similar > > scenario. Just wanted to gather info on it here. > > > > [1] https://packages.debian.org/stretch/hello > > > > Thanks, > > Vijai Kumar K > > > > > > > > CI build succeeded: > > > http://ci.isar-build.org:8080/job/isar_vkk_devel/95/ > > > > > > Changes since V2: > > > - Introduce P2 to demonstrate apt:// without ${PV} set. > > > - Address review comment from Henning. > > > - Fix issue where do_apt_unpack is triggered for non apt:// > > > SRC_URIs. > > > > > > CI build going on: > > > http://ci.isar-build.org:8080/job/isar_vkk_devel/93/ > > > > > > Changes since V1: > > > > > > - Introduce a separate do_apt_unpack task > > > > > > Vijai Kumar K (2): > > > dpkg-base: Introduce do_apt_unpack > > > Modify hello to demonstrate apt:// without ${PV} > > > > > > .../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 ----- > > > meta/classes/dpkg-base.bbclass | 29 > > > ++++++++++++++++--- 4 files changed, 25 insertions(+), 23 > > > 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 > > > > > > -- > > > 2.17.1 > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "isar-users" group. To unsubscribe from this group and stop > > > receiving emails from it, send an email to > > > isar-users+unsubscribe@googlegroups.com. To view this discussion on > > > the web visit > > > https://groups.google.com/d/msgid/isar-users/20210331063235.6877-1-Vijaikumar_Kanagarajan%40mentor.com. > > > >