Our CI uses "/builds/buildroot.org/buildroot" as build directory.
xfsprogs build system misbehaves when a file path contains ".o".
While generating .ltdep, the sed command used to convert object file
(.o) to libtool object (.lo) replace buildroot.org by buildroot.lorg.
.ltdep: $(CFILES) $(HFILES)
$(Q)$(MAKEDEP) $(CFILES) | $(SED) -e 's,^\([^:]*\)\.o,\1.lo,' > .ltdep
Building libfrog
[CC] gen_crc32table
[GENERATE] crc32table.h
gmake[4]: *** No rule to make target '/builds/buildroot.lorg/buildroot/test-output/TestXfs/host/include/urcu.h', needed by 'avl64.lo'. Stop.
Update the sed command to avoid this effect.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/
14607335648
Signed-off-by: Romain Naour <romain.naour@smile.fr>
[aalbersh: updated second sentence]
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
$(Q)rm -f .ltdep
.ltdep: $(CFILES) $(HFILES)
- $(Q)$(MAKEDEP) $(CFILES) | $(SED) -e 's,^\([^:]*\)\.o,\1.lo,' > .ltdep
+ $(Q)$(MAKEDEP) $(CFILES) | $(SED) -e 's,^\([^:]*\)\.o:,\1.lo:,' > .ltdep
depend: rmdep .dep