From 9de81430042275471a998cd32b0aba72237ada95 Mon Sep 17 00:00:00 2001 From: "Hans Krentel (hakre)" Date: Sat, 22 Nov 2025 10:58:24 +0100 Subject: [PATCH] build make -C ext/* install-modules w/o modules/* GH-20557 update the build recipe template as in PHP-8.5 ext/opcache errors on `make -C ext/opcache install` as modules/* does not resolve to actual filenames any longer, but to `modules/*` verbatim which fails the `install` command yielding the following diagnostics: cp: cannot stat 'modules/*': No such file or directory and exit status 1 (resolved by make as build error 2). --- build/Makefile.global | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/Makefile.global b/build/Makefile.global index 16d57b54c8313..e55a7c0fcb1f4 100644 --- a/build/Makefile.global +++ b/build/Makefile.global @@ -47,7 +47,8 @@ install-modules: build-modules $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" @rm -f modules/*.la >/dev/null 2>&1 - @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) + @test -z "`ls modules/* 2>/dev/null`" || \ + $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) install-headers: -@if test "$(INSTALL_HEADERS)"; then \