only comment out that line temporarily

This commit is contained in:
DubbleClick 2025-07-18 20:45:46 +07:00
parent 04f3f0872d
commit fff23649cf
2 changed files with 2 additions and 1 deletions

View File

@ -260,6 +260,7 @@ abstract class BuilderBase
} }
} }
file_put_contents(BUILD_BIN_PATH . '/php-config', implode('', $lines)); file_put_contents(BUILD_BIN_PATH . '/php-config', implode('', $lines));
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
FileSystem::createDir(BUILD_MODULES_PATH); FileSystem::createDir(BUILD_MODULES_PATH);
try { try {
foreach ($this->getExts() as $ext) { foreach ($this->getExts() as $ext) {
@ -273,6 +274,7 @@ abstract class BuilderBase
throw $e; throw $e;
} }
FileSystem::replaceFileLineContainsString(BUILD_BIN_PATH . '/php-config', 'extension_dir=', $extension_dir_line); FileSystem::replaceFileLineContainsString(BUILD_BIN_PATH . '/php-config', 'extension_dir=', $extension_dir_line);
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', '# test "[$]$1" = "no" && $1=yes', 'test "[$]$1" = "no" && $1=yes');
} }
/** /**

View File

@ -285,7 +285,6 @@ abstract class UnixBuilderBase extends BuilderBase
logger()->debug('Patching phpize prefix'); logger()->debug('Patching phpize prefix');
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', "prefix=''", "prefix='" . BUILD_ROOT_PATH . "'"); FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', "prefix=''", "prefix='" . BUILD_ROOT_PATH . "'");
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', 's##', 's#/usr/local#'); FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', 's##', 's#/usr/local#');
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
} }
// patch php-config // patch php-config
if (file_exists(BUILD_BIN_PATH . '/php-config')) { if (file_exists(BUILD_BIN_PATH . '/php-config')) {