LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Package interoperability Rpi2 Rpi3 (https://www.linuxquestions.org/questions/slackware-arm-108/package-interoperability-rpi2-rpi3-4175625374/)

MisterL 03-11-2018 01:01 PM

Package interoperability Rpi2 Rpi3
 
Hey!

I've tried to install Slackware ARM -current to my Raspberry Pi 3 and that worked fine. Thanks to the SARPi-Team :)
I tried to compile something, I think atop, from SBo, that also went well.

I've got a Raspberry Pi 2, too, so before I install Slackware ARM on it:
can I use Packages built on the RPi3 on the model 2 as well? Or are there too many differences in the architecture, so this wouldn't work and packages would have to be build twice?
Or would that depend on the software, so like VLC won't work, but nginx will? (Just random examples)

Any hints would be appreciated :)

stormtracknole 03-12-2018 06:59 AM

I think that as long as you don't mix the hard vs soft float packages, you *should* be okay. The 14.2 packages are soft float, while -current are being built using hard float. Hope this helps.

Penthux 03-13-2018 12:57 PM

Quote:

Originally Posted by MisterL (Post 5829696)
Hey!

I've tried to install Slackware ARM -current to my Raspberry Pi 3 and that worked fine. Thanks to the SARPi-Team :)
I tried to compile something, I think atop, from SBo, that also went well.

I've got a Raspberry Pi 2, too, so before I install Slackware ARM on it:
can I use Packages built on the RPi3 on the model 2 as well? Or are there too many differences in the architecture, so this wouldn't work and packages would have to be build twice?
Or would that depend on the software, so like VLC won't work, but nginx will? (Just random examples)

Any hints would be appreciated :)

Hi MisterL! :D

Glad you managed to install Slackware ARM without any issues.

As stormtracknole correctly advised - don't install Slackware ARM 14.2 and then try to install -current packages onto it, or vice-versa. 14.2 is soft float and -current is hard float. They have different ABIs which are not compatible. Stick to the hard or soft float versions exclusively (depending on which you've installed) and all will be fine. It doesn't matter whether you install the same package on a RPi2 or RPi3, it's the hard/soft float which is important.

When you're building packages (SBo for example) if you build on the system you're intending to install them on then you'll have nothing to worry about. It's only when you're building (for example) on Slackware ARM -current when the package is intended for 14.2 that you have to start figuring out compiler make options (CFLAGS) and such.

<edit> Sometimes you'll find a SBo package that's not been optimised for ARM architecture. This can be because the package is x86 specific and has no use on ARM. Or because nobody has yet configured the SlackBuild script for ARM architecture. If it's the latter then it's easy to achieve.

MisterL 03-14-2018 03:36 PM

Thanks for your replies, stormtracknole and Penthux!

Yep, I'm aware of the hardfloat/softfloat incompatabilites. Since future versions will use hardfloat (well, that's how I understand the sarpi-docs) I decided to try -current first. And to start over on 14.2 if neccessary.

I'll try to try on the weekend and report back.

Quote:

Originally Posted by Penthux (Post 5830594)
Glad you managed to install Slackware ARM without any issues.

I ran into a gpg key issue with slackpkg, actually. I think it was solved by adding the correct GPG key to the keyring, but I can't reproduce it anymore. This post https://www.linuxquestions.org/quest...3/#post5695196 was helpful I think.


All times are GMT -5. The time now is 08:13 AM.