| View previous topic :: View next topic |
| Author |
Message |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4612 Location: ~Brussels - Belgique
|
|
| Back to top |
|
 |
miscdebris n00b

Joined: 30 Mar 2005 Posts: 68
|
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4612 Location: ~Brussels - Belgique
|
Posted: Thu Mar 22, 2012 9:47 pm Post subject: |
|
|
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 |
|
 |
lazy_bum l33t


Joined: 16 Feb 2005 Posts: 679
|
Posted: Wed Feb 20, 2013 9:26 am Post subject: |
|
|
| 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 |
|
 |
miscdebris n00b

Joined: 30 Mar 2005 Posts: 68
|
Posted: Thu Feb 21, 2013 1:48 am Post subject: |
|
|
| 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 |
|
 |
lazy_bum l33t


Joined: 16 Feb 2005 Posts: 679
|
Posted: Sat Mar 23, 2013 9:37 pm Post subject: |
|
|
Thanks, seems to work like it should. (: _________________ roslin uberlay | grubelek |
|
| Back to top |
|
 |
miscdebris n00b

Joined: 30 Mar 2005 Posts: 68
|
|
| Back to top |
|
 |
|