]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] Makefile.tpl: remove an extra \; from find command
authorBasil Milanich <bmilanich@gmail.com>
Wed, 15 Oct 2025 17:31:09 +0000 (11:31 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 15 Oct 2025 17:32:21 +0000 (11:32 -0600)
The extra \; parameter in the find command causes it to fail immediately and
not clean any config.cache:

$ find . -name config.cache -exec rm -f {} \; \;
find: paths must precede expression: `;'

This is benign in most cases but the binutils is also using this Makefile.tpl and
as the result its 'make distclean' can leave config.cache files around, which
fails subsequent attempts to configure and build it.

I have modified the Makefile.tpl and regenerated Makefile.in from it. For testing
I ran a config/make/make distclean loop.

* Makefile.tpl (distclean): Remove extraenous semicolon.
* Makefile.in: Rebuilt.

Makefile.in
Makefile.tpl

index 8ac778a0e09ce58e06b97f055eb01088769bb682..e95d3107d7bbbe27234a7245473ae7c3540e486f 100644 (file)
@@ -2740,7 +2740,7 @@ local-distclean:
        -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
        -rmdir c++tools fastjar gcc gnattools gotools 2>/dev/null
        -rmdir libcc1 libiberty texinfo zlib 2>/dev/null
-       -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
+       -find . -name config.cache -exec rm -f {} \; 2>/dev/null
 
 local-maintainer-clean:
        @echo "This command is intended for maintainers to use;"
index 431ce5ceb9c0361bf7cfdff60541677a6d7151e2..7797dca3de9d4ec655b8f5c918d7621e162a1705 100644 (file)
@@ -979,7 +979,7 @@ local-distclean:
        -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
        -rmdir c++tools fastjar gcc gnattools gotools 2>/dev/null
        -rmdir libcc1 libiberty texinfo zlib 2>/dev/null
-       -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
+       -find . -name config.cache -exec rm -f {} \; 2>/dev/null
 
 local-maintainer-clean:
        @echo "This command is intended for maintainers to use;"