Skip to content

Commit 1b6e856

Browse files
committed
specfile: targeted workaround for s390x builds on c10s
Signed-off-by: John Eckersberg <[email protected]>
1 parent 4d45502 commit 1b6e856

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/packaging/bootc.spec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ cat vendor-config.toml >> .cargo/config.toml
9595
rm vendor-config.toml
9696

9797
%build
98+
# https://issues.redhat.com/browse/RHEL-116881
99+
%if 0%{?rhel} >= 10
100+
if test $(arch) = s390x;
101+
export MALLOC_MMAP_MAX_=0
102+
fi
103+
%endif
104+
98105
# Build the main bootc binary
99106
%if %new_cargo_macros
100107
%cargo_build %{?with_rhsm:-f rhsm}

0 commit comments

Comments
 (0)