[Slackbuilds-users] Using SBo with distcc

openpandora at free.fr openpandora at free.fr
Sun Apr 14 17:00:48 UTC 2013


Seems to work fine thanks !

For information, looking at the SBs, i've noticed some uncommon make *. I don't know if those with "?" will work with distcc. Here's the incomplete list:

cmake ?
qmake ?
make World ?
gmake ?

flags before make

make PREFIX
make VERBOSE
make || 
make CXXFLAGS
make docdir
make -i
make -f
make -e
make solib
make all
make unix
make -C
make CFLAGS
make RPM_OPT_FLAGS
make KDE_VER
make V=
make LIBDIR
make CDEBUGFLAGS
make libmp4v2.la
make Q=
make EXE
make OPT

Cheers.


----- Mail original -----
De: "Larry Hajali" <larryhaja at gmail.com>
À: "SlackBuilds.org Users List" <slackbuilds-users at slackbuilds.org>
Envoyé: Dimanche 14 Avril 2013 06:00:42
Objet: Re: [Slackbuilds-users] Using SBo with distcc



The following may not work for 100% of use cases but does work in simple tests with "make" only on the line taking certain whitespace into account. There are probably other regex's I'm missing but it probably accounts for most occurrences. 


sed -i 's|^[ \t]*make[ \t\r\n]*$|& CC=distcc \$NUMJOBS|' /var/lib/sbopkg/SBo/*/*/*/*.SlackBuild.sbopkg 



On Sat, Apr 13, 2013 at 3:50 PM, < openpandora at free.fr > wrote: 


Hi ! 

I plan to use distcc to compile a lot of SBo packages. 
As i know no other method (maybe there's an easier one ?), i use sed to alter the *.SlackBuild.sbopkg : 

This sed job will replace the "make $NUMJOBS" with "make CC=distcc $NUMJOBS" 

sed '/NUMJOBS/s/make/make CC=distcc/g' /var/lib/sbopkg/SBo/*/*/*/*.SlackBuild.sbopkg 

But i don't know how to replace the lines with "make" only. 

Any tips ? 
_______________________________________________ 
SlackBuilds-users mailing list 
SlackBuilds-users at slackbuilds.org 
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users 
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ 
FAQ - http://slackbuilds.org/faq/ 



_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users at slackbuilds.org
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/



More information about the SlackBuilds-users mailing list