Fix debian libtool bug (#276)

* add libtool installation for debian

* update composer lock

* re-fix libtool check

* re-fix libtool check
This commit is contained in:
Jerry Ma 2023-11-27 22:35:40 +08:00 committed by GitHub
parent 4400c6271e
commit 9dcda873f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ class LinuxToolCheckList
'git', 'autoconf', 'automake',
'tar', 'unzip', 'gzip',
'bzip2', 'cmake', 'patch',
'xz', 'libtool',
'xz', 'libtoolize',
];
public const TOOLS_RHEL = [
@ -102,6 +102,7 @@ class LinuxToolCheckList
try {
$is_debian = in_array($distro['dist'], ['debian', 'ubuntu']);
$to_install = $is_debian ? str_replace('xz', 'xz-utils', $missing) : $missing;
$to_install = $is_debian ? str_replace('libtoolize', 'libtool', $to_install) : $to_install;
shell(true)->exec($prefix . $install_cmd . ' ' . implode(' ', $to_install));
} catch (RuntimeException) {
return false;