diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2026-07-24 14:25:49 +0800 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-07-24 11:52:27 +0000 |
| commit | d31fbb5fa220033be5a73c3430cd8612b53c4a0d (patch) | |
| tree | 644b6615b2b4554ab6b7d54d214d88415f8d735a | |
| parent | 8945df6f30efcc6a063792209492826f763832c0 (diff) | |
| download | meta-freescale-backport-2597-to-wrynose.tar.gz | |
iproute2: Fix v6.19.0 install issuebackport-2597-to-wrynose
1,Operation not permitted after adjustments to the install path
Errors were encountered while processing:
```
/tmp/apt-dpkg-install-swecwu/293-iproute2-dev_6.19.0-r0_arm64.deb
W: chown to _apt:root of directory /.../yocto/build/tmp/work/imx8mqevk-poky-linux/test-internal-qt6/1.0/recipe-sysroot-native/var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
W: chown to _apt:root of directory /.../yocto/build/tmp/work/imx8mqevk-poky-linux/test-internal-qt6/1.0/apt/lists/auxfiles failed - SetupAPTPartialDirectory (1: Operation not permitted)
W: chown to root:adm of file /.../yocto/build/tmp/work/imx8mqevk-poky-linux/test-internal-qt6/1.0/recipe-sysroot-native/var/log/apt/term.log failed - OpenLog (1: Operation not permitted)
E: Sub-process dpkg returned an error code (1)
```
2,Remove conflict files with glibc
```
do_prepare_recipe_sysroot: The file /usr/include/dlfcn.h is installed by both glibc and iproute2, aborting
```
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
(cherry picked from commit 4bc71fe5a339b2b629d33e11a3a505f1ffff81fb)
| -rw-r--r-- | recipes-connectivity/iproute2/iproute2_%.bbappend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-connectivity/iproute2/iproute2_%.bbappend b/recipes-connectivity/iproute2/iproute2_%.bbappend index 8e0f8972a..ba8e8df40 100644 --- a/recipes-connectivity/iproute2/iproute2_%.bbappend +++ b/recipes-connectivity/iproute2/iproute2_%.bbappend | |||
| @@ -1,11 +1,21 @@ | |||
| 1 | do_install:append:imx-generic-bsp () { | 1 | do_install:append:imx-generic-bsp () { |
| 2 | cp -Rf --no-preserve=ownership ${B}/include/* ${D}${includedir} | ||
| 2 | install -d ${D}${includedir}/tc | 3 | install -d ${D}${includedir}/tc |
| 3 | cp -R ${B}/include/* ${D}${includedir} | 4 | cp -R ${B}/include/* ${D}${includedir} |
| 4 | install -m 0644 ${B}/tc/*.h ${D}${includedir}/tc | 5 | install -m 0644 ${B}/tc/*.h ${D}${includedir}/tc |
| 6 | # Remove files that conflict with glibc | ||
| 7 | rm -f ${D}${includedir}/dlfcn.h | ||
| 8 | rm -f ${D}${includedir}/netinet/tcp.h | ||
| 9 | rm -f ${D}${includedir}/xtables.h | ||
| 5 | } | 10 | } |
| 6 | 11 | ||
| 7 | do_install:append:qoriq-generic-bsp () { | 12 | do_install:append:qoriq-generic-bsp () { |
| 13 | cp -Rf --no-preserve=ownership ${B}/include/* ${D}${includedir} | ||
| 8 | install -d ${D}${includedir}/tc | 14 | install -d ${D}${includedir}/tc |
| 9 | cp -R ${B}/include/* ${D}${includedir} | 15 | cp -R ${B}/include/* ${D}${includedir} |
| 10 | install -m 0644 ${B}/tc/*.h ${D}${includedir}/tc | 16 | install -m 0644 ${B}/tc/*.h ${D}${includedir}/tc |
| 17 | # Remove files that conflict with glibc | ||
| 18 | rm -f ${D}${includedir}/dlfcn.h | ||
| 19 | rm -f ${D}${includedir}/netinet/tcp.h | ||
| 20 | rm -f ${D}${includedir}/xtables.h | ||
| 11 | } | 21 | } |
