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

[Question] How can I convert/install deb files to rpm

asked 2020-01-25 16:04:32 +0200

Ralf gravatar image

updated 2020-01-26 16:26:58 +0200

I have an Sony Xperia 10 Dual SFOS 3.2.1.20. I will convert/port an app from MeeGo to SFOS. I have unpack the deb file. Now I will create the rpm file with the folders and files of the deb. It is possible to make this on windows or on the SFOS phone? The deb file is smstone1.1.0.deb. Unfortunately is this app deleted on Open Respo.
This app is a sms and call reminder. I miss it because I used it on my Nokia N9. With it I could remind me on all missed calls and sms.
Maybe it works also on SFOS because it had the same file structure:

smstone1.1.0\.\usr\share\applications\smstoneplus_harmattan.desktop
smstone1.1.0\.\usr\share\doc\smstoneplus\changelog.gz
smstone1.1.0\.\usr\share\doc\smstoneplus\ copyright
smstone1.1.0\.\usr\share\icons\hicolor\80x80\apps\smstoneplus80.png
smstone1.1.0\.\opt\smstoneplus\bin\smstoneplus
smstone1.1.0\.\etc\init\apps\smstoneplus.conf

Thanks for all tips...

For everyone who also had an N9 - this is the icon from the app:

image description

Update 2020-01-26: Now I convert the .deb to .rpm on my raspberry pi3.
I used follow commands:

sudo apt-get install alien
sudo alien -r /home/pi/smstone1.1.0.deb
/home/pi/smstone1.1.0.rpm generated

Now I have a file called "smstoneplus-1.1.0-2.armel.rpm" but the installation start only and break with a error. Unfortnatally I can't open the main file to change some thinks like libaries and other thinks. For this I need the source files it think.
Now I give up. Maybe Matt Lee answer me. Thanks all that helped me.

here are both files in case of a spezialist can port this to SFOS... smstone1.1.0.zip

edit retag flag offensive close delete

Comments

1

this is not about deb -> rpm. this is about meego (qt4, X, etc.) -> Sfos (qt5, wayland, etc) you just cant do this thing without coding aand compiling.

coderus ( 2020-01-27 01:14:03 +0200 )edit
2

@nthn - Thanks for the tip. I found this question and will now change the call_exists.ini and sms.ini

Ralf ( 2020-01-27 20:01:38 +0200 )edit

I had that functionality in my n900! So useful and it was one of the first things I missed when I used sailfish. If you succeed please let me know/ share it with the community, thank you.

nas ( 2020-01-29 11:23:22 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2020-01-25 17:09:27 +0200

Eierkopp gravatar image

Converting binary packages is often possible with a tool called alien (german text). But that will most likely not be enough, since binaries usually depend on shared libraries. To check you can run ldd on the binary, e.g.:

[nemo@Sailfish ~]$ ldd /usr/bin/harbour-meecast 
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x4031f000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x40228000)
libz.so.1 => /usr/lib/libz.so.1 (0x40280000)
    ... more than 40 additional dependencies follow ...

The libraries required for smstoneplus are most likely not available on Sailfish. And that's only where problems start.

edit flag offensive delete publish link more

Comments

3

You are right: alien is the tool for this job. But apart from the mere availability of required libraries to install such a package on SFOS, I guess there's just no layer to translate the interface from Meego to Silica. @Ralf, you can still try above steps, but the app has to be ported to SFOS to be able to run it.

Maus ( 2020-01-25 18:31:29 +0200 )edit

I had try to contact the owner of this app Matt Lee but he doesen't answer. I am affraid this is to difficult for me. Maybe I will find a other way to use the features of this genial app.

Ralf ( 2020-01-25 19:06:45 +0200 )edit
0

answered 2020-01-28 18:10:29 +0200

Nieldk gravatar image

You could also try my build of dpkg to install the deb package

https://build.merproject.org/package/show/home:nielnielsen/dpkg

edit flag offensive delete publish link more

Comments

@Nieldk - thanks verry much! Could you explain me more about this? I was on this link and found only the dpkg spec but the dpkg_1.17.16.tar.xz was down. In the moment I will try this but don't know if is right...

Ralf ( 2020-01-28 19:48:02 +0200 )edit

The RPM to download you find on the right side. It’s there, for both phone, and tablet. Direct link to phone RPM is http://repo.merproject.org/obs//home:/nielnielsen/sailfish_latest_armv7hl/armv7hl/dpkg-1.17.16-1.17.15.jolla.armv7hl.rpm

Nieldk ( 2020-01-28 20:03:41 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2020-01-25 16:04:32 +0200

Seen: 674 times

Last updated: Jan 28 '20