Skip to content

Commit

Permalink
Merge pull request #3725 from Jakob-Naucke/backport-fix-apply-patches
Browse files Browse the repository at this point in the history
stable-2.3 | packaging: Use `patch` for applying patches
  • Loading branch information
fidencio committed Feb 19, 2022
2 parents 1af292c + 406f00a commit bf9b364
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/packaging/scripts/apply_patches.sh
Expand Up @@ -40,7 +40,7 @@ if [ -d "$patches_dir" ]; then
echo "INFO: Found ${#patches[@]} patches"
for patch in ${patches[@]}; do
echo "INFO: Apply $patch"
git apply "$patch" || \
patch -p1 < "$patch" || \
{ echo >&2 "ERROR: Not applied. Exiting..."; exit 1; }
done
else
Expand Down
3 changes: 2 additions & 1 deletion tools/packaging/static-build/kernel/Dockerfile
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update && \
flex \
git \
iptables \
libelf-dev && \
libelf-dev \
patch && \
if [ "$(uname -m)" = "s390x" ]; then apt-get install -y --no-install-recommends libssl-dev; fi && \
apt-get clean && rm -rf /var/lib/lists/
1 change: 1 addition & 0 deletions tools/packaging/static-build/qemu/Dockerfile
Expand Up @@ -43,6 +43,7 @@ RUN apt-get update && apt-get upgrade -y && \
pkg-config \
libseccomp-dev \
libseccomp2 \
patch \
python \
python-dev \
rsync \
Expand Down

0 comments on commit bf9b364

Please sign in to comment.