autotools plugin failed with env: ‘./bootstrap’: Permission denied
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:/
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
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/snapcore/ snapcraft/ pull/803