LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 01-18-2016, 09:21 PM   #1
takakia
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 01-19-2016, 05:04 AM   #2
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
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
 
Old 01-19-2016, 09:37 AM   #3
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,539

Rep: Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308
Quote:
Originally Posted by takakia View Post
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.
 
Old 01-19-2016, 11:53 AM   #4
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
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.
 
Old 01-21-2016, 09:30 PM   #5
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
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.

Last edited by justwantin; 01-21-2016 at 09:46 PM. Reason: tyop
 
  


Reply

Tags
arm, compile, slackbuilds



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SlackBuilds for FPC and Lazarus on Slackware 14.1 ARM slacksam Slackware - ARM 0 05-12-2014 01:44 AM
The Slackware ARM Question of the day: why xf86-video-s3-0.6.5-arm-4.tgz ?!? Darth Vader Slackware 2 09-15-2013 09:23 PM
[SOLVED] Slackware 13 on slackbuilds hua Slackware 14 01-26-2010 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration