All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] u-boot: Switch to nobranch=1
@ 2023-07-14 16:18 Fabio Estevam
  2023-07-14 16:18 ` [PATCH 2/2] u-boot: Upgrade to 2023.07.02 Fabio Estevam
  2023-07-14 17:53 ` [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1 Alexander Kanavin
  0 siblings, 2 replies; 12+ messages in thread
From: Fabio Estevam @ 2023-07-14 16:18 UTC (permalink / raw)
  To: openembedded-core; +Cc: marex, Fabio Estevam

From: Marek Vasut <marex@denx.de>

U-Boot 2023.07.y tags are not in the master branch, switch to nobranch=1
to be able to pull arbitrary commit from arbitrary branch.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 meta/recipes-bsp/u-boot/u-boot-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 56f9be010793..29beac4c1127 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -14,7 +14,7 @@ PE = "1"
 # repo during parse
 SRCREV = "05aa6516c6bb419d01d69fac457c0de563bfd694"
 
-SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
+SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;nobranch=1"
 
 S = "${WORKDIR}/git"
 B = "${WORKDIR}/build"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/2] u-boot: Upgrade to 2023.07.02
  2023-07-14 16:18 [PATCH 1/2] u-boot: Switch to nobranch=1 Fabio Estevam
@ 2023-07-14 16:18 ` Fabio Estevam
  2023-07-14 17:53 ` [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1 Alexander Kanavin
  1 sibling, 0 replies; 12+ messages in thread
From: Fabio Estevam @ 2023-07-14 16:18 UTC (permalink / raw)
  To: openembedded-core; +Cc: marex, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

Upgrade to U-Boot 2023.07.02.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 meta/recipes-bsp/u-boot/u-boot-common.inc                       | 2 +-
 .../{u-boot-tools_2023.07.bb => u-boot-tools_2023.07.02.bb}     | 0
 .../u-boot/{u-boot_2023.07.bb => u-boot_2023.07.02.bb}          | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-bsp/u-boot/{u-boot-tools_2023.07.bb => u-boot-tools_2023.07.02.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2023.07.bb => u-boot_2023.07.02.bb} (100%)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 29beac4c1127..ae9a7e6df143 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -12,7 +12,7 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "05aa6516c6bb419d01d69fac457c0de563bfd694"
+SRCREV = "83cdab8b2c6ea0fc0860f8444d083353b47f1d5c"
 
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;nobranch=1"
 
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2023.07.bb b/meta/recipes-bsp/u-boot/u-boot-tools_2023.07.02.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-tools_2023.07.bb
rename to meta/recipes-bsp/u-boot/u-boot-tools_2023.07.02.bb
diff --git a/meta/recipes-bsp/u-boot/u-boot_2023.07.bb b/meta/recipes-bsp/u-boot/u-boot_2023.07.02.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2023.07.bb
rename to meta/recipes-bsp/u-boot/u-boot_2023.07.02.bb
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-14 16:18 [PATCH 1/2] u-boot: Switch to nobranch=1 Fabio Estevam
  2023-07-14 16:18 ` [PATCH 2/2] u-boot: Upgrade to 2023.07.02 Fabio Estevam
@ 2023-07-14 17:53 ` Alexander Kanavin
  2023-07-14 21:37   ` Tom Rini
  1 sibling, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2023-07-14 17:53 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: openembedded-core, marex, Fabio Estevam

It's not in master branch, but it is in a branch, so please do not use
nobranch, and just adjust the branch parameter together with the
version update:
https://source.denx.de/u-boot/u-boot/-/commit/83cdab8b2c6ea0fc0860f8444d083353b47f1d5c

Alex


On Fri, 14 Jul 2023 at 18:18, Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Marek Vasut <marex@denx.de>
>
> U-Boot 2023.07.y tags are not in the master branch, switch to nobranch=1
> to be able to pull arbitrary commit from arbitrary branch.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  meta/recipes-bsp/u-boot/u-boot-common.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> index 56f9be010793..29beac4c1127 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> @@ -14,7 +14,7 @@ PE = "1"
>  # repo during parse
>  SRCREV = "05aa6516c6bb419d01d69fac457c0de563bfd694"
>
> -SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
> +SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;nobranch=1"
>
>  S = "${WORKDIR}/git"
>  B = "${WORKDIR}/build"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#184273): https://lists.openembedded.org/g/openembedded-core/message/184273
> Mute This Topic: https://lists.openembedded.org/mt/100144566/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-14 17:53 ` [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1 Alexander Kanavin
@ 2023-07-14 21:37   ` Tom Rini
  2023-07-15  4:56     ` Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2023-07-14 21:37 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Fabio Estevam, openembedded-core, marex, Fabio Estevam

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

On Fri, Jul 14, 2023 at 07:53:03PM +0200, Alexander Kanavin wrote:

> It's not in master branch, but it is in a branch, so please do not use
> nobranch, and just adjust the branch parameter together with the
> version update:
> https://source.denx.de/u-boot/u-boot/-/commit/83cdab8b2c6ea0fc0860f8444d083353b47f1d5c

Won't this just make more churn later? The v2023.10 tag will be back on
master (and we'll assume I don't goof it up), but if any of the "maybe
we do an LTS? Hmm?" work comes through, then we start having to change
things there, and then maybe can't as easily share inc files between
something that tracks LTS and something that doesn't.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-14 21:37   ` Tom Rini
@ 2023-07-15  4:56     ` Alexander Kanavin
  2023-07-15 11:14       ` Marek Vasut
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2023-07-15  4:56 UTC (permalink / raw)
  To: Tom Rini; +Cc: Fabio Estevam, Fabio Estevam, marex, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Then we’ll consider options, such as moving variable bits out of .inc or
introducing a variable that strips last number from PV. I would want to
avoid recipes fetching from dangling branch-less commits in core. The
commit being on a branch is a QA check by the fetcher.

Alex

On Sat 15. Jul 2023 at 0.37, Tom Rini <trini@konsulko.com> wrote:

> On Fri, Jul 14, 2023 at 07:53:03PM +0200, Alexander Kanavin wrote:
>
> > It's not in master branch, but it is in a branch, so please do not use
> > nobranch, and just adjust the branch parameter together with the
> > version update:
> >
> https://source.denx.de/u-boot/u-boot/-/commit/83cdab8b2c6ea0fc0860f8444d083353b47f1d5c
>
> Won't this just make more churn later? The v2023.10 tag will be back on
> master (and we'll assume I don't goof it up), but if any of the "maybe
> we do an LTS? Hmm?" work comes through, then we start having to change
> things there, and then maybe can't as easily share inc files between
> something that tracks LTS and something that doesn't.
>
> --
> Tom
>

[-- Attachment #2: Type: text/html, Size: 1641 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-15  4:56     ` Alexander Kanavin
@ 2023-07-15 11:14       ` Marek Vasut
  2023-07-15 13:00         ` Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Marek Vasut @ 2023-07-15 11:14 UTC (permalink / raw)
  To: Alexander Kanavin, Tom Rini
  Cc: Fabio Estevam, Fabio Estevam, openembedded-core

On 7/15/23 06:56, Alexander Kanavin wrote:
> Then we’ll consider options, such as moving variable bits out of .inc or
> introducing a variable that strips last number from PV. I would want to
> avoid recipes fetching from dangling branch-less commits in core. The
> commit being on a branch is a QA check by the fetcher.

What difference does it make whether the commit is in a branch or not , 
as long as it is referenced ?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-15 11:14       ` Marek Vasut
@ 2023-07-15 13:00         ` Alexander Kanavin
  2023-07-16  1:01           ` Marek Vasut
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2023-07-15 13:00 UTC (permalink / raw)
  To: Marek Vasut; +Cc: Fabio Estevam, Fabio Estevam, Tom Rini, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

If you don’t list which branch a commit is on, it may be not in a branch at
all and not intended for downstream consumption, or on a private or
personal branch which is also not intended for private consumption.
Requiring to name the branch guards us from either possibility, and means I
do not have to go and check that manually or trust you blindly.

Alex

On Sat 15. Jul 2023 at 14.14, Marek Vasut <marex@denx.de> wrote:

> On 7/15/23 06:56, Alexander Kanavin wrote:
> > Then we’ll consider options, such as moving variable bits out of .inc or
> > introducing a variable that strips last number from PV. I would want to
> > avoid recipes fetching from dangling branch-less commits in core. The
> > commit being on a branch is a QA check by the fetcher.
>
> What difference does it make whether the commit is in a branch or not ,
> as long as it is referenced ?
>

[-- Attachment #2: Type: text/html, Size: 1279 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-15 13:00         ` Alexander Kanavin
@ 2023-07-16  1:01           ` Marek Vasut
  2023-07-16  5:12             ` Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Marek Vasut @ 2023-07-16  1:01 UTC (permalink / raw)
  To: Alexander Kanavin
  Cc: Fabio Estevam, Fabio Estevam, Tom Rini, openembedded-core

On 7/15/23 15:00, Alexander Kanavin wrote:
> If you don’t list which branch a commit is on, it may be not in a branch at
> all

That itself is not a problem as long as the commit is referenced, right?

> and not intended for downstream consumption

We do know that specific U-Boot commit is intended for consumption.

>, or on a private or
> personal branch which is also not intended for private consumption.

This is also not applicable here.

> Requiring to name the branch guards us from either possibility, and means I
> do not have to go and check that manually or trust you blindly.

This protection is really weak, this check fails on every single 
possibly bogus commit which is already on any random branch, so what is 
the gain here really ?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-16  1:01           ` Marek Vasut
@ 2023-07-16  5:12             ` Alexander Kanavin
  2023-07-16 15:03               ` Tom Rini
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2023-07-16  5:12 UTC (permalink / raw)
  To: Marek Vasut; +Cc: Fabio Estevam, Fabio Estevam, Tom Rini, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

On Sun 16. Jul 2023 at 4.01, Marek Vasut <marex@denx.de> wrote:

> This protection is really weak, this check fails on every single
> possibly bogus commit which is already on any random branch, so what is
> the gain here really ?



The gain is that the branch name is seen in the recipe and we can make the
judgement about it. You wouldn’t be able to switch from main to
my-ugly-hacks or dangling commit without having to explain that. With
nobranch the branch name disappears and this opens the door for bogus
commits. You may reassure us that right now the commit is not bogus, this
may not hold in future revision updates or if the branch is force pushed on
your side.

Alex

[-- Attachment #2: Type: text/html, Size: 1313 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-16  5:12             ` Alexander Kanavin
@ 2023-07-16 15:03               ` Tom Rini
  2023-07-16 17:19                 ` Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2023-07-16 15:03 UTC (permalink / raw)
  To: Alexander Kanavin
  Cc: Marek Vasut, Fabio Estevam, Fabio Estevam, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

On Sun, Jul 16, 2023 at 08:12:42AM +0300, Alexander Kanavin wrote:
> On Sun 16. Jul 2023 at 4.01, Marek Vasut <marex@denx.de> wrote:
> 
> > This protection is really weak, this check fails on every single
> > possibly bogus commit which is already on any random branch, so what is
> > the gain here really ?
> 
> The gain is that the branch name is seen in the recipe and we can make the
> judgement about it. You wouldn’t be able to switch from main to
> my-ugly-hacks or dangling commit without having to explain that. With
> nobranch the branch name disappears and this opens the door for bogus
> commits. You may reassure us that right now the commit is not bogus, this
> may not hold in future revision updates or if the branch is force pushed on
> your side.

Does bitbake have any infrastructure atm for dealing with signed tags?
I'm fine with (for now, as LTS is a hope not a feature) keeping the
branch portion.  But if it was possible to say it must be a tag signed
by X key, that would help a little with the concern about moving to some
more arbitrary commit.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-16 15:03               ` Tom Rini
@ 2023-07-16 17:19                 ` Alexander Kanavin
  2023-07-16 17:20                   ` Tom Rini
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2023-07-16 17:19 UTC (permalink / raw)
  To: Tom Rini; +Cc: Marek Vasut, Fabio Estevam, Fabio Estevam, openembedded-core

On Sun, 16 Jul 2023 at 17:03, Tom Rini <trini@konsulko.com> wrote:
> Does bitbake have any infrastructure atm for dealing with signed tags?
> I'm fine with (for now, as LTS is a hope not a feature) keeping the
> branch portion.  But if it was possible to say it must be a tag signed
> by X key, that would help a little with the concern about moving to some
> more arbitrary commit.

As far as I know, git fetcher doesn't verify tags. They don't even
have to be signed, checking that a tag specified in a recipe matches a
commit id specified in a recipe would also guard against unwanted
commits, but the fetcher doesn't do that check either.

Alex


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1
  2023-07-16 17:19                 ` Alexander Kanavin
@ 2023-07-16 17:20                   ` Tom Rini
  0 siblings, 0 replies; 12+ messages in thread
From: Tom Rini @ 2023-07-16 17:20 UTC (permalink / raw)
  To: Alexander Kanavin
  Cc: Marek Vasut, Fabio Estevam, Fabio Estevam, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

On Sun, Jul 16, 2023 at 07:19:56PM +0200, Alexander Kanavin wrote:
> On Sun, 16 Jul 2023 at 17:03, Tom Rini <trini@konsulko.com> wrote:
> > Does bitbake have any infrastructure atm for dealing with signed tags?
> > I'm fine with (for now, as LTS is a hope not a feature) keeping the
> > branch portion.  But if it was possible to say it must be a tag signed
> > by X key, that would help a little with the concern about moving to some
> > more arbitrary commit.
> 
> As far as I know, git fetcher doesn't verify tags. They don't even
> have to be signed, checking that a tag specified in a recipe matches a
> commit id specified in a recipe would also guard against unwanted
> commits, but the fetcher doesn't do that check either.

That's what I figured, thanks.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-16 17:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14 16:18 [PATCH 1/2] u-boot: Switch to nobranch=1 Fabio Estevam
2023-07-14 16:18 ` [PATCH 2/2] u-boot: Upgrade to 2023.07.02 Fabio Estevam
2023-07-14 17:53 ` [OE-core] [PATCH 1/2] u-boot: Switch to nobranch=1 Alexander Kanavin
2023-07-14 21:37   ` Tom Rini
2023-07-15  4:56     ` Alexander Kanavin
2023-07-15 11:14       ` Marek Vasut
2023-07-15 13:00         ` Alexander Kanavin
2023-07-16  1:01           ` Marek Vasut
2023-07-16  5:12             ` Alexander Kanavin
2023-07-16 15:03               ` Tom Rini
2023-07-16 17:19                 ` Alexander Kanavin
2023-07-16 17:20                   ` Tom Rini

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.