Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 12, 2016, 21:13   #1
nekrotyrael
Rookie
 
Join Date: Jun 2009
Posts: 16
nekrotyrael is on a distinguished road
Angband .snap

Any plans to package Angband in the .snap format (http://www.snapcraft.io)?
nekrotyrael is offline   Reply With Quote
Old July 12, 2016, 23:22   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,836
Donated: $60
Nick will become famous soon enough
Short answer: What's .snap format?

(Goes away and looks at it)

Longer answer: Looks like a good idea. There are (as far as I'm aware) no current plans to do so, but if you (or anyone else) were volunteering, that would be great
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old July 20, 2016, 22:26   #3
nekrotyrael
Rookie
 
Join Date: Jun 2009
Posts: 16
nekrotyrael is on a distinguished road
I took a crack at it, but since I have no experience with packaging, I've hit some major roadblocks. Namely, I managed to package angband as a snap, but not to make it work within the sandbox.

I'll ask at the snap mailing list, hopefully they will be of help.
nekrotyrael is offline   Reply With Quote
Old July 20, 2016, 22:53   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,836
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by nekrotyrael View Post
I took a crack at it, but since I have no experience with packaging, I've hit some major roadblocks. Namely, I managed to package angband as a snap, but not to make it work within the sandbox.

I'll ask at the snap mailing list, hopefully they will be of help.
Cool, let us know if you make more progress.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old August 16, 2016, 22:30   #5
nekrotyrael
Rookie
 
Join Date: Jun 2009
Posts: 16
nekrotyrael is on a distinguished road
I did not get any reply from the mailing list, but I think the problem lies in the way Angband handles paths during compilation.

As far as I can see, Angband expands the path arguments into absolute paths. That makes it not possible to have a system-wide installation with each user having their saves in $HOME, because it just gets expanded to /home/currentuser/.

But more importantly for making a snap, the --with-no-install compile option does not make Angband run in-place, as it claims, but rather from the directory it was compiled in. So moving/renaming the Angband folder after compilation leaves it unable to start. Personally I would consider that a bug.

The easier solution would be to make Angband compiled with --with-no-install look for its files in the directory it's being run from.
nekrotyrael is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reviving Iso-Angband, an isometric view addon for Angband Hajo Development 111 August 3, 2014 20:44


All times are GMT +1. The time now is 22:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.