[poky] non-upstreamed patches

Richard Purdie richard.purdie at linuxfoundation.org
Mon Nov 14 14:44:09 PST 2011


On Mon, 2011-11-14 at 15:48 -0500, Colin Walters wrote:
> On Mon, 2011-11-14 at 19:56 +0000, Richard Purdie wrote:
> 
> > The number of people who write cross safe autogen.sh scripts which do
> > everything we need is unfortunately low.
> 
> Can you elaborate on this?  What are some common cross-unsafe problems?

Well, I went and looked at the gnome-common autogen stuff. Its not a
cross specific problem in this case but it does seem to
reinvent/reimplement pieces of what autoconf/pkgconfig is supposed to
do. Compare/check autoconf version? automake version? pkg-config
dependencies present? Why? The whole point of autoconf was to avoid
having these scripts :(

Examples of cross unsafe issues we've seen are libtool macros not being
updated and old versions used for the reconf. Forcibly running configure
from the script with options we don't want (or not including options we
do need). We do have some autotools* flags we pass in ourselves too
since the autotools we're using are slightly tweaked to avoid certain
cross bugs. There is also confusion about whether to force copies of
file or not (we always do).

Using those scripts just adds so much unpredictability to the
system :(. 

> So concretely here with gtk-doc, since we don't actually want to build
> the documentation (because gtk-doc is native only for the exact same
> reasons gobject-introspection is, and we've talked about that one).
> 
> The GNOME autogen.sh scripts will run "gtkdocize", which pretty much
> just copies in gtk-doc.make and gtk-doc.m4.  We could reimplement that
> with dummy copies, or build a lobotomized gtk-doc (this will require
> perl-native but that's about it I think).

Our current hack is really the former approach - add dummy copies in.
Its just a little incomplete and we should enhance it deal with that so
we can run gtkdocize.

> I'm experimenting with this now.
> 
> >  I do appreciate the gnome
> > community may do better than others and things are improving over time.
> > I'd not yet at a point where I'd trust even 10% of the autogen.sh
> > scripts out there though.
> 
> The other thing we could do I guess is make it opt-in, like
> OE_RUN_AUTOGEN=1 or something in individual recipes using
> autotools.bbclass?

We could do that, yes. What is the advantage over our current class code
(which I'll be the first to admit has faults but does seem to work)?

Cheers,

Richard




More information about the poky mailing list