From 952fbfffad7e1925605d8efbeefffd105a1e7878 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 25 Jan 2024 22:13:59 +1100 Subject: osx: remove XML::Parser intltool from bootstrap XML::Parser currently fails installing and is not needed anymore. Error is very similar to that outlined in where -lexpat does not seem to be added to the link command: https://stackoverflow.com/questions/65383579/cant-install-xmlparser-on-m1-mac-with-homebrew-perl-5-32 Part-of: --- cerbero/bootstrap/build_tools.py | 2 +- cerbero/bootstrap/osx.py | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/cerbero/bootstrap/build_tools.py b/cerbero/bootstrap/build_tools.py index b2b98a56..9c2c628e 100644 --- a/cerbero/bootstrap/build_tools.py +++ b/cerbero/bootstrap/build_tools.py @@ -40,7 +40,7 @@ class BuildTools (BootstrapperBase, Fetch): BUILD_TOOLS = ['automake', 'autoconf', 'libtool', 'pkg-config', 'orc', 'gettext-m4', 'meson'] PLAT_BUILD_TOOLS = { - Platform.DARWIN: ['intltool', 'sed', 'gperf', 'bison', 'flex', + Platform.DARWIN: ['sed', 'gperf', 'bison', 'flex', 'moltenvk-tools'], Platform.WINDOWS: ['nasm'], Platform.LINUX: ['intltool-m4'], diff --git a/cerbero/bootstrap/osx.py b/cerbero/bootstrap/osx.py index 3666209a..d6ed9469 100644 --- a/cerbero/bootstrap/osx.py +++ b/cerbero/bootstrap/osx.py @@ -24,31 +24,16 @@ from cerbero.config import Distro from cerbero.utils import shell from cerbero.utils import messages as m -CPANM_VERSION = '1.7044' -CPANM_URL_TPL = 'https://raw.githubusercontent.com/miyagawa/cpanminus/{}/cpanm' -CPANM_CHECKSUM = '22b92506243649a73cfb55c5990cedd24cdbb20b15b4530064d2496d94d1642b' - class OSXBootstrapper (BootstrapperBase): def __init__(self, config, offline, assume_yes): super().__init__(config, offline) - url = CPANM_URL_TPL.format(CPANM_VERSION) - self.fetch_urls.append((url, None, CPANM_CHECKSUM)) async def start(self, jobs=0): # skip system package install if not needed if not self.config.distro_packages_install: return - self._install_perl_deps() - - def _install_perl_deps(self): - cpanm_installer = os.path.join(self.config.local_sources, 'cpanm') - shell.new_call(['chmod', '+x', cpanm_installer]) - # Install XML::Parser, required for intltool - cmd = ['sudo', cpanm_installer, 'XML::Parser'] - m.message("Installing XML::Parser, may require a password for running \'" + " ".join(cmd) + "\'") - shell.new_call(cmd, interactive=True) def register_all(): -- cgit v1.2.3