All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: colin walters <walters@verbum.org>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] master/main branch renaming and bitbake
Date: Thu, 13 May 2021 23:48:24 +0100	[thread overview]
Message-ID: <8b4047d54cf840b1b7ed06758c18ffcb725d151d.camel@linuxfoundation.org> (raw)
In-Reply-To: <720f0aff-891d-4186-b637-4b5e2ba0a598@www.fastmail.com>

On Thu, 2021-05-13 at 17:33 -0400, colin walters wrote:
> 
> On Thu, May 13, 2021, at 4:08 PM, Richard Purdie wrote:
> > 
> > The advice to anyone hitting this issue is to add in the correct branch
> > to the SRC_URI. It is simple and easy to do, can be in bbappends 
> > or even changed via anonymous python and similar if necessary. We've already
> > found the issue with several core recipes, we simply updated them and most 
> > users didn't notice. I would even likely take that kind of change into older
> > otherwise unmaintained branches and I think I did so in at least one case in
> > the past.
> 
> What I am uncertain about is: how quickly does that translate into us being 
> able to remove the old branch?

My personal opinion is see the patches updating the SRC_URIs make the branches
given we know about this one and then do it.

> We're not the first project to do this and we won't be the last, so having a 
> solution here will be good.

I'm suggesting people update the recipes.

> Hmm actually I notice systemd upstream did the rename a while ago and they're 
> not carrying a `master` branch.  What's the difference between systemd and ostree here?
> 
> Is it the use of `SRCREV`?  Or no, in the systemd case is it because it's set to a tag?
> https://github.com/openembedded/openembedded-core/blob/2621dbbc1181808f18ca4ae79408d0d5b557670f/meta/recipes-core/systemd/systemd.inc#L18
> ostree is also using tags, is the recipe just broken in not using tags?

No:

SRCBRANCH = "v247-stable"
SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=git;branch=${SRCBRANCH}

i.e. there is a specific branch specified.

> > I appreciate the tooling could do all kinds of magic things. I have a strong
> > preference for not adding magic into it, or over complicating it, it is already
> > horrendously complicated and a nightmare to test. I appreciate nobody believes
> > me, I only do my best to maintain it. The code is here for anyone interested:
> > 
> > http://git.yoctoproject.org/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/git.py
> 
> Yeah, understood.
> 
> > I'd also note you can add ;nobranch=1 to the urls or ;usehead=1. Those do
> > have side effects, I will not recommend them, or accept them for general use
> > in layers I maintain, they're considered developer options. I was reminded
> > recently that we have seen bugs the branch parameter has caught where a 
> > revision was not where we thought it was so these do catch real world issues.
> 
> Well I hope the result of this discussion is a recommended best practice at least.
> If recommending using a tag works, that seems good to me.

People should add/update the branch in SRC_URI.

Cheers,

Richard



  reply	other threads:[~2021-05-13 22:48 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12 20:34 master/main branch renaming and bitbake colin walters
2021-05-12 20:40 ` [OE-core] " Alexander Kanavin
2021-05-12 20:43   ` colin walters
2021-05-12 21:17     ` Alexander Kanavin
2021-05-12 21:22       ` Alexander Kanavin
2021-05-13  0:11         ` Andre McCurdy
2021-05-13  7:08           ` Richard Purdie
2021-05-13 13:27             ` colin walters
2021-05-13 13:36               ` Bruce Ashfield
2021-05-13 19:02                 ` Benjamin Gilbert
2021-05-13 19:03                   ` [OE-core] " Bruce Ashfield
2021-05-13 19:24                     ` Benjamin Gilbert
2021-05-13 19:34                       ` [OE-core] " Bruce Ashfield
2021-05-13 19:36                       ` Alexander Kanavin
2021-05-13 19:44                         ` Konrad Weihmann
2021-05-13 19:54                         ` Benjamin Gilbert
2021-05-13 20:02                           ` [OE-core] " Konrad Weihmann
2021-05-13 20:06                           ` Alexander Kanavin
2021-05-13 20:34                             ` Benjamin Gilbert
2021-05-13 21:04                               ` [OE-core] " Alexander Kanavin
2021-05-13 20:08               ` Richard Purdie
2021-05-13 20:41                 ` Benjamin Gilbert
2021-05-13 21:33                 ` [OE-core] " colin walters
2021-05-13 22:48                   ` Richard Purdie [this message]
2021-05-19 16:53                     ` Andre McCurdy
2021-05-13 14:25             ` Peter Kjellerstedt
2021-05-13 20:12               ` Richard Purdie
2021-05-12 20:41 ` Martin Jansa

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=8b4047d54cf840b1b7ed06758c18ffcb725d151d.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=walters@verbum.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.