maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Unison 2.48.3 compiled for Sailfish (https://talk.maemo.org/showthread.php?t=96157)

antviro 2015-12-03 22:00

Re: Unison 2.48.3 compiled for Sailfish
 
By the way, Ive seen you have also dupplicity compiled!! Thanks I will also get it (its the tool i use for cron backups!!)

TemeV 2015-12-04 06:49

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by antviro (Post 1490506)
Ill test it and tell you, but it will have to be tomorrow :(. I use computers that have 2.40 (jessie) and also 2.48 (stretch), so I can try both versions.

By the way i was replying an older version of your poast (before you succeded to build it), and so, i will copy here what i modified in the makefile. I used NATIVE=false and UISTYLE=text
Did you have to do the same (i mean about NATIVE). I will also read your spec to see what I was doing wrong while trying to produce a rpm
package.

I did have NATIVE=true. If you have NATIVE=false you also have to install ocaml to the device, right?

The problem was some stupid linker flags the build environment set automatically. I had to clear them in the spec file.

TemeV 2015-12-04 06:52

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by antviro (Post 1490507)
By the way, Ive seen you have also dupplicity compiled!! Thanks I will also get it (its the tool i use for cron backups!!)

Don't bother with it (yet). It is missing some run time dependencies still.

antviro 2015-12-04 10:20

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by TemeV (Post 1490519)
I did have NATIVE=true. If you have NATIVE=false you also have to install ocaml to the device, right?

The problem was some stupid linker flags the build environment set automatically. I had to clear them in the spec file.

No, I have it working in the device just copying unison binary to my $HOME/bin without moving anything of ocalm.

antviro 2015-12-06 16:22

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by TemeV (Post 1490469)
That doesn't help on building in OBS. I can't install the files there like that.

But I figured out the problem, I just had to tell it to install files to /usr/ instead of /usr/local which is the default.

Binary available here: http://repo.merproject.org/obs/home:...mv7hl/armv7hl/

After all this effort I of course realize that this version is not compatible with the one on my server and other devices... So I didn't really test this one. Please tell me if it works :)

Spec files for building it can be found in https://build.merproject.org/project...e:temev:unison I copied the spec files from Fedora and modified to fit this purpose.

I have checked it, and it works fine. I will use your spec to see if i can build rpms hehehe. I will do the test with 2.40 for the people you have previous version on desktop. By the way i am playing with a very rude gui i will upload in some days/weeks, at present state seems a 5 min app even though it took me some hours (im not a programmer and i am inexperienced in gui devel. (and actually i always use it in text mode in desktop... but in case someone makes use of it)

TemeV 2015-12-06 18:39

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by antviro (Post 1490676)
I have checked it, and it works fine. I will use your spec to see if i can build rpms hehehe. I will do the test with 2.40 for the people you have previous version on desktop. By the way i am playing with a very rude gui i will upload in some days/weeks, at present state seems a 5 min app even though it took me some hours (im not a programmer and i am inexperienced in gui devel. (and actually i always use it in text mode in desktop... but in case someone makes use of it)

I quickly tried to build 2.40, but it segfaulted instantly when running it. Which version did you build actually? And which ocaml?

I often use Fedora's spec files as a starting point for building something for Sailfish. Usually there is some Fedora specific stuff that needs to be ripped off from the files though. You can find those from http://koji.fedoraproject.org/koji/

antviro 2015-12-06 19:56

Re: Unison 2.48.3 compiled for Sailfish
 
Quote:

Originally Posted by TemeV (Post 1490691)
I quickly tried to build 2.40, but it segfaulted instantly when running it. Which version did you build actually? And which ocaml?

I often use Fedora's spec files as a starting point for building something for Sailfish. Usually there is some Fedora specific stuff that needs to be ripped off from the files though. You can find those from http://koji.fedoraproject.org/koji/

For the 2.48 i have binaries compiled with ocalm 4.02 and ocalm 4.01.

I would try to use the second one for 2.40 but in case it segfaults, we can try with 3.10 that is actually used for building it in debian jessie https://packages.debian.org/source/jessie/unison


All times are GMT. The time now is 23:00.

vBulletin® Version 3.8.8