Skip to content

Commit 621a06b

Browse files
committed
[zfs-2.1.16] Workaround for Ubuntu runners
When Alien converts the RPMs to DEB packages, it calls this line: $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1") This seems to fail on zfs-2.1.16 with: cpio: ./usr/src/spl-2.1.16/6.5.0-1025-azure: Cannot open: No such file or directory The workaround is just to always return true from the 'cpio' command. This does not seem to affect anything. Signed-off-by: Tony Hutter <[email protected]>
1 parent aabb7e6 commit 621a06b

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/zfs-tests-functional.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ jobs:
3131
./configure --enable-debug --enable-debuginfo
3232
- name: Make
3333
run: |
34+
# Hack for zfs-2.1.16+
35+
#
36+
# When Alien converts the RPMs to DEB packages, it calls this line:
37+
#
38+
# $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp cpio
39+
# --extract --make-directories --no-absolute-filenames
40+
# --preserve-modification-time) 2>&1")
41+
#
42+
# This seems to fail with zfs-2.1.16 with:
43+
#
44+
# cpio: ./usr/src/spl-2.1.16/6.5.0-1025-azure: Cannot open: No such file or directory
45+
#
46+
# The workaround is just to always return true from the 'cpio' command.
47+
# This does not seem to affect anything.
48+
sudo sed -i 's/preserve-modification-time/preserve-modification-time | true/g' /usr/share/perl5/Alien/Package/Rpm.pm
49+
3450
make --no-print-directory -s pkg-utils pkg-kmod
3551
- name: Install
3652
run: |

.github/workflows/zfs-tests-sanity.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ jobs:
2727
./configure --enable-debug --enable-debuginfo
2828
- name: Make
2929
run: |
30+
# Hack for zfs-2.1.16+
31+
#
32+
# When Alien converts the RPMs to DEB packages, it calls this line:
33+
#
34+
# $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp cpio
35+
# --extract --make-directories --no-absolute-filenames
36+
# --preserve-modification-time) 2>&1")
37+
#
38+
# This seems to fail with zfs-2.1.16 with:
39+
#
40+
# cpio: ./usr/src/spl-2.1.16/6.5.0-1025-azure: Cannot open: No such file or directory
41+
#
42+
# The workaround is just to always return true from the 'cpio' command.
43+
# This does not seem to affect anything.
44+
sudo sed -i 's/preserve-modification-time/preserve-modification-time | true/g' /usr/share/perl5/Alien/Package/Rpm.pm
45+
3046
make --no-print-directory -s pkg-utils pkg-kmod
3147
- name: Install
3248
run: |

.github/workflows/zloop.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ jobs:
2929
./configure --enable-debug --enable-debuginfo
3030
- name: Make
3131
run: |
32+
# Hack for zfs-2.1.16+
33+
#
34+
# When Alien converts the RPMs to DEB packages, it calls this line:
35+
#
36+
# $this->do("rpm2cpio '".$this->filename."' | (cd $workdir; $decomp cpio
37+
# --extract --make-directories --no-absolute-filenames
38+
# --preserve-modification-time) 2>&1")
39+
#
40+
# This seems to fail with zfs-2.1.16 with:
41+
#
42+
# cpio: ./usr/src/spl-2.1.16/6.5.0-1025-azure: Cannot open: No such file or directory
43+
#
44+
# The workaround is just to always return true from the 'cpio' command.
45+
# This does not seem to affect anything.
46+
sudo sed -i 's/preserve-modification-time/preserve-modification-time | true/g' /usr/share/perl5/Alien/Package/Rpm.pm
47+
3248
make --no-print-directory -s pkg-utils pkg-kmod
3349
- name: Install
3450
run: |

0 commit comments

Comments
 (0)