Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release for Ubuntu Bionic #97

Closed
sidprak opened this issue May 12, 2018 · 4 comments
Closed

Release for Ubuntu Bionic #97

sidprak opened this issue May 12, 2018 · 4 comments

Comments

@sidprak
Copy link

sidprak commented May 12, 2018

Would it be possible to get a release for Ubuntu Bionic? It looks like the Alestic PPA currently only goes up to Ubuntu Yakkety. I'm happy to help orchestrate it if there's something I can do there.

@markstos
Copy link
Collaborator

@sidprak, I'll need a package for Bionic eventually myself. I suggest that we switch from the "deb" to "snaps", though.

Consider #94. In that ticket, we were somewhat blocked from releasing a new ".deb" because we depended on a fix in a newer version of dependency that would be shipped by Ubuntu, not by us.

With the "snap" format, we bundle our own dependencies, we could address problems like that.

I confirmed that there are examples of Perl scripts being packaged in the Snap format:

https://github.com/ubuntu/snappy-playpen/blob/master/kpcli/snapcraft.yaml

Anyone is allowed to publish to the "snapcraft.io" repo, so you are welcome to publish a "snap" of the package that works on Ubuntu 18.04 there.

@markstos
Copy link
Collaborator

markstos commented Jun 6, 2018

@sidprak Please try this snap release:

 snap install ec2-consistent-snapshot --channel=edge --devmode

I built it on Bionic, so your odds of it working should be good. It's my first Snap package, though. It would be nice to improve the "confinement" setting so we don't have to publish it in "devmode". You are welcome to work on that. However, the permissions it has in devmode are the same as it has in the .deb file.

So, it's no less secure, it's just that Snaps enable the possibility of being more secure by further limiting the filesystem access of your packages.

@spither
Copy link

spither commented Jul 29, 2018

I've tried out the snap (on Ubuntu 18.04) and got the following error:

Can't locate XML/SAX/Expat.pm in @INC (you may need to install the XML::SAX::Expat module) (@INC contains: /snap/ec2-consistent-snapshot/1/usr/lib/x86_64-linux-gnu/perl-base/ /snap/ec2-consistent-snapshot/1/usr/lib/x86_64-linux-gnu/perl5/5.26/ /snap/ec2-consistent-snapshot/1/usr/share/perl5/ /snap/ec2-consistent-snapshot/1/usr/share/perl/5.26.1/ /snap/ec2-consistent-snapshot/1/usr/lib/x86_64-linux-gnu/perl/5.26/ /snap/ec2-consistent-snapshot/1/usr/lib/x86_64-linux-gnu/perl/5.26.1/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 846) line 1.

XML::Simple called at /snap/ec2-consistent-snapshot/1/usr/share/perl5/Net/Amazon/EC2.pm line 446.

I've fixed it by rebuilding the snap with the following change:

diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 82b1191..ee9f29d 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -23,6 +23,7 @@ parts:
       - xfsprogs
       - perl-base
       - perl-modules
+      - libxml-sax-expat-perl
       - libnet-amazon-ec2-perl
       - libfile-slurp-perl
       - libwww-perl

Seems to be working fine now - thanks for the great tool.

@markstos
Copy link
Collaborator

markstos commented Aug 8, 2018

@spither Thanks for the report. This issue was resolved in the 0.71 Snap release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants