Skip to content

Makefile: split lima-additional-guestagents-*.tar.gz from lima-*.tar.gz #3503

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

Merged
merged 4 commits into from
May 12, 2025

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented May 7, 2025

make artifact now produces two archives that will be uploaded to https://github.com/lima-vm/lima/releases:

  1. lima-<VERSION>-Darwin-arm64.tar.gz: (make native)
  • core components (bin/limactl, share/lima/templates, ...)
  • share/lima/lima-guestagent.Linux-aarch64
  1. lima-additional-guestagents-<VERSION>-Darwin-arm64.tar.gz: (make additional-guestagents)
  • share/lima/lima-guestagent.Linux-armv7l
  • share/lima/lima-guestagent.Linux-ppc64le
  • share/lima/lima-guestagent.Linux-riscv64
  • share/lima/lima-guestagent.Linux-s390x
  • share/lima/lima-guestagent.Linux-x86_64

For compatibility reason, make still builds the guestagents for all the architectures by default.

Package maintainers are suggested to split lima package to lima and lima-additional-guestagents.

Fix #3321

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda force-pushed the fix-3321 branch 2 times, most recently from 756a491 to 51a193b Compare May 7, 2025 09:12
@AkihiroSuda

This comment was marked as resolved.

@AkihiroSuda AkihiroSuda marked this pull request as draft May 7, 2025 09:25
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
`make artifact` now produces two archives that will be uploaded to
<https://github.com/lima-vm/lima/releases>:

1. lima-<VERSION>-Darwin-arm64.tar.gz: (`make native`)
  - core components (bin/limactl, share/lima/templates, ...)
  - share/lima/lima-guestagent.Linux-aarch64

2. lima-additional-guestagents-<VERSION>-Darwin-arm64.tar.gz: (`make additional-guestagents`)
  - share/lima/lima-guestagent.Linux-armv7l
  - share/lima/lima-guestagent.Linux-ppc64le
  - share/lima/lima-guestagent.Linux-riscv64
  - share/lima/lima-guestagent.Linux-s390x
  - share/lima/lima-guestagent.Linux-x86_64

For compatibility reason, `make` still builds the guestagents
for all the architectures by default.

Package maintainers are suggested to split `lima` package
to `lima` and `lima-additional-guestagents`.

Fix issue 3321

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda marked this pull request as ready for review May 7, 2025 09:39
@AkihiroSuda AkihiroSuda requested a review from a team May 8, 2025 06:56
@AkihiroSuda
Copy link
Member Author

Will release v1.1 RC after merging this

cc @lima-vm/committers

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok to me.

But honestly, I find the Makefile is getting increasingly unreadable and I wonder if it would be better if it was replaced by a couple of build scripts.

We don't really make use of dependency management; rebuilding everything from scratch is typically just as fast anyways.

@@ -140,7 +140,7 @@ exe: _output/bin/limactl$(exe)

.PHONY: minimal native
minimal: clean limactl native-guestagent default_template
native: clean limactl helpers native-guestagent templates
native: clean limactl helpers native-guestagent templates template_experimentals
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (changing native target to include experimental templates) is not covered by the PR description, but I agree with the change.

@jandubois jandubois merged commit 12bbe36 into lima-vm:master May 12, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider setting CONFIG_GUESTAGENT_ARCH_{ARMV7L, RISCV64, S390X, ...} to n (for Homebrew)
2 participants