mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Use patch for current package exclusively
This commit is contained in:
parent
a1cadecc54
commit
80d922ab3b
@ -7,6 +7,7 @@ namespace Package\Extension;
|
|||||||
use StaticPHP\Attribute\Package\AfterStage;
|
use StaticPHP\Attribute\Package\AfterStage;
|
||||||
use StaticPHP\Attribute\Package\BeforeStage;
|
use StaticPHP\Attribute\Package\BeforeStage;
|
||||||
use StaticPHP\Attribute\Package\Extension;
|
use StaticPHP\Attribute\Package\Extension;
|
||||||
|
use StaticPHP\Attribute\PatchDescription;
|
||||||
use StaticPHP\Package\PackageInstaller;
|
use StaticPHP\Package\PackageInstaller;
|
||||||
use StaticPHP\Toolchain\Interface\ToolchainInterface;
|
use StaticPHP\Toolchain\Interface\ToolchainInterface;
|
||||||
use StaticPHP\Util\SourcePatcher;
|
use StaticPHP\Util\SourcePatcher;
|
||||||
@ -14,7 +15,8 @@ use StaticPHP\Util\SourcePatcher;
|
|||||||
#[Extension('readline')]
|
#[Extension('readline')]
|
||||||
class readline
|
class readline
|
||||||
{
|
{
|
||||||
#[BeforeStage('php', 'unix-make-cli')]
|
#[BeforeStage('php', 'unix-make-cli', 'ext-readline')]
|
||||||
|
#[PatchDescription('Fix readline static build with musl')]
|
||||||
public function beforeMakeLinuxCli(PackageInstaller $installer, ToolchainInterface $toolchain): void
|
public function beforeMakeLinuxCli(PackageInstaller $installer, ToolchainInterface $toolchain): void
|
||||||
{
|
{
|
||||||
if ($toolchain->isStatic()) {
|
if ($toolchain->isStatic()) {
|
||||||
@ -23,7 +25,7 @@ class readline
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[AfterStage('php', 'unix-make-cli')]
|
#[AfterStage('php', 'unix-make-cli', 'ext-readline')]
|
||||||
public function afterMakeLinuxCli(PackageInstaller $installer, ToolchainInterface $toolchain): void
|
public function afterMakeLinuxCli(PackageInstaller $installer, ToolchainInterface $toolchain): void
|
||||||
{
|
{
|
||||||
if ($toolchain->isStatic()) {
|
if ($toolchain->isStatic()) {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ use StaticPHP\Util\FileSystem;
|
|||||||
#[Library('imap')]
|
#[Library('imap')]
|
||||||
class imap
|
class imap
|
||||||
{
|
{
|
||||||
#[AfterStage('php', 'patch-embed-scripts')]
|
#[AfterStage('php', 'patch-embed-scripts', 'imap')]
|
||||||
#[PatchDescription('Fix missing -lcrypt in php-config libs on glibc systems')]
|
#[PatchDescription('Fix missing -lcrypt in php-config libs on glibc systems')]
|
||||||
public function afterPatchScripts(): void
|
public function afterPatchScripts(): void
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user