public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] meta-isar: hello: Use <orig-version> in CHANGELOG_V
Date: Wed, 29 Apr 2020 08:27:24 +0200	[thread overview]
Message-ID: <20200429082724.4b71ad8b@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <aa7aeaca-6fc9-b21f-dce5-d23fa66d1bdb@siemens.com>

Am Wed, 29 Apr 2020 08:10:07 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:

> On 29.04.20 07:54, Henning Schild wrote:
> > Am Tue, 28 Apr 2020 18:01:53 +0200
> > schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >   
> >> On 28.04.20 18:00, Henning Schild wrote:  
> >>> I think with this we might be able to put everything into one .bb.
> >>> At the moment we have the inc plus two bbs that have PV in their
> >>> names.
> >>>
> >>> Taking PV from a bb filename is wrong when the inc uses
> >>> <orig-version>.  
> >>
> >> "We cannot consolidate the recipes carrying the upstream
> >> versions, though, as that information needs to be propagated into
> >> ${S}."  
> > 
> > I read that but did not fully understand it. If we can not do that
> > or fully do that, does that mean the tracking of "<orig-version>"
> > can not be fully implemented? Maybe we can fill the gaps or
> > document them. To me it sounds like a "half-feature" to introduce
> > orig-version as proposed.  
> 
> We have two problems to solve here:
> 
>   - appending to the exact debian version our own suffix when
> patching it
>   - tracking the upstream version under which the source package is
>     extracted to so that ${S} is set correctly
> 
> The former is addressed by my patch to debianize, for the latter I'm 
> lacking a good idea. However, that is generally not a bit issue
> because Debian does less frequently the update of the major version,
> often only when switching its own major release. Also, patches you
> carry are more likely to require adjustments anyway in that case.
> 
> The problem for setting S is not the version extraction like we do
> for the changelog. It is that this has to happen rather early - but
> after recipe parsing where it normally happens. It would require to
> rewrite do_apt_fetch so that it identifies the path and sets S,
> somehow.

But S can be anything, it is a temporary directory ... afaik.

We have S="${WORKDIR}/git", why not have
S="${WORKDIR}/${PN}-orig-version" ... really that string and no
substitution later on. Or even PN-42-nobody-cares

I might be wrong, got a little lost in S and D in isar and still have
those gentoo meanings in my head. But i guess it should be the same as
in gentoo.

Henning

> Jan
> 
> > 
> > Henning
> >   
> >> Jan
> >>  
> >>> Henning
> >>>
> >>> On Thu, 23 Apr 2020 19:29:11 +0200
> >>> Jan Kiszka <jan.kiszka@siemens.com> wrote:
> >>>      
> >>>> From: Jan Kiszka <jan.kiszka@siemens.com>
> >>>>
> >>>> Make use of the new placeholder to append "+isar" to the original
> >>>> version. We cannot consolidate the recipes carrying the upstream
> >>>> versions, though, as that information needs to be propagated into
> >>>> ${S}.
> >>>>
> >>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> >>>> ---
> >>>>
> >>>> Depends on
> >>>> https://groups.google.com/d/msgid/isar-users/ebf1ab25-74ea-b3ba-4c48-2ecac873c6f7%40siemens.com
> >>>>
> >>>>    meta-isar/recipes-app/hello/hello.inc | 2 +-
> >>>>    1 file changed, 1 insertion(+), 1 deletion(-)
> >>>>
> >>>> diff --git a/meta-isar/recipes-app/hello/hello.inc
> >>>> b/meta-isar/recipes-app/hello/hello.inc index c5f322bb..d81085d8
> >>>> 100644 --- a/meta-isar/recipes-app/hello/hello.inc
> >>>> +++ b/meta-isar/recipes-app/hello/hello.inc
> >>>> @@ -11,7 +11,7 @@ inherit dpkg
> >>>>    SRC_URI = "apt://${PN}"
> >>>>    
> >>>>    MAINTAINER = "isar-users <isar-users@googlegroups.com>"
> >>>> -CHANGELOG_V = "${PV}-99+isar"
> >>>> +CHANGELOG_V = "<orig-version>+isar"
> >>>>    
> >>>>    do_prepare_build() {
> >>>>    	deb_add_changelog  
> >>>      
> >>
> >>  
> >   
> 


  reply	other threads:[~2020-04-29  6:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23 17:29 Jan Kiszka
2020-04-28 16:00 ` Henning Schild
2020-04-28 16:01   ` Jan Kiszka
2020-04-29  5:54     ` Henning Schild
2020-04-29  6:10       ` Jan Kiszka
2020-04-29  6:27         ` Henning Schild [this message]
2020-04-29  6:37           ` Henning Schild
2020-04-29  6:51             ` Henning Schild
2020-06-05 17:46               ` Henning Schild
2020-06-05 17:55                 ` Jan Kiszka
2020-06-06  8:10                   ` Henning Schild
2020-06-06  8:37                   ` Baurzhan Ismagulov
2020-06-08  7:59                     ` Jan Kiszka
2020-05-07 20:09         ` Baurzhan Ismagulov
2020-05-08  6:05           ` Jan Kiszka
2020-05-08  6:13             ` Baurzhan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200429082724.4b71ad8b@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox