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

stable-2.3 | packaging: Use patch for applying patches #3725

Merged

Conversation

Jakob-Naucke
Copy link
Member

tools/packaging/scripts/apply_patches.sh uses git apply $patch, but
this will not apply to subdirectories. If one wanted to apply with
git apply, they'd have to run it with --directory=...
relative to the Git tree's root (absolute will not work!). I suggest
we just use patch, which will do what we expected git apply would
do.

patch is also added to build containers that require it.

Fixes: #3690
Signed-off-by: Jakob Naucke jakob.naucke@ibm.com

Backport of #3691

`tools/packaging/scripts/apply_patches.sh` uses `git apply $patch`, but
this will not apply to subdirectories. If one wanted to apply with
`git apply`, they'd have to run it with `--directory=...`
_relative to the Git tree's root_ (absolute will not work!). I suggest
we just use `patch`, which will do what we expected `git apply` would
do.

`patch` is also added to build containers that require it.

Fixes: kata-containers#3690
Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
@Jakob-Naucke Jakob-Naucke added no-forward-port-needed backport Change from a newer branch / repository that was backported area/packaging Issues related to packaging labels Feb 18, 2022
Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @Jakob-Naucke.

lgtm

@Jakob-Naucke Jakob-Naucke changed the title packaging: Use patch for applying patches stable-2.3 | packaging: Use patch for applying patches Feb 18, 2022
@Jakob-Naucke
Copy link
Member Author

/test

Copy link
Member

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @Jakob-Naucke!

@fidencio fidencio merged commit bf9b364 into kata-containers:stable-2.3 Feb 19, 2022
@Jakob-Naucke Jakob-Naucke deleted the backport-fix-apply-patches branch February 28, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Issues related to packaging backport Change from a newer branch / repository that was backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants