We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

unison from cli (with ocaml deps)

asked 2015-07-07 22:26:43 +0300

gfwp gravatar image

Hi folks,

is there a recommended way to install additions generic CLI programs. For instance, after applying the btrfs/android trick I'd wish to use "unison" to sync folder with my Debian Jessie desktop. Which are the recommended (if any) repository ?

regards

Giorgio

edit retag flag offensive close delete

Comments

I'm using the armhf unison binary from debian sid, that I stole from my BananaPi.

If I have to compile stuff (e.g. maxima), I'm using an nfs mounted chroot on my Jolla.

Eierkopp ( 2015-07-08 17:38:59 +0300 )edit

4 Answers

Sort by » oldest newest most voted
1

answered 2015-07-08 12:41:14 +0300

sqozz gravatar image

Well the recommended way is the way you do it under any other linux. Compile it, install it, run it.
I've once got unison incl. ocaml compiled on the Jolla but if i recall correctly it was definitely no fun at all!

So your best way to go is to create a RPM-package and install it with zypper. This way you can keep track of dependencies and you can also uninstall it if there is the need for it in the future.

At the moment, i use the precompiled ARM binary for "Syncthing" on my Jolla. It does the job quiet well but it is maybe not an option for a person who has its sync infrastructure based on unison.

Hope i could help, sqozz.

edit flag offensive delete publish link more
0

answered 2015-07-08 13:13:12 +0300

gfwp gravatar image

Well, compiling from sources is allways a solution. I've done it recently on a Qnap inside Optware. But since the phone is pretty limited in HW I hoped to discover that using a given armv7hl repo (which? ) could spare CPU time and hassle for the setup of the toolchain and the libs. Perhaps using opensuse rpms?

Regards

Giorgio

edit flag offensive delete publish link more

Comments

Well, the OpenRepos are maybe what you're looking for. Cross compiling is of course also a solution but if you want to avoid extra setuptime your best way is to go with the OpenRepos.

sqozz ( 2015-07-09 12:57:52 +0300 )edit
0

answered 2015-07-14 15:54:32 +0300

gfwp gravatar image

Well,

I've set up sailfish SDK and cross compiling works, just now finished with ocaml sources. I'd like a way NOT to prepare a .spec file or to do it in an automated way so that I get a valid one for Jolla.

It look like unison has no deps on ocaml itself once compiled, since with ocalmopt hwat you get is a real binary.

Regards

edit flag offensive delete publish link more
0

answered 2015-07-15 14:25:00 +0300

MartinK gravatar image

You can also use the Sailfish OS target on Mer OBS. Then just pull the packages from OpenSUSE or Fedora (or you can make them yourself) and install the resulting binary packages to your Jolla. :)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-07-07 22:26:43 +0300

Seen: 337 times

Last updated: Jul 15 '15