diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-07-29 09:40:34 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-08-03 16:13:00 -0300 |
| commit | 5475591d0e1e3ec8e7c1f40e440d01fb1a448f6f (patch) | |
| tree | db6accdd49db62c6605aa80174ec85c9d52fb9f3 /dynamic-layers | |
| parent | dce0a5018ce33d7b52f5c314388d41833f865a45 (diff) | |
| download | meta-freescale-5475591d0e1e3ec8e7c1f40e440d01fb1a448f6f.tar.gz | |
opencv: Install the sample binaries instead of copying them
The i.MX do_install:append placed the compiled example_* programs into
${datadir}/opencv4/samples/bin with "cp -f", so their mode came from the
build tree filtered through the building user's umask instead of being
stated by the recipe. They are executables, so install them 0755.
The two neighbouring "cp -r" calls are left alone: they copy directory
trees of sample and test data, which install cannot express.
This block sits inside the recipe's i.MX override section, so the change
does not add drift against the meta-openembedded recipe.
Resolves an oelint.task.nocopy finding.
Validation:
- Built opencv on an i.MX 8M target as a bound baseline/candidate pair,
with do_install forced so the task could not be served from sstate
- Buildhistory and a full ${D}/${PKGDEST} snapshot are identical on both
sides; the 443 example_* binaries are 0755 either way, so the recipe
now states the mode the build tree was already producing rather than
inheriting it from the builder's umask
- opencv needs an out-of-tree meta-openembedded to build at all, so this
is not a configuration the layer ships
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Diffstat (limited to 'dynamic-layers')
| -rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb | 2 |
1 files changed, 1 insertions, 1 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 d051b3628..ed11c3bfe 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 | |||
| @@ -308,7 +308,7 @@ do_install:append() { | |||
| 308 | install -d ${D}${datadir}/opencv4/samples/data | 308 | install -d ${D}${datadir}/opencv4/samples/data |
| 309 | cp -r ${S}/samples/data/* ${D}${datadir}/opencv4/samples/data | 309 | cp -r ${S}/samples/data/* ${D}${datadir}/opencv4/samples/data |
| 310 | install -d ${D}${datadir}/opencv4/samples/bin/ | 310 | install -d ${D}${datadir}/opencv4/samples/bin/ |
| 311 | cp -f bin/example_* ${D}${datadir}/opencv4/samples/bin/ | 311 | install -m 0755 bin/example_* ${D}${datadir}/opencv4/samples/bin/ |
| 312 | if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then | 312 | if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then |
| 313 | cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/ | 313 | cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/ |
| 314 | fi | 314 | fi |
