Skip to content

Commit

Permalink
fix: use latest fpm version (#1144)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co>
  • Loading branch information
amannocci authored Mar 29, 2024
1 parent f12d3ef commit 1469804
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ruby:2.7.1-alpine3.12
FROM ruby:3.3.0-alpine3.18

ENV FPM_VERSION 1.11.0
ENV FPM_VERSION 1.15.1
RUN apk add --no-cache \
alpine-sdk make cpio curl libarchive-tools make php-pear \
python3 py3-virtualenv py3-setuptools py3-pip \
Expand All @@ -15,4 +15,4 @@ RUN (cd /usr/local/bundle/gems/fpm-${FPM_VERSION}/ ; patch -p 1 < /tmp/fpm_apm.p

COPY create-package.sh /bin
WORKDIR /app
ENTRYPOINT ["/bin/create-package.sh"]
ENTRYPOINT ["/bin/create-package.sh"]
22 changes: 11 additions & 11 deletions packaging/fpm_apm.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
From b0c150228d9660d45144f470607bf796e36ba265 Mon Sep 17 00:00:00 2001
From: Victor Martinez <VictorMartinezRubio@gmail.com>
Date: Thu, 23 Jul 2020 15:32:54 +0100
Subject: [PATCH] As suggested in
https://github.com/jordansissel/fpm/issues/1227
From 1715ee661dd284401f91b96a694e18f27742bce0 Mon Sep 17 00:00:00 2001
From: Adrien Mannocci <adrien.mannocci@elastic.co>
Date: Tue, 26 Mar 2024 16:55:29 +0100
Subject: [PATCH] fix: correct apk bad format

Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co>
---
lib/fpm/package/apk.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fpm/package/apk.rb b/lib/fpm/package/apk.rb
index dd69067..9648e7f 100644
index 596753c..eef881a 100644
--- a/lib/fpm/package/apk.rb
+++ b/lib/fpm/package/apk.rb
@@ -252,7 +252,7 @@ class FPM::Package::APK< FPM::Package

# directories have a magic string inserted into their name
full_record_path = extension_header[TAR_NAME_OFFSET_START..TAR_NAME_OFFSET_END].delete("\0")
- full_record_path = add_paxstring(full_record_path)
+ # full_record_path = add_paxstring(full_record_path)
+ #full_record_path = add_paxstring(full_record_path)

# hash data contents with sha1, if there is any content.
if(typeflag == '5')
--
2.24.3 (Apple Git-128)
--
2.39.3 (Apple Git-146)

0 comments on commit 1469804

Please sign in to comment.