Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dynamic DISTCC_HOSTS & MAKEOPTS Generation for Portage
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5492
Location: ~Brussels - Belgique

PostPosted: Thu Mar 22, 2012 12:05 pm    Post subject: Reply with quote

I will test it soon or later ;)
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
miscdebris
n00b
n00b


Joined: 30 Mar 2005
Posts: 68

PostPosted: Thu Mar 22, 2012 6:40 pm    Post subject: Reply with quote

Let me know. If it's not working, I'll get it fixed up.
_________________
Dynamic DISTCC_HOSTS & MAKEOPTS Generation for Portage
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5492
Location: ~Brussels - Belgique

PostPosted: Thu Mar 22, 2012 9:47 pm    Post subject: Reply with quote

I will have some time this week-end. I will let you know.

EDIT: I will simplfy your script to my needs. The solution is using /etc/portage/bashrc.

Here is my script
Code:
#!/bin/bash

if ! ping -c 1 -q -w 1 MY_DISTCC_SERVER > /dev/null 2>&1
then
    #disable DISTCC, reduce MAKEOPTS
    export MAKEOPTS="-j3"
    export FEATURES="candy sandbox parallel-fetch -distcc buildpkg"
fi


Thank you for pointing out the key file ;)
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
lazy_bum
l33t
l33t


Joined: 16 Feb 2005
Posts: 690

PostPosted: Wed Feb 20, 2013 9:26 am    Post subject: Reply with quote

miscdebris wrote:
Let me know. If it's not working, I'll get it fixed up.

It seems to work fine after some minor improvements (ok, i'm a bit lost in my /etc/portage/bashrc right now and this should be verifed), but I got a weird bug with sudo:
Code:
>>> Source configured.
Checking localhost/1... Verified.  Checking Processes... 1 Processes.
/etc/portage/bashrc: line 95: -j2 SAMPLES=+1: syntax error in expression (error token is "SAMPLES=+1")

sudo ebuild has a MAKEOPTS declaration:
Code:
wloczykij ~ # grep MAKEOPTS /usr/portage/app-admin/sudo/sudo-1.8.6_p6.ebuild
MAKEOPTS+=" SAMPLES="

_________________
roslin uberlay | grubelek
Back to top
View user's profile Send private message
miscdebris
n00b
n00b


Joined: 30 Mar 2005
Posts: 68

PostPosted: Thu Feb 21, 2013 1:48 am    Post subject: Reply with quote

lazy_bum wrote:
miscdebris wrote:
Let me know. If it's not working, I'll get it fixed up.

It seems to work fine after some minor improvements (ok, i'm a bit lost in my /etc/portage/bashrc right now and this should be verifed), but I got a weird bug with sudo:
Code:
>>> Source configured.
Checking localhost/1... Verified.  Checking Processes... 1 Processes.
/etc/portage/bashrc: line 95: -j2 SAMPLES=+1: syntax error in expression (error token is "SAMPLES=+1")

sudo ebuild has a MAKEOPTS declaration:
Code:
wloczykij ~ # grep MAKEOPTS /usr/portage/app-admin/sudo/sudo-1.8.6_p6.ebuild
MAKEOPTS+=" SAMPLES="


While completely untested (I don't run Gentoo anymore), I believe I've fixed it.

I replaced most of the MAKEOPTS with BUILD_PROCESSES. It's better coding that way anyway.
_________________
Dynamic DISTCC_HOSTS & MAKEOPTS Generation for Portage
Back to top
View user's profile Send private message
lazy_bum
l33t
l33t


Joined: 16 Feb 2005
Posts: 690

PostPosted: Sat Mar 23, 2013 9:37 pm    Post subject: Reply with quote

Thanks, seems to work like it should. (:
_________________
roslin uberlay | grubelek
Back to top
View user's profile Send private message
miscdebris
n00b
n00b


Joined: 30 Mar 2005
Posts: 68

PostPosted: Tue Mar 26, 2013 9:43 pm    Post subject: Reply with quote

Awesome.

Anyone can let me know if there are problems, and I'll try to fix them.
_________________
Dynamic DISTCC_HOSTS & MAKEOPTS Generation for Portage
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum