Skip to contentSkip to conversation

Anyone using regex in ASSUME_PROVIDED?

DISCUSSION Richard Purdie 1 participant 1 message Jun 23, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

Back in 2009, regex support was added in ASSUME_PROVIDED:
https://git.openembedded.org/bitbake/commit/lib/bb/taskdata.py?id=efb0474231ed286073a5a5904094320da8cab28d

Looking at this now, I'm thinking its a bad idea.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=13893

shows that adding:

DEPENDS += "texinfo-nativejunk-that-does-not-exist"

gives no errors at all.

The code can't know whether a given entry in ASSUME_PROVIDED is a regex or not.

Plan B is that we test for anchors in the string and only treat as a regex if they're present.

I'm wondering if we can remove this code entirely though.

Does anyone use regexs in ASSUME_PROVIDED?

Cheers,

Richard