Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packaging/copr/build-copr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ BuildRequires: cargo
BuildRequires: gcc
BuildRequires: git
BuildRequires: openssl-devel
BuildRequires: cmake
# nasm is required by aws-lc-sys on x86_64 to compile ASM crypto routines.
# Available in standard Fedora repos; on RHEL/EPEL it lives in CRB (not
# enabled in COPR by default) so we use prebuilt NASM objects there instead
# (see AWS_LC_SYS_PREBUILT_NASM in the %%build section).
%if 0%{?fedora}
%ifarch x86_64
BuildRequires: nasm
%endif
Comment thread
bestagi marked this conversation as resolved.
Resolved
%endif

%description
mise prepares your development environment before each command runs. It installs
Expand All @@ -217,6 +227,17 @@ replace-with = "vendored-sources"
directory = "vendor"
CARGO_EOF

# On RHEL/EPEL x86_64, nasm lives in CRB which is not enabled in COPR
# chroots. Use prebuilt NASM objects bundled inside the aws-lc-sys crate
# instead. This works at all Cargo profile/optimization levels including
# release (unlike AWS_LC_SYS_NO_ASM which is debug-only and panics at
# release profile).
%if 0%{?rhel}
%ifarch x86_64
export AWS_LC_SYS_PREBUILT_NASM=1
%endif
%endif

# Build with specified profile
cargo build --profile __BUILD_PROFILE__ --frozen --bin mise

Expand Down