Skip to content

Commit 93a227b

Browse files
committed
Fix mongodb 2.3.0 introduced in-tree build bug
1 parent 4eaeeb8 commit 93a227b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/SPC/builder/extension/mongodb.php

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

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

1011
#[CustomExt('mongodb')]
1112
class mongodb extends Extension
1213
{
14+
public function patchBeforeBuildconf(): bool
15+
{
16+
FileSystem::replaceFileRegex(
17+
SOURCE_PATH . '/php-src/ext/mongodb/config.m4',
18+
'/^(\s+)(src\/libmongoc\/)/m',
19+
'$1${ac_config_dir}/$2'
20+
);
21+
return true;
22+
}
23+
1324
public function getUnixConfigureArg(bool $shared = false): string
1425
{
1526
$arg = ' --enable-mongodb' . ($shared ? '=shared' : '') . ' ';

0 commit comments

Comments
 (0)