Bug 15552 - build-deps QA error in nativesdk-openssl with dummy nativesdk-perl
Summary: build-deps QA error in nativesdk-openssl with dummy nativesdk-perl
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.2 M4
Assignee: Denys Dmytriyenko
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-07-15 23:36 UTC by Denys Dmytriyenko
Modified: 2025-04-10 15:32 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denys Dmytriyenko 2024-07-15 23:36:00 UTC
Add "nativesdk-perl" to ASSUME_PROVIDED:

ASSUME_PROVIDED += "nativesdk-perl"


$ bitbake nativesdk-openssl
...
I get one of these 3 similar, but slightly different errors:

ERROR: nativesdk-openssl-3.3.1-r0 do_package_qa: QA Issue: nativesdk-openssl-misc rdepends on nativesdk-perl, but it isn't a build dependency? [build-deps]

ERROR: nativesdk-openssl-3.3.1-r0 do_package_qa: QA Issue: nativesdk-openssl-misc rdepends on nativesdk-perl, but it isn't a build dependency, missing nativesdk-perl in DEPENDS or PACKAGECONFIG? [build-deps]

ERROR: nativesdk-openssl-3.3.1-r0 do_package_qa: QA Issue: nativesdk-openssl-misc rdepends on nativesdk-perl, but it isn't a build dependency, missing nativesdk-buildtools-perl-dummy in DEPENDS or PACKAGECONFIG? [build-deps]
Comment 1 Richard Purdie 2024-07-17 18:51:02 UTC
ASSUME_PROVIDED isn't the way we've handled the SDK provision. 

See meta/recipes-core/meta/nativesdk-sdk-provides-dummy.bb
Comment 2 Denys Dmytriyenko 2024-07-17 19:02:42 UTC
Yes, I do have these lines in the image/sdk recipes:

TOOLCHAIN_HOST_TASK:append = " nativesdk-buildtools-perl-dummy"
SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}"

That's when I get the 3-rd variant of the error message (missing nativesdk-buildtools-perl-dummy in DEPENDS or PACKAGECONFIG?)
Comment 3 Randy MacLeod 2025-01-30 16:06:36 UTC
Bulk move to 5.2-M3.
Comment 4 Randy MacLeod 2025-01-30 16:17:06 UTC
Bulk move to 5.2-M3 and this time I'll actually specify M3!
Comment 5 Randy MacLeod 2025-03-25 18:45:20 UTC
With the following in conf/local.conf:

TOOLCHAIN_HOST_TASK:append = " nativesdk-buildtools-perl-dummy"
SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}"

I do not see an error for 
$ bitbake nativesdk-openssl
for either MACHINE=qemuarm or qemux86-64

this is with poky  ( master:99213878963e780704728d90f0f184ee2389f10f )

Can you confirm and/or provide detailed steps to reproduce ?
Comment 7 Richard Purdie 2025-04-10 15:04:58 UTC
Does the patch mean this is now resolved?
Comment 8 Denys Dmytriyenko 2025-04-10 15:32:06 UTC
Well, there are few points here:

1. there were few more nativesdk-perl packages creeping in when building the SDK with "dummy-sdk-package" - the patch is supposed to resolve this, at least for now, see #3

2. therefore ASSUME_PROVIDED was used from the old days to forcefully prevent nativesdk-perl from even being built, but that now started throwing "build-deps" errors for indirect dependencies

3. W/o ASSUME_PROVIDED, nativesdk-perl gets fully built normally, but "dummy-sdk-package" then filters the corresponding packages from being installed into the SDK. And it's a bit fragile, as once in a while new modules/packages need to be added, which happened many times in the past:
https://git.openembedded.org/openembedded-core/log/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb