autotools plugin failed with env: ‘./bootstrap’: Permission denied

Bug #1621700 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Low
Evan

Bug Description

I was trying to snap erlang, which has a bootstrap directory in the source: https://github.com/erlang/otp/tree/maint/bootstrap

So when I run the autotools plugin, it finds that bootstrap exists, and tries to run it.

In addition to checking if it exists, the plugin should check if it is a file.

To reproduce:

$ mkdir /tmp/test
$ cd /tmp/test
$ snapcraft init
Edit the plugin to be autotools, and add:
source: .
$ mkdir bootstrap
$ snapcraft
Preparing to pull my-part
Pulling my-part
Preparing to build my-part
Building my-part
env NOCONFIGURE=1 ./bootstrap
env: ‘./bootstrap’: Permission denied
Command '['/bin/sh', '/tmp/tmp285x9r0j', 'env', 'NOCONFIGURE=1', './bootstrap']' returned non-zero exit status 126

Leo Arias (elopio)
Changed in snapcraft:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
assignee: nobody → Evan (ev)
milestone: none → 2.18
status: Triaged → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.