@@ -14,6 +14,9 @@
## the list
## @var AUTO_PACKAGE_LIBDIR If having libraries an uncommen place, ensure that
## path is in this variable.
+## @var LIBRARY_VERSION Set the version of the library (foobar.so.2 has
+## library version 2). May also be set for a specific package within a
+## recipe using LIBRARY_VERSION_pkgname.
PACKAGES =+ "${LIBS_AUTO_PACKAGES}"
PACKAGES[expand] = 3
@@ -139,10 +142,20 @@ def auto_package_libs (d):
pkg_provides = (d.get("PROVIDES_" + pkg) or "").split()
pkg_provides.append("%s%s"%(provideprefix,
lib.replace("_", "-").lower()))
+ library_version = d.get("LIBRARY_VERSION")
+ library_version_pkg = d.get("LIBRARY_VERSION_" + pkg)
+ if library_version:
+ if library_version_pkg:
+ pkg_provides.append(provideprefix + lib.replace("_","-").lower() \
+ + '-' + library_version_pkg)
+ else:
+ pkg_provides.append(provideprefix + lib.replace("_","-").lower() \
+ + '-' + library_version)
d.set("PROVIDES_" + pkg, " ".join(pkg_provides))
qaflags = (d.get_flag("PROVIDES_" + pkg,"qa") or "").split()
qaflags.append("is-library")
+ qaflags.append("allow-missing-soname:" + pkg)
d.set_flag("PROVIDES_" + pkg, "qa", " ".join(qaflags))
devpkg_provides = (d.get("PROVIDES_" + devpkg) or "").split()