Skip to content

Commit a628054

Browse files
committed
Add libxml2 dep for graphicsmagick, add tests and patches
1 parent 0b63d99 commit a628054

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

config/lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@
207207
"zlib",
208208
"libpng",
209209
"libjpeg",
210-
"bzip2"
210+
"bzip2",
211+
"libxml2"
211212
],
212213
"lib-suggests": [
213214
"libwebp",

src/SPC/builder/extension/gmagick.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
namespace SPC\builder\extension;
66

77
use SPC\builder\Extension;
8+
use SPC\store\FileSystem;
89
use SPC\util\CustomExt;
910

1011
#[CustomExt('gmagick')]
1112
class gmagick extends Extension
1213
{
14+
public function patchBeforeBuildconf(): bool
15+
{
16+
FileSystem::replaceFileStr($this->source_dir . '/gmagick.c', 'zend_exception_get_default()', 'zend_ce_exception');
17+
return true;
18+
}
19+
1320
public function getUnixConfigureArg(bool $shared = false): string
1421
{
1522
$disable_omp = ' ac_cv_func_omp_pause_resource_all=no';

src/globals/test-extensions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
// test php version (8.1 ~ 8.4 available, multiple for matrix)
1515
$test_php_version = [
1616
// '8.1',
17-
// '8.2',
17+
'8.2',
1818
'8.3',
19-
// '8.4',
19+
'8.4',
2020
'8.5',
2121
// 'git',
2222
];
@@ -27,30 +27,30 @@
2727
'macos-15', // bin/spc for arm64
2828
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
2929
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30-
// 'ubuntu-24.04', // bin/spc for x86_64
30+
'ubuntu-24.04', // bin/spc for x86_64
3131
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
3232
// 'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
3434
// 'windows-2025',
3535
];
3636

3737
// whether enable thread safe
38-
$zts = true;
38+
$zts = false;
3939

4040
$no_strip = false;
4141

4242
// compress with upx
4343
$upx = false;
4444

4545
// whether to test frankenphp build, only available for macOS and linux
46-
$frankenphp = false;
46+
$frankenphp = true;
4747

4848
// prefer downloading pre-built packages to speed up the build process
4949
$prefer_pre_built = false;
5050

5151
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
5252
$extensions = match (PHP_OS_FAMILY) {
53-
'Linux', 'Darwin' => 'curl,swoole',
53+
'Linux', 'Darwin' => 'gmagick',
5454
'Windows' => 'intl',
5555
};
5656

@@ -66,7 +66,7 @@
6666

6767
// If you want to test extra libs for extensions, add them below (comma separated, example `libwebp,libavif`). Unnecessary, when $with_suggested_libs is true.
6868
$with_libs = match (PHP_OS_FAMILY) {
69-
'Linux', 'Darwin' => 'krb5',
69+
'Linux', 'Darwin' => '',
7070
'Windows' => '',
7171
};
7272

0 commit comments

Comments
 (0)