Skip to contentSkip to conversation

bbappend SRC_URI restriction request

DISCUSSION [email protected] 3 participants 3 messages Jul 15, 2021 – Jul 16, 2021

lore
Share & tools
lore
#0 lore raw

I'm building in Yocto 3.1.3 with bitbake 1.46.0 and I had a co-worker do a bbappend with this in it

PV = "231"
SRC_URI = "https://github.com/systemd/systemd-bootchart/releases/download/v${PV}/${PN}-${PV}.tar.xz"

now the hard part is this is a append applying over the top of systemd-bootchart_233.bb and since the SRC_URI = is a complete wipe of the value in the bb file its basically doing a forced override.

is it possible to set it up so this throws a warning?  This is something I would think would be very bad in a bbappend file and basically bypasses the bitbake-layers show-overlayed I've been using to detect who has forced an override of whats in poky.

#1 lore raw
Quoted 9 lines · On Thu, Jul 15, 2021 at 4:03 PM <[email protected]> wrote:

I'm building in Yocto 3.1.3 with bitbake 1.46.0 and I had a co-worker do a bbappend with this in it

PV = "231"
SRC_URI = "https://github.com/systemd/systemd-bootchart/releases/download/v${PV}/${PN}-${PV}.tar.xz"

now the hard part is this is a append applying over the top of systemd-bootchart_233.bb and since the SRC_URI = is a complete wipe of the value in the bb file its basically doing a forced override.

is it possible to set it up so this throws a warning? This is something I would think would be very bad in a bbappend file and basically bypasses the bitbake-layers show-overlayed I've been using to detect who has forced an override of whats in poky.

Technically, bbappends are not limited in any way than the main recipe and hence we don't have such tools, have we decided that SRC_URIs can not be overridden but only appended to then such a check would make sense globally, however
if it matters to you perhaps you can think of writing a QA check in insane bbclass perhaps.

Quoted 3 lines
#2 lore raw
In reply to [email protected]
Quoted 1 line · On Fri, 16 Jul 2021 at 00:03, <[email protected]> wrote:

is it possible to set it up so this throws a warning? This is something I would think would be very bad in a bbappend file

Apart from when it's exactly what you want to do, of course. I've definitely written appends which replace a tarball+patches with a git repository.

Quoted 1 line

and basically bypasses the bitbake-layers show-overlayed I've been using to detect who has forced an override of whats in poky.

How does that bypass show-overlayed?

Ross