LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   How to use Slackbuilds in Slackware arm ? (https://www.linuxquestions.org/questions/slackware-arm-108/how-to-use-slackbuilds-in-slackware-arm-4175564311/)

takakia 01-18-2016 09:21 PM

How to use Slackbuilds in Slackware arm ?
 
I am using Slackware in Orange Pi 2 mini as built by 'Loboris'. Thanks a lot Loboris, it works fine. Only thing as a Newbie to Slackware, I cannot compile packages from Slackbuilds.org. I am aware the architecture has changed and I want to know how to compile from source from Slackbuilds or even other sources. Please help.

nolretou 01-19-2016 05:04 AM

Each time you do the sync, you can use this script to change the compilation flags, e.g. for a cortex-A8.
After that you have to select local slackbuilds.

#!/bin/sh

find /var/lib/sbopkg/SBo/*/*/*/ -iname "*.SlackBuild" -printf 'cp %p %p\n' \
| sed 's/\.SlackBuild$/\.SlackBuild.sbopkg/' \
| while read l; do eval $l; done

sed -i -e "s/\$SLKCFLAGS/-O2 -pipe -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fPIC/g" /var/lib/sbopkg/SBo/*/*/*/*.SlackBuild.sbopkg
sed -i -e "s/\${SLKCFLAGS}/-O2 -pipe -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fPIC/g" /var/lib/sbopkg/SBo/*/*/*/*.SlackBuild.sbopkg

drmozes 01-19-2016 09:37 AM

Quote:

Originally Posted by takakia (Post 5480640)
I am using Slackware in Orange Pi 2 mini as built by 'Loboris'. Thanks a lot Loboris, it works fine. Only thing as a Newbie to Slackware, I cannot compile packages from Slackbuilds.org. I am aware the architecture has changed and I want to know how to compile from source from Slackbuilds or even other sources. Please help.

As a newbie to Slackware you've certainly chosen the bare bones path where few inexperienced people have gone!

I haven't looked at what Loboris did for the Orange Pi, but I know that he took the miniroot I put out and modified a few things. The miniroot is meant for developers to bootstrap to a new device. It doesn't come with software development tools, so you will need to install the packages for it -- and there are quite a few that you'd need to install in order to be able to compile something. Somebody put together a list of core packages:

http://go2linux.garron.me/linux/2010...slackware-793/

It's a bit old now but is a good start. You'd need to install the package names, ignoring the version numbers. I haven't seen a more up to date list recently but if there is I would like to link to it in the README for the mini root.

gus3 01-19-2016 11:53 AM

Also, congratulations takakia for having the courage to jump in with both feet. No matter how far you go with this venture, the knowledge you gain will be useful elsewhere in the world of Linux and Unix.

justwantin 01-21-2016 09:30 PM

May I suggest that if you have the room on your sdcard, say 8Gb, that you download/rsync slackwarearm and use upgradepkg to install the package groups a, ap, l, and n. That will give you everything you need plus more. There may be other packages required for a given program to be built but you will have the basics required. If you can mount a usb stick with slackwarearm on board, cd into each package group and use the command upgradepkg --install-new *.t?z.

That's what I have done on a board with a system put together from the miniroot 28Dec15. I have built several packages using slackbuilds without any issues other than having to use Ponce's git repository for current slackbuilds when building owserver. The 14.1 slackbuild failed.

Edit; May I also suggest that if you have a functional system that before installing additional programs as above that you use dd to create an image of your good system just in case something un-expected/foreseen happens.


All times are GMT -5. The time now is 03:22 AM.