Skip to contentSkip to conversation

how to un-blacklist a blacklisted recipe?

DISCUSSION Robert P. J. Day 2 participants 9 messages May 25, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

asking what is almost certainly a silly question, but as i'm poring
over the wind river LTS 19 (aka "zeus") developer's guide, i know that WR adds a feature for un-blacklisting blacklisted recipes via the PNWHITELIST variable, but the guide says something quite different in that it suggests that one can clear a blacklist from a recipe by setting the blacklist message to the empty string, as in:

PNBLACKLIST[recipe] = ""

https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_LTS_19_tki1589820771450/page/inj1480988608162.html

um, wut?

oddly, there is no mention of WR's PNWHITELIST feature on that page,
so i assumed that 1) someone forgot to update the guide to mention it, and 2) setting the message to the empty string might be the standard YP way to do it, but i'm pretty sure that won't work.

is there a way to un-blacklist a blacklisted recipe using standard
YP? the reference manual entry for PNBLACKLIST doesn't suggest so:

https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PNBLACKLIST

thoughts?

rday

#1 lore raw

I don't use WR, but setting it to empty works fine for me.

Why do you think it shouldn't work? See
https://git.openembedded.org/openembedded-core/tree/meta/classes/blacklist.bbclass#n18

Quoted 34 lines · Robert P. J. Day

asking what is almost certainly a silly question, but as i'm poring
over the wind river LTS 19 (aka "zeus") developer's guide, i know that WR adds a feature for un-blacklisting blacklisted recipes via the PNWHITELIST variable, but the guide says something quite different in that it suggests that one can clear a blacklist from a recipe by setting the blacklist message to the empty string, as in:

PNBLACKLIST[recipe] = ""

https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_LTS_19_tki1589820771450/page/inj1480988608162.html

um, wut?

oddly, there is no mention of WR's PNWHITELIST feature on that page,
so i assumed that 1) someone forgot to update the guide to mention it, and 2) setting the message to the empty string might be the standard YP way to do it, but i'm pretty sure that won't work.

is there a way to un-blacklist a blacklisted recipe using standard
YP? the reference manual entry for PNBLACKLIST doesn't suggest so:

https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PNBLACKLIST

thoughts?

rday

#4 lore raw

Yes, in local.conf or distro config, both work fine.

Maybe your PNBLACKLIST you're trying to unblacklist is using normal assignment instead of weak one? See
http://git.openembedded.org/meta-openembedded/commit/?id=96a92761c0a1bb2317fa4ea422c32e4473405103

Quoted 10 lines · Robert P. J. Day
Quoted 1 line · Martin Jansa

I don't use WR, but setting it to empty works fine for me.

*where* did you set it to empty? in your local.conf?

Quoted 2 lines

Why do you think it shouldn't work? See

https://git.openembedded.org/openembedded-core/tree/meta/classes/blacklist.bbclass#n18

#5 lore raw
Quoted 3 lines · Martin Jansa

Yes, in local.conf or distro config, both work fine. Maybe your PNBLACKLIST you're trying to unblacklist is using normal assignment instead of weak one? See

i just now determined that that is exactly what is happening --
tried it with nanopb recipe from meta-oe, which contains:

PNBLACKLIST[nanopb] = "Needs forward porting to use python3"

switched that to weak assignment, all good. does that imply that, other than in perhaps exceptional circumstances, *all* blacklisting should use weak assignment?

rday

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 6 lines · Robert P. J. Day
Quoted 3 lines · Martin Jansa

Yes, in local.conf or distro config, both work fine. Maybe your PNBLACKLIST you're trying to unblacklist is using normal assignment instead of weak one? See

Quoted 8 lines

i just now determined that that is exactly what is happening --
tried it with nanopb recipe from meta-oe, which contains:

PNBLACKLIST[nanopb] = "Needs forward porting to use python3"

switched that to weak assignment, all good. does that imply that, other than in perhaps exceptional circumstances, *all* blacklisting should use weak assignment?

never mind, just took a look at the commit which does exactly this.
is it worth submitting a patch to tweak the few hard assignments?

rday

#8 lore raw

Yes, it's worth. Thanks

Quoted 22 lines · Robert P. J. Day
Quoted 6 lines · Robert P. J. Day
Quoted 3 lines · Martin Jansa

Yes, in local.conf or distro config, both work fine. Maybe your PNBLACKLIST you're trying to unblacklist is using normal assignment instead of weak one? See

Quoted 8 lines

i just now determined that that is exactly what is happening --
tried it with nanopb recipe from meta-oe, which contains:

PNBLACKLIST[nanopb] = "Needs forward porting to use python3"

switched that to weak assignment, all good. does that imply that, other than in perhaps exceptional circumstances, *all* blacklisting should use weak assignment?

never mind, just took a look at the commit which does exactly this.
is it worth submitting a patch to tweak the few hard assignments?

rday

#9 lore raw
Quoted 1 line · Martin Jansa

Yes, it's worth. Thanks

done, and submitted. it was just my horrific luck that i was testing
that feature, and randomly grabbed two recipes that used standard assignment. le *sigh* ...

rday