From a9d1d29522a94ef85ea47e2e474b54db4dbd86ec Mon Sep 17 00:00:00 2001 From: Patka Date: Sun, 22 Sep 2024 18:59:35 +0200 Subject: [PATCH] build-support/php: fix reproducibility of buildComposerProject2 --- .../php/builders/v2/hooks/composer-vendor-hook.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh b/pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh index 7a14e544ae0d..f6d1157456f7 100644 --- a/pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh +++ b/pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh @@ -60,8 +60,10 @@ composerVendorBuildHook() { echo "Executing composerVendorBuildHook" composer \ - --apcu-autoloader \ - --apcu-autoloader-prefix="$(jq -r -c 'try ."content-hash"' < composer.lock)" \ + # The acpu-autoloader is not reproducible and has to be disabled. + # Upstream PR: https://github.com/composer/composer/pull/12090 + # --apcu-autoloader \ + # --apcu-autoloader-prefix="$(jq -r -c 'try ."content-hash"' < composer.lock)" \ --no-interaction \ --no-progress \ --optimize-autoloader \