Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non x86 builds of charm-tools itself #627

Merged
merged 2 commits into from
Sep 19, 2022

Conversation

fnordahl
Copy link
Collaborator

Please review commit by commit.

  • setup: Update charm-tools pin set

    • Update the dependency pin set so that dependencies can be
      consumed from versions from the Ubuntu distribution wherever
      possible.
  • snap: Ensure build succeeds on non-x86 architectures

    • Update snap recipe so that building charm-tools itself succeeds on non-x86 architectures.

    • With reproducibility and maintainability of the snap in mind, make use of Python dependencies from Ubuntu distribution packages wherever possible.

    • For any dependencies not available in the Ubuntu distribution, we request a build from source as this will ensure that build-package requirements are uncovered at a early stage in the development process, preferably already in the gate check.

    • Drop the PYTHON related build-environment variables as these would mandate installing all build dependencies in the snap, which is not what we want. Instead reference these variables when needed in the build recipe.

Update the dependency pin set so that dependencies can be
consumed from versions from the Ubuntu distribution wherever
possible.
Update snap recipe so that building charm-tools itself succeeds
on non-x86 architectures.

With reproducibility and maintainability of the snap in mind,
make use of Python dependencies from Ubuntu distribution
packages wherever possible.

For any dependencies not available in the Ubuntu distribution, we
request a build from source as this will ensure that build-package
requirements are uncovered at a early stage in the development
process, preferably already in the gate check.

Drop the PYTHON related build-environment variables as these would
mandate installing all build dependencies in the snap, which is
not what we want.  Instead reference these variables when needed
in the build recipe.
@fnordahl
Copy link
Collaborator Author

Binary artifacts available for review in the latest/edge/fix-non-x86-builds snap branch.

Build logs per architecture:
charm_s390x.txt
charm_ppc64el.txt
charm_arm64.txt
charm_amd64.txt

@fnordahl fnordahl changed the title Fix non x86 builds Fix non x86 builds of charm-tools itself Sep 19, 2022
@ajkavanagh ajkavanagh merged commit fa67c89 into juju:master Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants