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

update patches loading to support v6.1.0 and cpu-max #58

Merged
merged 3 commits into from
Sep 9, 2021

Conversation

tonistiigi
Copy link
Owner

@tonistiigi tonistiigi commented Aug 26, 2021

closes #59

Modifies patches loading to

  • support loading custom patches via build-arg, eg for cpu-max and buildkit embedded target patches
  • support custom selection of alpine patches for qemu v6.1.0

The alpine/musl patches situation isn't very stable. Current works with v6.0 and v6.1 . Doesn't work with 5.x and may break when alpine/musl updates. I think we might need a "config file" with specific sports commit for specific version ranges or version-based patch loading from local files. If we copy patches from aports to this repo we also need to add exceptions for them to license as I don't know where they are coming from and they could be gpl. We can work on this as follow-up.

@crazy-max

Signed-off-by: Tonis Tiigi [email protected]

@tonistiigi tonistiigi force-pushed the update-v6.1-patches branch from d4030b8 to 0b1a9e9 Compare August 26, 2021 06:23
Dockerfile Outdated
if [ "$(printf "$(cat qemu/VERSION)\n6.0.90" | sort -V | head -n 1)" = "6.0.90" ]; then
# this issue has been fixed upstream by using non-glibc specific macro
rm -rf patches/alpine-patches/fix-sigevent-and-sigval_t.patch || true
# following patches are already applied upstream
Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm not quite sure why these didn't cause issues in https://github.com/tonistiigi/binfmt/runs/3416730404

@tonistiigi tonistiigi force-pushed the update-v6.1-patches branch from 0b1a9e9 to fb32164 Compare August 26, 2021 16:48
@tonistiigi tonistiigi marked this pull request as ready for review August 26, 2021 16:53
@tonistiigi tonistiigi force-pushed the update-v6.1-patches branch 3 times, most recently from 0765a23 to d0dd3d0 Compare August 27, 2021 19:05
@tonistiigi
Copy link
Owner Author

Alpine updated their patches to v6.1 and I made our selection to match theirs with version based ranges(+additional out patches). If needed the aports.config can be extended in the future with more fields with additional exceptions (eg. if we include our patches only for a specific range).

@tonistiigi tonistiigi force-pushed the update-v6.1-patches branch 2 times, most recently from 2e19b6b to 624d941 Compare September 2, 2021 01:42
@crazy-max crazy-max force-pushed the update-v6.1-patches branch 6 times, most recently from c0f1741 to 624d941 Compare September 2, 2021 15:44
Copy link
Collaborator

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

LGTM

@tonistiigi tonistiigi merged commit ee79c56 into master Sep 9, 2021
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.

Building for qemu v6.1.0
2 participants