From: "Changqing Li" <changqing.li@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] iproute2.inc: clean .o before do_configure
Date: Thu, 7 May 2020 10:05:59 +0800 [thread overview]
Message-ID: <1588817159-434433-1-git-send-email-changqing.li@windriver.com> (raw)
From: Changqing Li <changqing.li@windriver.com>
Reproduce steps:
1. add 'DISTRO_FEATURES_append = ' usrmerge'' in local.conf
2. bitbake iproute2
3. remove 'DISTRO_FEATURES_append = ' usrmerge'' from local.conf
4. bitbake iproute2
In step4, since CLEANBROKEN is set, files generated in step2 is not
cleaned and rebuilded. Check after step4:
file /sbin/ip.iproute2
/sbin/ip.iproute2: ELF 64-bit LSB pie executable, x86-64, version 1
(SYSV), dynamically linked, interpreter /usr/lib64/ld-linux-x86-64.so.2,
interpreter path is wrong, it should be /lib64/ld-linux-x86-64.so.2
This will make run ip.iproute2 report error:
-sh: /sbin/ip.iproute2: No such file or directory
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
meta/recipes-connectivity/iproute2/iproute2.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index 403d264..e70620c 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -29,6 +29,10 @@ EXTRA_OEMAKE = "\
LIBDIR='${libdir}' \
"
+do_configure_prepend () {
+ find ${B} -ignore_readdir_race -name \*.o -type f -print0 | xargs -0 rm -f
+}
+
do_configure_append () {
sh configure ${STAGING_INCDIR}
# Explicitly disable ATM support
--
2.7.4
next reply other threads:[~2020-05-07 2:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 2:05 Changqing Li [this message]
2020-05-07 5:56 ` [OE-core] [PATCH] iproute2.inc: clean .o before do_configure Jacob Kroon
2020-05-07 6:10 ` Changqing Li
2020-05-07 6:19 ` Jacob Kroon
2020-05-08 4:02 ` Changqing Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1588817159-434433-1-git-send-email-changqing.li@windriver.com \
--to=changqing.li@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox