summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
authorLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-08-31 18:33:55 -0300
committerLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-04 10:36:15 -0300
commitea1a1beb25e155ea744b75d12925b04c499ba2af (patch)
tree4f3964b0cfc09820f0a8cc160eb15e0199de8b1d /dynamic-layers
parentd8cc2b375eae38fcea0e472d9e5bb6cde2c995d1 (diff)
downloadmeta-freescale-ea1a1beb25e155ea744b75d12925b04c499ba2af.tar.gz
opencv: Declare PACKAGECONFIG-gated split packages via PACKAGES_DYNAMIC
${PN}-java, ${PN}-samples and python3-opencv enter PACKAGES only under the matching PACKAGECONFIG (java/oracle-java, samples, python3) through the bb.utils.contains() expressions in the PACKAGES assignment. oelint-adv parses the recipe without any PACKAGECONFIG active, so those expressions expand empty and it cannot see the packages, flagging their FILES/RDEPENDS/SUMMARY/INSANE_SKIP assignments as oelint.vars.specific ("set specific to a package not known from PACKAGES"). Extend the existing PACKAGES_DYNAMIC (which already covers ^libopencv-.*) with anchored patterns for the three conditionally-created packages, so they are recognised regardless of which PACKAGECONFIG the current parse enables. This does not add them to PACKAGES: a machine/config that enables the PACKAGECONFIG still ships them, one that does not still omits them. The top section of this recipe is a verbatim copy of meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.13.0.bb, which has the same limitation (its PACKAGES_DYNAMIC also covers only ^libopencv-.*). This PACKAGES_DYNAMIC extension is therefore a deliberate divergence from the meta-oe source, added to satisfy standalone linting; a future re-sync should keep it rather than revert to the upstream form. Removes 6 oelint.vars.specific findings; introduces none. Verified output-neutral on imx8mp-lpddr4-evk (PACKAGECONFIG enables samples and python3, so opencv-samples and python3-opencv are shipped): bitbake -e shows the effective PACKAGES set byte-identical before and after (only PACKAGES_DYNAMIC gains the three patterns), and a forced do_package rebuild produced a "No changes" buildhistory commit across all opencv outputs. Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br> (cherry picked from commit ec983005e0b5aed2f7023dd9bd97c359402669b9)
Diffstat (limited to 'dynamic-layers')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb
index f20f8e42e..8f3010ce6 100644
--- a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb
@@ -187,6 +187,12 @@ python populate_packages:prepend () {
187} 187}
188 188
189PACKAGES_DYNAMIC += "^libopencv-.*" 189PACKAGES_DYNAMIC += "^libopencv-.*"
190# ${PN}-java, ${PN}-samples and python3-opencv are added to PACKAGES only under
191# the matching PACKAGECONFIG (java/oracle-java, samples, python3) via the
192# bb.utils.contains() expressions above. Declare them here so their
193# FILES/RDEPENDS/SUMMARY/INSANE_SKIP assignments are recognised even when the
194# current parse does not enable those PACKAGECONFIG options.
195PACKAGES_DYNAMIC += "^${PN}-java$ ^${PN}-samples$ ^python3-opencv$"
190 196
191# Main package is intentionally empty (see ALLOW_EMPTY below); everything is 197# Main package is intentionally empty (see ALLOW_EMPTY below); everything is
192# split into the sub-packages and the PACKAGES_DYNAMIC libopencv-* packages. 198# split into the sub-packages and the PACKAGES_DYNAMIC libopencv-* packages.