Skip to content

Failed building multiarch on macOS since declare is missing -A #137

@EugenMayer

Description

@EugenMayer

using bash on OSX running ./update_multiarch.sh 11

i end up with an error

...
./hotspot_shasums_latest.sh: line 1: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

Declare on OSX does not support -A - could we have any alternatives for this implementation ?

I could somewhat fix this issue by upgrading bash

 brew install bash

And then patch

#!/bin/bash

to

#!/usr/bin/env bash

in update_multiartch.sh or simply run the script

bash update_multiartch.sh 11 so bash 5.0 is picked.

Maybe this either helps somebody running into that or we decide to probably not use -A and work around it - i guess that is a decision you maintainers should decide on :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions