LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SBo + sbopkg, qt5 build parallel (https://www.linuxquestions.org/questions/slackware-14/sbo-sbopkg-qt5-build-parallel-4175521865/)

a4z 10-12-2014 11:08 AM

SBo + sbopkg, qt5 build parallel
 
hi,

just updating qt5 from and via sbo(pkg)
the build takes ages, very boring

is there a way via sbopkg to have a parallel build and configure the -j option?
or anything else to have more than one job

fsLeg 10-12-2014 11:21 AM

Code:

MAKEFLAGS="-j4" sbopkg -i qt5
Or you can edit the SlackBuild.

ponce 10-12-2014 11:44 AM

(as I'm lazy I'll cut and paste from one of my post on gplus)

on my work machine, as I use multiple jobs when I build packages, I've got this line in /etc/sbopkg/sbopkg.conf
Code:

  export MAKEFLAGS=${MAKEFLAGS:--j8}
or you can pass it also when invoking it
Code:

  sbopkg -i whatever:MAKEFLAGS=-j8
if not using sbopkg and doing a manual build
Code:

  MAKEFLAGS=-j8 ./whatever.SlackBuild
to find the available core/threads you can also use nproc
Code:

  MAKEFLAGS=-j$(nproc)
if re/building official Slackware stuff the default number of jobs is already 7 in most cases (so I don't feel like changing it to 8), but if I wish to change it
Code:

  NUMJOBS=-j8 ./whateverelse.SlackBuild

a4z 10-12-2014 11:54 AM

thanks guys


All times are GMT -5. The time now is 08:01 PM.