mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 14:58:16 +00:00
Merge pull request #3691 from Jakob-Naucke/fix-apply-patches
packaging: Use `patch` for applying patches
This commit is contained in:
@@ -40,7 +40,7 @@ if [ -d "$patches_dir" ]; then
|
|||||||
echo "INFO: Found ${#patches[@]} patches"
|
echo "INFO: Found ${#patches[@]} patches"
|
||||||
for patch in ${patches[@]}; do
|
for patch in ${patches[@]}; do
|
||||||
echo "INFO: Apply $patch"
|
echo "INFO: Apply $patch"
|
||||||
git apply "$patch" || \
|
patch -p1 < "$patch" || \
|
||||||
{ echo >&2 "ERROR: Not applied. Exiting..."; exit 1; }
|
{ echo >&2 "ERROR: Not applied. Exiting..."; exit 1; }
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
@@ -16,6 +16,7 @@ RUN apt-get update && \
|
|||||||
flex \
|
flex \
|
||||||
git \
|
git \
|
||||||
iptables \
|
iptables \
|
||||||
libelf-dev && \
|
libelf-dev \
|
||||||
|
patch && \
|
||||||
if [ "$(uname -m)" = "s390x" ]; then apt-get install -y --no-install-recommends libssl-dev; fi && \
|
if [ "$(uname -m)" = "s390x" ]; then apt-get install -y --no-install-recommends libssl-dev; fi && \
|
||||||
apt-get clean && rm -rf /var/lib/lists/
|
apt-get clean && rm -rf /var/lib/lists/
|
||||||
|
@@ -43,6 +43,7 @@ RUN apt-get update && apt-get upgrade -y && \
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
libseccomp-dev \
|
libseccomp-dev \
|
||||||
libseccomp2 \
|
libseccomp2 \
|
||||||
|
patch \
|
||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
rsync \
|
rsync \
|
||||||
|
Reference in New Issue
Block a user