mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
logrotate: fix recompile error
Fixed: NOTE: make -j 32 make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stddef.h', needed by `logrotate.o'. Stop. This happens when upgrade gcc from 4.9.0 to 4.9.1, and the .depend isn't regenerated when recompile, the content of the .depend are: [snip] logrotate.o: /path/to/sysroot/4.9.0/include/stddef.h [snip] And Makefile includes the .depend file if it exists, so there would be errors when /path/to/sysroot/4.9.0/include/stddef.h doesn't exist. Remove .depend will fix the problem. (From OE-Core rev: 31de4a9d9ecc532ff6a6f5641852dc412a337cd7) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
020f816da4
commit
866070c78a
@@ -18,6 +18,11 @@ SRC_URI[sha256sum] = "f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00
|
||||
|
||||
EXTRA_OEMAKE = ""
|
||||
|
||||
do_compile_prepend() {
|
||||
# Make sure the recompile is OK
|
||||
rm -f ${B}/.depend
|
||||
}
|
||||
|
||||
do_install(){
|
||||
oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir}
|
||||
mkdir -p ${D}${sysconfdir}/logrotate.d
|
||||
|
||||
Reference in New Issue
Block a user