All of lore.kernel.org
 help / color / mirror / Atom feed
* Broken SRC_URI handling
@ 2012-11-26 15:45 Enrico Scholz
  2012-11-26 21:21 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Scholz @ 2012-11-26 15:45 UTC (permalink / raw)
  To: bitbake-devel

Hi,

commit 07b5f84133ac79aac4e939ea5f24390ad7f940a5 introduced a regression
with

| +            if not newpath or not os.path.exists(newpath) and path.find("*") != -1:


When an SRC_URI element is not found, some directory in the search path
is copied insted.

There should be probably added some parentheses in the expression above.
At the moment, the 'A or B and C' above is interpreted as 'A or (B and
C)' due to operator precedences.


Enrico



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

* Re: Broken SRC_URI handling
  2012-11-26 15:45 Broken SRC_URI handling Enrico Scholz
@ 2012-11-26 21:21 ` Richard Purdie
  2012-11-27  1:02   ` Andreas Müller
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2012-11-26 21:21 UTC (permalink / raw)
  To: Enrico Scholz; +Cc: bitbake-devel

On Mon, 2012-11-26 at 16:45 +0100, Enrico Scholz wrote:
> Hi,
> 
> commit 07b5f84133ac79aac4e939ea5f24390ad7f940a5 introduced a regression
> with
> 
> | +            if not newpath or not os.path.exists(newpath) and path.find("*") != -1:
> 
> 
> When an SRC_URI element is not found, some directory in the search path
> is copied insted.
> 
> There should be probably added some parentheses in the expression above.
> At the moment, the 'A or B and C' above is interpreted as 'A or (B and
> C)' due to operator precedences.

I just pushed a fix for this before I read this email! We reached the
same conclusion so it should be fixed in master now :)

Cheers,

Richard




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

* Re: Broken SRC_URI handling
  2012-11-26 21:21 ` Richard Purdie
@ 2012-11-27  1:02   ` Andreas Müller
  2012-11-27  6:33     ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Müller @ 2012-11-27  1:02 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Enrico Scholz, bitbake-devel

On Mon, Nov 26, 2012 at 10:21 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2012-11-26 at 16:45 +0100, Enrico Scholz wrote:
>> Hi,
>>
>> commit 07b5f84133ac79aac4e939ea5f24390ad7f940a5 introduced a regression
>> with
>>
>> | +            if not newpath or not os.path.exists(newpath) and path.find("*") != -1:
>>
>>
>> When an SRC_URI element is not found, some directory in the search path
>> is copied insted.
>>
>> There should be probably added some parentheses in the expression above.
>> At the moment, the 'A or B and C' above is interpreted as 'A or (B and
>> C)' due to operator precedences.
>
> I just pushed a fix for this before I read this email! We reached the
> same conclusion so it should be fixed in master now :)
>
> Cheers,
>
> Richard
>
Not sure if it is related but since last update I get

WARNING: Failed to fetch URL file://systemctl, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://systemctl anywhere.
The paths that were searched were:
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/task-fetch
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/x86-64
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/build-linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/pn-systemd-systemctl-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/overo
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/omap3
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/armv7a
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/armv7a-vfp-neon
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/angstrom
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/class-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/forcevariable
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-1.0/
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/task-fetch
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/x86-64
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/build-linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/pn-systemd-systemctl-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/overo
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/omap3
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/armv7a
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/armv7a-vfp-neon
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/angstrom
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/class-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/forcevariable
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/task-fetch
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/x86-64
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/build-linux
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/pn-systemd-systemctl-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/overo
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/omap3
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/armv7a
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/armv7a-vfp-neon
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/angstrom
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/class-native
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/forcevariable
    /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/files/
    /home/Superandy/data/Downloads/packets/dl
ERROR: Function failed: Fetcher failure for URL: 'file://systemctl'.
Unable to fetch URL from any source.
ERROR: Logfile of failure stored in:
/home/Superandy/tmp/oe-core-eglibc/work/x86_64-linux/systemd-systemctl-native/1.0-r6/temp/log.do_fetch.13053
ERROR: Task 4 (/home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb,
do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8 tasks of which 7 didn't need to be
rerun and 1 failed.
No currently running tasks (8 of 19)

Summary: 1 task failed:
  /home/Superandy/data/oe-core/sources/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-native.bb,
do_fetch

The file is in

.../meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl-native

but I see something like

.../meta-openembedded/meta-systemd/recipes-core/systemd/systemd-systemctl/pn-systemd-systemctl-native

Thoughts?

Andreas



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

* Re: Broken SRC_URI handling
  2012-11-27  1:02   ` Andreas Müller
@ 2012-11-27  6:33     ` Martin Jansa
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2012-11-27  6:33 UTC (permalink / raw)
  To: Andreas Müller; +Cc: Enrico Scholz, bitbake-devel

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

On Tue, Nov 27, 2012 at 02:02:17AM +0100, Andreas Müller wrote:
> On Mon, Nov 26, 2012 at 10:21 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Mon, 2012-11-26 at 16:45 +0100, Enrico Scholz wrote:
> >> Hi,
> >>
> >> commit 07b5f84133ac79aac4e939ea5f24390ad7f940a5 introduced a regression
> >> with
> >>
> >> | +            if not newpath or not os.path.exists(newpath) and path.find("*") != -1:
> >>
> >>
> >> When an SRC_URI element is not found, some directory in the search path
> >> is copied insted.
> >>
> >> There should be probably added some parentheses in the expression above.
> >> At the moment, the 'A or B and C' above is interpreted as 'A or (B and
> >> C)' due to operator precedences.
> >
> > I just pushed a fix for this before I read this email! We reached the
> > same conclusion so it should be fixed in master now :)
> >
> > Cheers,
> >
> > Richard
> >
> Not sure if it is related but since last update I get
> 
> WARNING: Failed to fetch URL file://systemctl, attempting MIRRORS if available
> ERROR: Fetcher failure: Unable to find file file://systemctl anywhere.

Hi,

it's slightly different change:
http://patchwork.openembedded.org/patch/39625/

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

end of thread, other threads:[~2012-11-27  6:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 15:45 Broken SRC_URI handling Enrico Scholz
2012-11-26 21:21 ` Richard Purdie
2012-11-27  1:02   ` Andreas Müller
2012-11-27  6:33     ` Martin Jansa

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.