]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfsprogs: include/buildrules: fix ltdep
authorRomain Naour <romain.naour@smile.fr>
Sun, 31 May 2026 19:45:53 +0000 (21:45 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 11 Jun 2026 10:24:42 +0000 (12:24 +0200)
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>
include/buildrules

index 871e92db02de1408c4597a131b789a829793e915..3fabbe5aa456e64031506fffb8a142d9894e0069 100644 (file)
@@ -140,7 +140,7 @@ rmltdep:
        $(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