Skip to content

Codesign code breaks build on older macOS #5872

@barracuda156

Description

@barracuda156

Work environment

macOS 10.6.8 ppc
rizin 0.8.2

Expected behavior

The build should succeed.

Actual behavior

It fails due to

if host_machine.system() == 'darwin'
# CodeSign the rizin binary to make debugger work by applying the
# entitlements
entitlements = files('rizin_macos.xml')
macos_sign_sh = meson.current_source_dir() / 'macos_sign.sh'
custom_target('rizin-signing',
build_by_default: true,
build_always_stale: true,
command: [
macos_sign_sh,
'false',
entitlements,
rizin_exe.full_path(),
],
depends: rizin_exe,
output: 'rizin-signing',
install: false,
)
meson.add_install_script(meson.current_source_dir() / 'macos_sign.sh',
'true',
entitlements,
rizin_bindir / 'rizin',
)
endif

with an error that it cannot read entitlements.

Steps to reproduce the behavior

Run the build on < 10.7 (I am not sure of specific threshold for this failure, but at least on 10.6 it fails).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions