From 862c6130a58a6c87c69d2d937e66f434b9b001e0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 12 Feb 2006 18:36:36 +0000 Subject: Fix package name renaming for classes like debian.bbclass: package.bbclass now tracks any package renaming performed using PKG_*. When a package is built, the runtime variables are translated using this cached information which is stored in staging. From now on, only use package names are valid in runtime variables like RDEPENDS, RRECOMMENDS and RSUGGESTS. eg. fontconfig-dev is correct, libfontconfig-dev would be wrong. As debian.bbclass can't determine package renaming until after a package's contents is known, the class has to set BUILD_ALL_DEPS = "1". This also means OE is no longer forced into one package renaming scheme. --- classes/debian.bbclass | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'classes/debian.bbclass') diff --git a/classes/debian.bbclass b/classes/debian.bbclass index 63a126ca17..5688dad93b 100644 --- a/classes/debian.bbclass +++ b/classes/debian.bbclass @@ -1,3 +1,11 @@ +STAGING_PKGMAPS_DIR = "${STAGING_DIR}/pkgmaps/debian" + +# Debain package renaming only occurs when a package is built +# We therefore have to make sure we build all runtime packages +# before building the current package to make the packages runtime +# depends are correct +BUILD_ALL_DEPS = "1" + python debian_package_name_hook () { import glob, copy, stat, errno, re -- cgit 1.2.3-korg