Skip to contentSkip to conversation

what means "this=ignored" in the context of SRC_URI/patch?

DISCUSSION Robert P. J. Day 2 participants 5 messages Dec 30, 2012 – Dec 31, 2012

lore
Share & tools
lore
#0 lore raw

the current bitbake manual, in section 3.2, "Local file fetcher",
has an example of:

SRC_URI= "file://relativefile.patch;this=ignored"

i've poked around and checked logs and i have no idea what "this=ignored" means. is it an earlier equivalent of "apply=no"? i've never run across it being used anywhere.

and while we're on the topic, i'm assuming adding "apply=yes" is
utterly redundant, yes? even though there are a bunch of them sprinkled throughout some recipes in oe-core.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 4 lines · Robert P. J. Day

i've poked around and checked logs and i have no idea what "this=ignored" means. is it an earlier equivalent of "apply=no"? i've never run across it being used anywhere.

Never heard of such a thing, personally.

and while we're on the topic, i'm assuming adding "apply=yes" is

Quoted 3 lines

utterly redundant, yes? even though there are a bunch of them sprinkled throughout some recipes in oe-core.

As has been mentioned before, apply=yes is only implicit and automatic when the filename ends in .{patch,diff}{,.gz}.

Signature · 1 line
Christopher Larson
#2 lore raw
Quoted 7 lines · Chris Larson

On Sun, Dec 30, 2012 at 3:45 PM, Robert P. J. Day <[email protected]> wrote:
i've poked around and checked logs and i have no idea what "this=ignored" means.  is it an earlier equivalent of "apply=no"? i've never run across it being used anywhere.

Never heard of such a thing, personally.

ok, so that can be safely removed from the bitbake manual.

Quoted 6 lines

  and while we're on the topic, i'm assuming adding "apply=yes" is utterly redundant, yes?  even though there are a bunch of them sprinkled throughout some recipes in oe-core.

As has been mentioned before, apply=yes is only implicit and automatic when the filename ends in .{patch,diff}{,.gz}.

while i'm not a python expert, i'm not convinced. here's the code
from patch.bbclass:

def patch_path(url, fetch, workdir):
"""Return the local path of a patch, or None if this isn't a patch"""

local = fetch.localpath(url)
base, ext = os.path.splitext(os.path.basename(local)) if ext in ('.gz', '.bz2', '.Z'):
local = os.path.join(workdir, base)
ext = os.path.splitext(base)[1]

urldata = fetch.ud[url]
if "apply" in urldata.parm:
apply = oe.types.boolean(urldata.parm["apply"]) if not apply:
return
elif ext not in (".diff", ".patch"):
return
... snip ...

i notice that the value of "apply" is tested *before* the final test for a valid patch suffix of {.patch,.diff}, which leaves open the possibility of something weird or obscure happening there? i have no idea what that might be, i'm just observing the order of those tests.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw
Quoted 5 lines · Robert P. J. Day

i notice that the value of "apply" is tested *before* the final test for a valid patch suffix of {.patch,.diff}, which leaves open the possibility of something weird or obscure happening there? i have no idea what that might be, i'm just observing the order of those tests.

No, it just means it always obeys the value of the parameter if set, otherwise it goes based on the filename.

Signature · 1 line
Christopher Larson
#4 lore raw
Quoted 8 lines · Chris Larson

On Sun, Dec 30, 2012 at 5:53 PM, Robert P. J. Day <[email protected]> wrote:
i notice that the value of "apply" is tested *before* the final test for a valid patch suffix of {.patch,.diff}, which leaves open the possibility of something weird or obscure happening there?  i have no idea what that might be, i'm just observing the order of those tests.

No, it just means it always obeys the value of the parameter if set, otherwise it goes based on the filename.

ah, got it. thanks. still reading up on my python.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================