mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
thread safety for pgsql (in version 17, remove this entirely)
This commit is contained in:
parent
0b8543e6dd
commit
23be5484e3
@ -822,8 +822,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgresql": {
|
"postgresql": {
|
||||||
"type": "url",
|
"type": "ghtagtar",
|
||||||
"url": "https://ftp.postgresql.org/pub/source/v16.2/postgresql-16.2.tar.bz2",
|
"repo": "postgres/postgres",
|
||||||
|
"match": "REL_16_\\d+",
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYRIGHT"
|
"path": "COPYRIGHT"
|
||||||
|
|||||||
@ -50,6 +50,8 @@ trait ldap
|
|||||||
->exec('sed -i -e "s/SUBDIRS= include libraries clients servers tests doc/SUBDIRS= include libraries clients servers/g" Makefile')
|
->exec('sed -i -e "s/SUBDIRS= include libraries clients servers tests doc/SUBDIRS= include libraries clients servers/g" Makefile')
|
||||||
->exec("make -j{$this->builder->concurrency}")
|
->exec("make -j{$this->builder->concurrency}")
|
||||||
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
||||||
|
|
||||||
|
FileSystem::replaceFileLineContainsString(BUILD_LIB_PATH . '/pkgconfig/ldap.pc', 'Libs: -L${libdir} -lldap', 'Libs: -L${libdir} -lldap -llber');
|
||||||
$this->patchPkgconfPrefix(['ldap.pc', 'lber.pc']);
|
$this->patchPkgconfPrefix(['ldap.pc', 'lber.pc']);
|
||||||
$this->patchLaDependencyPrefix(['libldap.la', 'liblber.la']);
|
$this->patchLaDependencyPrefix(['libldap.la', 'liblber.la']);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ trait postgresql
|
|||||||
$packages = 'zlib openssl readline libxml-2.0';
|
$packages = 'zlib openssl readline libxml-2.0';
|
||||||
$optional_packages = [
|
$optional_packages = [
|
||||||
'zstd' => 'libzstd',
|
'zstd' => 'libzstd',
|
||||||
// 'ldap' => 'ldap',
|
'ldap' => 'ldap',
|
||||||
'libxslt' => 'libxslt',
|
'libxslt' => 'libxslt',
|
||||||
'icu' => 'icu-i18n',
|
'icu' => 'icu-i18n',
|
||||||
];
|
];
|
||||||
@ -97,8 +97,8 @@ trait postgresql
|
|||||||
'--with-readline ' .
|
'--with-readline ' .
|
||||||
'--with-libxml ' .
|
'--with-libxml ' .
|
||||||
($this->builder->getLib('icu') ? '--with-icu ' : '--without-icu ') .
|
($this->builder->getLib('icu') ? '--with-icu ' : '--without-icu ') .
|
||||||
// ($this->builder->getLib('ldap') ? '--with-ldap ' : '--without-ldap ') .
|
($this->builder->getLib('ldap') ? '--with-ldap ' : '--without-ldap ') .
|
||||||
'--without-ldap ' .
|
// '--without-ldap ' .
|
||||||
($this->builder->getLib('libxslt') ? '--with-libxslt ' : '--without-libxslt ') .
|
($this->builder->getLib('libxslt') ? '--with-libxslt ' : '--without-libxslt ') .
|
||||||
($this->builder->getLib('zstd') ? '--with-zstd ' : '--without-zstd ') .
|
($this->builder->getLib('zstd') ? '--with-zstd ' : '--without-zstd ') .
|
||||||
'--without-lz4 ' .
|
'--without-lz4 ' .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user