From 095af042d00dcdfb4b57f2237dd7bf9f61c565b9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 6 Dec 2023 11:46:24 +0100 Subject: build-support/php: prevent the creation of symlinks of `bin` ending with `.bat` (cherry picked from commit f59d1cf6d6494900826bf80fa6dd7547d51e75d3) --- pkgs/build-support/php/hooks/composer-install-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support/php/hooks/composer-install-hook.sh') diff --git a/pkgs/build-support/php/hooks/composer-install-hook.sh b/pkgs/build-support/php/hooks/composer-install-hook.sh index e865ae116be2b..edba0e5eec4e6 100644 --- a/pkgs/build-support/php/hooks/composer-install-hook.sh +++ b/pkgs/build-support/php/hooks/composer-install-hook.sh @@ -116,7 +116,7 @@ composerInstallInstallHook() { cp -r . "$out"/share/php/"${pname}"/ # Create symlinks for the binaries. - jq -r -c 'try .bin[]' composer.json | while read -r bin; do + jq -r -c 'try (.bin[] | select(test(".bat$")? | not) )' composer.json | while read -r bin; do mkdir -p "$out"/share/php/"${pname}" "$out"/bin makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" done -- cgit 1.4.1