Skip to content

Alpine 3.14 make: /bin/sh: Operation not permitted #1177

Closed
@csandanov

Description

@csandanov

With Alpine 3.14.0 update running shell scripts from Makefile produces the following error:

make: /bin/sh: Operation not permitted

How to reproduce:

  1. Create simple Makefile:
.PHONY: test
test:
	run_test
  1. Create shell script /usr/local/bin/run_test:
#!/usr/bin/env bash

echo 123
  1. Make it executable: chmod +x /usr/local/bin/run_test
  2. Install make apk add --update make
  3. Run make test, you'll get
run_test
make: run_test: Operation not permitted
make: *** [Makefile:3: test] Error 127

Also reported at https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396
Does not seem to have issues with the newer docker versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions