Skip to content

Commit

Permalink
SPECS/aws-nitro-enclaves-cli.spec: Do not mangle shebangs for examples
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 scripts whose
target environment is not Amazon Linux based. For example, in the case
of `hello.sh` which is meant to be run in a Docker container, 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 scripts from the examples.

Signed-off-by: Costin Lupu <[email protected]>
  • Loading branch information
clupuishere committed Nov 14, 2023
1 parent 38aae5a commit 06d98e3
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 for scripts from examples
%global __brp_mangle_shebangs_exclude_from %{ne_data_dir}/examples/

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

0 comments on commit 06d98e3

Please sign in to comment.