suggestion

This commit is contained in:
DubbleClick
2025-06-20 17:11:52 +07:00
parent 2abbb75f98
commit 58d979712e
4 changed files with 14 additions and 21 deletions

View File

@@ -193,7 +193,7 @@ class Extension
* If you need to patch some code, overwrite this
* return true if you patched something, false if not
*/
public function patchBeforeSharedBuild(): bool
public function patchBeforeSharedPhpize(): bool
{
return false;
}
@@ -394,13 +394,17 @@ class Extension
'LD_LIBRARY_PATH' => BUILD_LIB_PATH,
];
if ($this->patchBeforeSharedPhpize()) {
logger()->info("Extension [{$this->getName()}] patched before shared phpize");
}
// prepare configure args
shell()->cd($this->source_dir)
->setEnv($env)
->exec(BUILD_BIN_PATH . '/phpize');
if ($this->patchBeforeSharedConfigure()) {
logger()->info('ext [' . $this->getName() . '] patching before shared configure');
logger()->info("Extension [{$this->getName()}] patched before shared configure");
}
shell()->cd($this->source_dir)
@@ -419,7 +423,7 @@ class Extension
);
if ($this->patchBeforeSharedMake()) {
logger()->info('ext [' . $this->getName() . '] patching before shared make');
logger()->info("Extension [{$this->getName()}] patched before shared make");
}
shell()->cd($this->source_dir)