nativesdk.bbclass: define empty PACKAGES/PACKAGES_DYNAMIC
RFC 1/1 nativesdk.bbclass: define empty PACKAGES/PACKAGES_DYNAMIC
* we had similar patch for native.bbclass 41d77ac37f606e54293826ba1e94a4254bddbfa6
I have no idea if the same could be used for nativesdk, because I'm not using generated SDKs at all, that's why it's RFC and if there are better ways to hide such errors, please let me know
* maybe PACKAGES just don't get extra prefix -nativesdk like glib-2.0-utils-nativesdk
* those errors are shown like this:
ERROR: Trying to resolve runtime dependency glibc-charmap-utf-8 resulted
in conflicting PREFERRED_PROVIDER entries being found.
The providers found were: ['/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc_2.12.bb', 'virtual:nativesdk:/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc_2.12.bb'] The PREFERRED_PROVIDER entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc = eglibc', 'PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk']
NOTE: multiple providers are available for runtime glibc-charmap-utf-8 (eglibc-nativesdk, eglibc, glibc, glibc-nativesdk)
NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-charmap-utf-8
NOTE: multiple providers are available for runtime glib-2.0-utils (glib-2.0-nativesdk, glib-2.0)
NOTE: consider defining a PREFERRED_PROVIDER entry to match glib-2.0-utils
--- meta/classes/nativesdk.bbclass | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
meta/classes/nativesdk.bbclass +5 -0
@@ -4,6 +4,11 @@ EXCLUDE_FROM_WORLD = "1" STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}" +PACKAGES = "" +PACKAGES_virtclass-nativesdk = "" +PACKAGES_DYNAMIC = "" +PACKAGES_DYNAMIC_virtclass-nativesdk = "" + # # Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS #
Signature · 1 line
1.7.5.rc3
Quoted 15 lines · Martin Jansa
* we had similar patch for native.bbclass
41d77ac37f606e54293826ba1e94a4254bddbfa6
I have no idea if the same could be used for nativesdk, because I'm not using generated SDKs at all, that's why it's RFC and if there are better ways to hide such errors, please let me know* maybe PACKAGES just don't get extra prefix -nativesdk like glib-2.0-utils-nativesdk
* those errors are shown like this:
ERROR: Trying to resolve runtime dependency glibc-charmap-utf-8 resulted
in conflictingPREFERRED_PROVIDERentries being found.
The providers found were: ['/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc_2.12.bb', 'virtual:nativesdk:/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc_2.12.bb'] ThePREFERRED_PROVIDERentries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc = eglibc', 'PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk']
Quoted 4 lines
NOTE: multiple providers are available for runtime glibc-charmap-utf-8 (eglibc-nativesdk, eglibc, glibc, glibc-nativesdk)
NOTE: consider defining aPREFERRED_PROVIDERentry to match glibc-charmap-utf-8
NOTE: multiple providers are available for runtime glib-2.0-utils (glib-2.0-nativesdk, glib-2.0)
NOTE: consider defining aPREFERRED_PROVIDERentry to match glib-2.0-utils
This patch is certainly incorrect as we expect nativesdk to be packaged and use the resulting packages. It sounds like some value in PACKAGES is using a hardcoded reference to glibc instead of ${PN}.
Cheers,
Richard