Bug 14088

Summary: Attempting to override RDEPENDS_${PN} from global config doesn't work
Product: [Build System, Metadata & Runtime] BitBake Reporter: Ross Burton <ross.burton>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: 3.3   
Target Milestone: 3.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2020-10-15 07:01:47 UTC
I want to add a RDEPENDS to dropbear from a machine configuration:

RDEPENDS_dropbear_append_pn-dropbear = " ssh-pregen-hostkeys"

This gives a warning that RDEPENDS_dropbear is conflicting with RDEPENDS_${PN} in the dropbear recipe. Okay, I'll change that to ${PN}:

RDEPENDS_${PN}_append_pn-dropbear = " ssh-pregen-hostkeys"

WARNING: /home/ross/Yocto/meta-openembedded/meta-oe/recipes-extended/isomd5sum/isomd5sum_1.2.3.bb: Variable key RDEPENDS_${PN} () replaces original key RDEPENDS_isomd5sum (openssl curl).

WARNING: /home/ross/Yocto/poky/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb: Variable key RDEPENDS_${PN} () replaces original key RDEPENDS_packagegroup-core-sdk (    packagegroup-core-buildessential     coreutils     ccache     diffutils     perl-module-re     perl-module-text-wrap     findutils     quilt     less     ldd     file     tcl).

WARNING: /home/ross/Yocto/poky/meta/recipes-core/coreutils/coreutils_8.32.bb: Variable key RDEPENDS_${PN} () replaces original key RDEPENDS_coreutils ( ${@bb.utils.contains('PACKAGECONFIG', 'single-binary', '', 'coreutils-stdbuf', d)}).

(and many more)
Comment 1 Richard Purdie 2021-08-02 15:43:31 UTC
Investigation shows this is a data store bug. Note that in RDEPENDS_${PN} (), the "()" is always empty. None values were being corrupted to "" for inactive overrides.

I've send a patch to fix datastore behaviour and added a test.