mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
gcc-runtime: Avoid error when trying to remove nonexistent directories
If we didn't build libgomp then we won't have installed anything into
${infodir} or ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude. Check
whether those directories exist before trying to remove them, else we
will lose.
(From OE-Core master rev: 507e14ecdc5b4ff2ee7f1128d9f30c2948e10d5a)
(From OE-Core rev: 78879d1583d082e0d08253ebefbd8c2a288db01c)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1a7201545b
commit
259d0665ed
@@ -43,8 +43,12 @@ do_install () {
|
||||
oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install
|
||||
done
|
||||
rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir
|
||||
rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
|
||||
rmdir --ignore-fail-on-non-empty -p ${D}${infodir}
|
||||
if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then
|
||||
rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
|
||||
fi
|
||||
if [ -d ${D}${infodir} ]; then
|
||||
rmdir --ignore-fail-on-non-empty -p ${D}${infodir}
|
||||
fi
|
||||
chown -R root:root ${D}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user