Skip to content

Commit

Permalink
SPECS/aws-nitro-enclaves-cli.spec: Do not mangle shebangs
Browse files Browse the repository at this point in the history
The package builder used for Amazon Linux 2023 mangles shebangs in the
packaged scripts, but the new paths may not exist. For example, in the
case of `hello.sh`, the shebang is rewritten from `#!/bin/sh` to
`#!/usr/bin/sh`, but the latter path does not exist. This has the effect
of preventing the "Hello Enclave" enclave from being instantiated.
Therefore we disable shebang mangling for the entire package.

Signed-off-by: Costin Lupu <[email protected]>
  • Loading branch information
clupuishere committed Nov 13, 2023
1 parent 38aae5a commit 5a05f8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SPECS/aws-nitro-enclaves-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
%define _third_party_licenses_file %{_datadir}/licenses/%{name}-%{version}/%{_licenses_filename}
%define _pkg_licenses_file %{_src_dir}/%{_licenses_filename}

# Stop mangling shebangs
%undefine __brp_mangle_shebangs

Summary: AWS Nitro Enclaves tools for managing enclaves
Name: aws-nitro-enclaves-cli
Version: 1.2.2
Expand Down

0 comments on commit 5a05f8b

Please sign in to comment.