[oe] [RFC] gnome.bbclass change broke lots of package dependencies

Ihar Hrachyshka ihar.hrachyshka at gmail.com
Mon May 25 09:07:57 UTC 2009


Hello to all!

Today I was working on bringing qt4-embedded toolchain to OE and found
the following problem with the last change
(4c275b5c0350ed1dbd94bfcdd9ce8786ad11b8a1) for gnome.bbclass.
Here is the problematic code snippet I'd like to discuss:

@@ -17,6 +17,9 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime

 AUTOTOOLS_STAGE_PKGCONFIG = "1"

+PACKAGES =+ "${PN}-scrollkeeper-leftovers"
+FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
+
 gnome_stage_includes() {
        autotools_stage_includes
 }

As we can see, there is now ${PN}-scrollkeeper-leftovers package for
every recipe that inherited gnome.bbclass. And this -leftovers package
is in the current dependency chains (at least for qt4-embedded-dev
package).

At the first place, I'd like to get some explanation on the reason for
pushing the change in the tree. Git log is somehow ambiguous so I
can't understand the reason for doing the commit.

If it's really needed then we should resolve the following problems:
1) this new package (leftovers) is not generated for empty packages
resulting in broken dependency chains (as for gnome-vfs that is
somehow needed by qt4-embedded-dev);
2) this new package (leftovers) is not generated for *every* recipe
that was built *before* the change was made.

As for the 1st problem, I suggest adding ALLOW_EMPTY = "1" to
gnome.bbclass (it works for my current setup, and if you will approve
the change then I'll send the patch immediately).
As for the 2nd problem, there is a big question what should we do.
Revision bumping for every recipe that inherits gnome.bbclass is not
an elegant thing (though it will really push the change for all the
users). Maybe there is another, better way to handle such tasks. If
you know it please provide me with the info.

Thanks for help in advance,
Ihar Hrachyshka




More information about the Openembedded-devel mailing list