pkg Installer fails on macOS
As described also here, installation on macOS currently fails. The failure occurs for v4 and latest. It occurs in the last step (postinstall scripts).
I wasn't sure which repo to file against (CI?), feel free to move.
What version of openCARP are you using?
-v4 and -latest (2020-11-27 15:48).
What operating system and processor architecture are you using?
macOS Catalina 10.15.7 x86_64
Steps to reproduce
Install or upgrade openCARP using pkg installer on macOS. Version 3.2 works, v4 and latest have this bug.
This bug occurs both for fresh installs and upgrades.
Relevant logs and/or screenshots
Log from installing at command line (repeated lines have been cut):
$ sudo installer -verbose -pkg opencarp-latest.pkg -target / installer: Package name is opencarp installer: Upgrading at base path / installer: Preparing for installation…..... installer: Preparing the disk…..... installer: Preparing opencarp…..... installer: Waiting for other installations to complete…..... installer: Configuring the installation…..... installer: # installer: Validating packages…..... # installer: Writing files…..... # installer: Moving items into place…..... # installer: Running package scripts…..... # installer: Running package scripts…..... installer: Running package scripts…..... installer: Validating packages…..... installer: Validating packages…..... # installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “opencarp-latest.pkg”.)
The issue occurs in the
postinstall step. We should bisect what changes have been made between 3.2 and 4. I'm happy to help with that! This is most likely related to the installation of carputils.
The error also occurs when carputils is deselected during installation, but as far as I can tell, the
postinstall script is still run (because it is not in the sub-pkg
opencarp.carputils but in the
(On a semi-related note: The installer will apparently gladly overwrite the carputils settings YAML in your home directory during an upgrade. Maybe that should be optional or automatically back up the existing file.)