[oe-commits] org.oe.dev package.bbclass: Add ASSUME_SHLIBS, way to specify shlib dependencies for ASSUME_PROVIDED.
pfalcon commit
openembedded-commits at lists.openembedded.org
Sat Dec 15 05:38:07 UTC 2007
package.bbclass: Add ASSUME_SHLIBS, way to specify shlib dependencies for ASSUME_PROVIDED.
* List of <shlib_file_name>:<package>[_<version>] mappings. This info will
be appended to one inferred by automatic shlib tracking code. So, it would be
possible to have correct package dependencies even for libraries in
ASSUME_PROVIDED.
Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 7830f5e90162b4508a3948a7473f7d5ce3323e61
ViewMTN: http://monotone.openembedded.org/revision/info/7830f5e90162b4508a3948a7473f7d5ce3323e61
Files:
1
classes/package.bbclass
conf/documentation.conf
Diffs:
#
# mt diff -rb729ed1f204d0b06aa0e3ce22c1ccb4b03a85e93 -r7830f5e90162b4508a3948a7473f7d5ce3323e61
#
#
#
# patch "classes/package.bbclass"
# from [64623cb5ec9aca92b3faacf2075e146fcce623d9]
# to [540a6836514d7f26b1ef8be9ce1d15f0396f6e29]
#
# patch "conf/documentation.conf"
# from [39b05416fe91d4b5812b04d933b9da47d2659c73]
# to [bdfe2a042dd570980cb40a9e27a56cb7e06f2a57]
#
============================================================
--- classes/package.bbclass 64623cb5ec9aca92b3faacf2075e146fcce623d9
+++ classes/package.bbclass 540a6836514d7f26b1ef8be9ce1d15f0396f6e29
@@ -694,6 +694,16 @@ python package_do_shlibs() {
for l in lines:
shlib_provider[l.rstrip()] = (dep_pkg, lib_ver)
+ assumed_libs = bb.data.getVar('ASSUME_SHLIBS', d, 1)
+ if assumed_libs:
+ for e in assumed_libs.split():
+ l, dep_pkg = e.split(":")
+ lib_ver = None
+ dep_pkg = dep_pkg.rsplit("_", 1)
+ if len(dep_pkg) == 2:
+ lib_ver = dep_pkg[1]
+ dep_pkg = dep_pkg[0]
+ shlib_provider[l] = (dep_pkg, lib_ver)
for pkg in packages.split():
bb.debug(2, "calculating shlib requirements for %s" % pkg)
============================================================
--- conf/documentation.conf 39b05416fe91d4b5812b04d933b9da47d2659c73
+++ conf/documentation.conf bdfe2a042dd570980cb40a9e27a56cb7e06f2a57
@@ -34,6 +34,11 @@ for hardware floating point instructions
TARGET_FPU[doc] = "Floating point option (mostly for FPU-less systems), can be 'soft' or empty \
for hardware floating point instructions."
+ASSUME_PROVIDED[doc] = "List of packages (recipes actually) which are assumed to be implicitly available.\
+ These packages won't be built by bitbake."
+ASSUME_SHLIBS[doc] = "List of shlib:package[_version] mappings. Useful for lib packages in ASSUME_PROVIDED,\
+ for which automatic shlib dependency tracking doesn't work."
+
PACKAGE_ARCH[doc] = 'The architecture needed for using a resulting package. If you have \
machine dependant configuration options in your bitbake file add a \
PACKAGE_ARCH = "${MACHINE_ARCH}" to the file.'
More information about the Openembedded-commits
mailing list