Skip to content

Commit

Permalink
mm-common: Remove unneeded build dependencies
Browse files Browse the repository at this point in the history
All this recipe does is stage a tarball and some autotools files, yet
it inherits from gnome.bbclass which adds a build dependency on gconf,
which depends on gtk+, which depends on cairo, virtual/x11 and a raft
of other dependencies that aren't used on the target. Create a
.bbappend for the recipe that eliminates the dependencies, and, since
nothing is compiled, sets PACKAGE_ARCH to "all" by inheriting from
allarch.bbclass .

Thanks to @shr-project for proposing this way of solving the problem.

[OWEBOS-2689] Remove extraneous packages from Open webOS build

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <[email protected]>
Change-Id: I1520dce3c8582d276496d2761bf66e100fcc9f07
Reviewed-on: http://g2g.palm.com/941
Tested-by: Herb Kuta <[email protected]>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <[email protected]>
  • Loading branch information
Herb Kuta authored and Susan Montooth committed Nov 21, 2012
1 parent cf3be75 commit f474511
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes-core/mm-common/mm-common_0.9.5.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# (c) Copyright 2012 Hewlett-Packard Development Company, L.P.

# XXX Revisit this .bbappend once we're using an openembedded-core with
# 6a4f394bc1280f5d58d928a2f7cff7cce4eb3b2b (applied to gnomebase.bbclass on
# 2012-11-02).

# Override the unneeded dependencies set via the inherit of gnome.bbclass done
# in the original recipe.
DEPENDS = ""
RDEPENDS_${PN} = ""

PR_append = "webos1"

# All the original recipe does is stage a tarball and some autotools files;
# nothing compiled.
inherit allarch

# Nothing in mm-common is installed on the target => the base package should
# be empty. What's below works because ${PN}-dev is packaged ahead of ${PN}.
FILES_${PN}-dev += "${FILES_${PN}}"

0 comments on commit f474511

Please sign in to comment.