A customer inquired about assistance snapping a package called fluentd (an open source log collector), and on a whim, I threw together a quick snapcraft.yaml to see if it would build using the ruby plugin.
Lo and behold, I was able to build the snap with the following part definition:
parts:
fluentd:
source: https://github.com/fluent/fluentd.git
# See 'snapcraft plugins'
plugin: ruby
That said the build did produce a number of errors when building ruby, during bundle gem install (whatever that means). I wanted to check if anyone else has seen something similar, and is there cause for concern? I checked launchpad, but didn’t find any bugs that were applicable (although there are a couple requests for a ruby plugin which should probably be closed out). I’m using snapcraft 2.35.
I haven’t yet tried to run the application, but will do so shortly.
Here are the errors:
installing bundle gems: //lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
net-telnet 0.1.1
power_assert 0.4.1
rake 12.0.0
did_you_mean 1.1.0
xmlrpc 0.2.1
test-unit 3.2.3
minitest 5.10.1
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/power_assert-0.4.1.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/power_assert-0.4.1.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/xmlrpc-0.2.1.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/xmlrpc-0.2.1.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/test-unit-3.2.3.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/test-unit-3.2.3.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/minitest-5.10.1.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/minitest-5.10.1.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/net-telnet-0.1.1.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/net-telnet-0.1.1.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/rake-12.0.0.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/rake-12.0.0.gem'
Unable to open /opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/did_you_mean-1.1.0.gem for writing: [Errno 13] Permission denied: '/opt/dev/fluentd/parts/fluentd/install/lib/ruby/gems/2.4.0/cache/did_you_mean-1.1.0.gem'