All of lore.kernel.org
 help / color / mirror / Atom feed
* Source distribution broken?
@ 2010-11-24  8:17 Anders Törnqvist
  2010-12-16  4:35 ` Michael Poole
  0 siblings, 1 reply; 5+ messages in thread
From: Anders Törnqvist @ 2010-11-24  8:17 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Is the source distribution functionality broken?

This is set in local.conf:
SRC_DIST_LOCAL = "copy"
INHERIT += "src_distribute_local"

New checkout of OE from git.
Have tried different builds for MACHINE=beagleboard and images minimal-image and
base-image.

The only thing that is stored in the TMPDIR/deploy/glibc/sources is a MIT
directory with the minimal-image/minimal-image.bb file.


In src_distribute.bbclass there is a line
addtask distribute_sources before do_build after do_fetch
Does do_build actually get run for every task?

If set to something else instead of "do_build" like "do_compile" will trigger a
lot of src_distribute calls and copying of files for a lot of licenses to
TMPDIR/deploy/glibc/sources.

Any ideas?

/Anders




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

* Re: Source distribution broken?
  2010-11-24  8:17 Source distribution broken? Anders Törnqvist
@ 2010-12-16  4:35 ` Michael Poole
  2010-12-16  5:08   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Poole @ 2010-12-16  4:35 UTC (permalink / raw)
  To: openembedded-devel

2010/11/24 Anders Törnqvist <a.tqvist@gmail.com>:
> Hi,
>
> Is the source distribution functionality broken?
>
> This is set in local.conf:
> SRC_DIST_LOCAL = "copy"
> INHERIT += "src_distribute_local"
>
> New checkout of OE from git.
> Have tried different builds for MACHINE=beagleboard and images minimal-image and
> base-image.
>
> The only thing that is stored in the TMPDIR/deploy/glibc/sources is a MIT
> directory with the minimal-image/minimal-image.bb file.
>
>
> In src_distribute.bbclass there is a line
> addtask distribute_sources before do_build after do_fetch
> Does do_build actually get run for every task?
>
> If set to something else instead of "do_build" like "do_compile" will trigger a
> lot of src_distribute calls and copying of files for a lot of licenses to
> TMPDIR/deploy/glibc/sources.
>
> Any ideas?

I see substantially similar behavior, and am glad to know it's not
just me.  (Thanks, by the way, for mentioning the change from
"do_build" to "do_compile".)

I see a few more files on my system.  Curiously, and perhaps
significantly, they correspond to the targets that I pass to bitbake.
That is, I run "bitbake x-load u-boot-omap3 linux-omap3 company-image"
(where company-image extends micro-image), and inside
TMPDIR/deploy/uclibc/sources/ I have GPLv2+/x-load,
GPLv2/u-boot-omap3, GPLv2/linux-omap3 and MIT/company-image.

Unfortunately, I am not familiar enough with OpenEmbedded or bitbake
to help much beyond this.  Hopefully someone else on the list can
help.

Michael



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

* Re: Source distribution broken?
  2010-12-16  4:35 ` Michael Poole
@ 2010-12-16  5:08   ` Khem Raj
  2010-12-30 16:56     ` Anders Törnqvist
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2010-12-16  5:08 UTC (permalink / raw)
  To: openembedded-devel

On (15/12/10 23:35), Michael Poole wrote:
> 2010/11/24 Anders Törnqvist <a.tqvist@gmail.com>:
> > Hi,
> >
> > Is the source distribution functionality broken?
> >
> > This is set in local.conf:
> > SRC_DIST_LOCAL = "copy"
> > INHERIT += "src_distribute_local"
> >
> > New checkout of OE from git.
> > Have tried different builds for MACHINE=beagleboard and images minimal-image and
> > base-image.
> >
> > The only thing that is stored in the TMPDIR/deploy/glibc/sources is a MIT
> > directory with the minimal-image/minimal-image.bb file.

hmm I get it properly populated for console-image, do_build is added in
base.bbclass I think it should be there for all recipes



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

* Source distribution broken?
@ 2010-12-19 17:41 Denis Dydychkin
  0 siblings, 0 replies; 5+ messages in thread
From: Denis Dydychkin @ 2010-12-19 17:41 UTC (permalink / raw)
  To: openembedded-devel



> Is the source distribution functionality broken?

> The only thing that is stored in the TMPDIR/deploy/glibc/sources is a MIT
> directory with the minimal-image/minimal-image.bb file.

> If set to something else instead of "do_build" like "do_compile" will trigger a
> lot of src_distribute calls and copying of files for a lot of licenses to
> TMPDIR/deploy/glibc/sources.

Try bitbake minimal-image -c buildall

As far as I got it, do_build target is *not* invoked for each dependent package while building image since it is not required (unlike do_compile which is required). To ensure that do_build is called for each packet belonging to image, you should use do_buildall target for whole image.

I suppose (never tried) that calling bitbake minimal-image -c distribute_sources_all is enough to generate sources if you just need them.



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

* Re: Source distribution broken?
  2010-12-16  5:08   ` Khem Raj
@ 2010-12-30 16:56     ` Anders Törnqvist
  0 siblings, 0 replies; 5+ messages in thread
From: Anders Törnqvist @ 2010-12-30 16:56 UTC (permalink / raw)
  To: openembedded-devel

Khem Raj <raj.khem <at> gmail.com> writes:

> 
> On (15/12/10 23:35), Michael Poole wrote:
> > 2010/11/24 Anders Törnqvist <a.tqvist <at> gmail.com>:
> > > Hi,
> > >
> > > Is the source distribution functionality broken?
> > >
> > > This is set in local.conf:
> > > SRC_DIST_LOCAL = "copy"
> > > INHERIT += "src_distribute_local"
> > >
> > > New checkout of OE from git.
> > > Have tried different builds for MACHINE=beagleboard and images
minimal-image and
> > > base-image.
> > >
> > > The only thing that is stored in the TMPDIR/deploy/glibc/sources is a MIT
> > > directory with the minimal-image/minimal-image.bb file.
> 
> hmm I get it properly populated for console-image, do_build is added in
> base.bbclass I think it should be there for all recipes
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel <at> lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 

Hmm. I do not get the TMPDIR/deploy/glibc/sources populated by any other sources
than the console-image.bb file in a MIT directory.

I have tested several builds with different images (micro, minimal, console,
base) in combination with DISTRO set to "angstrom-2008.1".
These combinations have I build based on release 2010.12 from tar file as well
as a GIT dev-branch dated christmas.

The result is always that the TMPDIR/deploy/glibc/sources is not populated.

On the other hand is the  TMPDIR/deploy/glibc/sources always populated if I add
"-c buildall" in all combinations (image, distro, and branch) mentioned above.

"-c distribute_sources_all" also always work to get TMPDIR/deploy/glibc/sources
populated.

Isn't the idea that TMPDIR/deploy/glibc/sources should be populated
automatically without having to add "-c buildall"?

/Anders Törnqvist






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

end of thread, other threads:[~2010-12-30 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24  8:17 Source distribution broken? Anders Törnqvist
2010-12-16  4:35 ` Michael Poole
2010-12-16  5:08   ` Khem Raj
2010-12-30 16:56     ` Anders Törnqvist
  -- strict thread matches above, loose matches on Subject: below --
2010-12-19 17:41 Denis Dydychkin

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.