diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-01 15:01:13 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-01 17:57:16 -0300 |
| commit | e78d24fcf20b1095b20de6ad472a8da3cb54bb9e (patch) | |
| tree | 83892cb9ef54e3b09df88abe8f511fbac2bca623 /recipes-graphics | |
| parent | ece6928925a00af80d77a56ff025806ede815f7b (diff) | |
| download | meta-freescale-e78d24fcf20b1095b20de6ad472a8da3cb54bb9e.tar.gz | |
imx-gpu-g2d: Use cp --no-preserve=ownership in do_install per oelint
do_install copies the prebuilt G2D shared libraries and headers into
the package with plain cp, which oelint.task.nocopy flags because cp
inherits the invoking user's ownership. The copies use cp -d / cp -Pr
to preserve the .so version symlinks, which install(1) would dereference
and break, so install cannot replace them; add --no-preserve=ownership,
the alternative the rule documents, and keep the -d/-P link-preserving
flags.
Validated with buildhistory: rebuilt imx-gpu-g2d for
MACHINE=imx8mp-lpddr4-evk with and without this change; all
imx-gpu-g2d* packages are byte-identical, including the libg2d.so
version symlinks, because packaging runs under pseudo and records the
files as root-owned regardless.
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
| -rw-r--r-- | recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p4.4.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p4.4.bb b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p4.4.bb index ebe75433e..eda0f67a4 100644 --- a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p4.4.bb +++ b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p4.4.bb | |||
| @@ -28,11 +28,11 @@ SOC_INSTALL_DIR:mx8mm-nxp-bsp = "mx8mm" | |||
| 28 | do_install () { | 28 | do_install () { |
| 29 | install -d ${D}${libdir} | 29 | install -d ${D}${libdir} |
| 30 | install -d ${D}${includedir} | 30 | install -d ${D}${includedir} |
| 31 | cp -d ${S}/g2d/usr/lib/*.so* ${D}${libdir} | 31 | cp --no-preserve=ownership -d ${S}/g2d/usr/lib/*.so* ${D}${libdir} |
| 32 | if [ -d ${S}/g2d/usr/lib/${SOC_INSTALL_DIR} ]; then | 32 | if [ -d ${S}/g2d/usr/lib/${SOC_INSTALL_DIR} ]; then |
| 33 | cp -d ${S}/g2d/usr/lib/${SOC_INSTALL_DIR}/*.so* ${D}${libdir} | 33 | cp --no-preserve=ownership -d ${S}/g2d/usr/lib/${SOC_INSTALL_DIR}/*.so* ${D}${libdir} |
| 34 | fi | 34 | fi |
| 35 | cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} | 35 | cp --no-preserve=ownership -Pr ${S}/g2d/usr/include/* ${D}${includedir} |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | # The packaged binaries have been stripped of debug info, so disable | 38 | # The packaged binaries have been stripped of debug info, so disable |
