Skip to content

Commit 34e14e9

Browse files
authored
Fix(update): Use Gitlab repo sourcecode and our toolchain to build (wolfi-dev#55374)
- We can use our GitMonitor now which is much accurate that release monitor - Even the tar and the gitlab source is not an exact match they result in the same artifact Fix: chainguard-dev/internal-dev#12692 using this will result in less tickets of update bot failures in future. Signed-off-by: Debasish Biswas <[email protected]>
1 parent 2b02ea7 commit 34e14e9

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

cryptsetup.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package:
33
name: cryptsetup
44
version: 2.7.5
5-
epoch: 21
5+
epoch: 22
66
description: Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi
77
copyright:
88
- license: GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception
@@ -11,12 +11,6 @@ package:
1111
- merged-sbin
1212
- wolfi-baselayout
1313

14-
var-transforms:
15-
- from: ${{package.version}}
16-
match: ^(\d+\.\d+)\.\d+$
17-
replace: "$1"
18-
to: major-minor-version
19-
2014
environment:
2115
contents:
2216
packages:
@@ -29,19 +23,31 @@ environment:
2923
- busybox
3024
- ca-certificates-bundle
3125
- coreutils
26+
- gettext-dev
3227
- json-c-dev
3328
- libssh
3429
- libssh-dev
30+
- libtool
3531
- lvm2-dev
3632
- openssl-dev
33+
- pkgconf-dev
3734
- popt-dev
3835
- util-linux-dev
3936

4037
pipeline:
41-
- uses: fetch
38+
- uses: git-checkout
4239
with:
43-
expected-sha256: f2c6d22e53435de5d35dc9fdc86600d3e5e2227d27970b07a8e6a0f9f7bd42ac
44-
uri: https://www.kernel.org/pub/linux/utils/cryptsetup/v${{vars.major-minor-version}}/cryptsetup-${{package.version}}.tar.gz
40+
expected-commit: 3c3a8210e4927b5ce06481f91468c6ad9779b3aa
41+
repository: https://gitlab.com/cryptsetup/cryptsetup.git
42+
tag: v${{package.version}}
43+
44+
- runs: |
45+
# Extract the current gettext version
46+
GETTEXT_VERSION=$(gettext --version | head -1 | awk '{print $4}')
47+
# Update the configure.ac file with the current version
48+
sed -i "s/AM_GNU_GETTEXT_VERSION(\[[0-9.]*\])/AM_GNU_GETTEXT_VERSION([$GETTEXT_VERSION])/g" configure.ac
49+
50+
./autogen.sh
4551
4652
- uses: autoconf/configure
4753
with:
@@ -96,8 +102,10 @@ subpackages:
96102

97103
update:
98104
enabled: true
99-
release-monitor:
100-
identifier: 13709
105+
ignore-regex-patterns:
106+
- '\d+_\d+_\d+' # Ignore v1 version as they contain _
107+
git:
108+
strip-prefix: v
101109

102110
test:
103111
environment:

0 commit comments

Comments
 (0)