From: "Christian Bricart" <christian@bricart.de>
To: gentoo-user-de@lists.gentoo.org
Subject: [gentoo-user-de] "-j X" in $MAKEOPTS dynamisch setzen
Date: Fri, 9 Oct 2009 12:20:45 +0200 [thread overview]
Message-ID: <69b72e569413f4e5365fb2b341447f45.squirrel@aachalon.de> (raw)
Servus,
ich benutze hier FEATURES="distcc" um ebuilds verteilt zu kompilieren.
Bisher hatte ich eine feste /etc/distcc/hosts, die mit dem in der
make.conf eingestellten abgestimmt war - also in der /etc/make.conf:
MAKEOPTS="-j 20"
bei möglichen 20 verteilbaren Compile-Jobs über distcc.
Letzte Woche ist mir zum ersten Mal aufgefallen, dass der distcc ja auch
eine automagische Hosts-Konfiguration über avahi beherrscht und sich die
hosts-Datei dynamisch zusammenbasteln kann.
Zusätzlich kann man "auslesen" wieviele Jobs gerade mit dieser Dynamik
möglich sind:
# distcc -j
20
Daher wäre es sehr hübsch, wenn man diese beiden Dinge kombinieren könnte,
also der Art:
MAKEOPTS="-j $(distcc -j)"
Leider scheint Portage (<- =sys-app/portage-2.2.*) in der make.conf kein
"Skripting" zu unterstützen.
Bleibt hier nur der Weg über eine /etc/portage/bashrc, die $MAKEOPTS
betreffend setzt..?
Christian
next reply other threads:[~2009-10-09 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 10:20 Christian Bricart [this message]
2009-10-09 15:48 ` [gentoo-user-de] "-j X" in $MAKEOPTS dynamisch setzen Dirk Heinrichs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69b72e569413f4e5365fb2b341447f45.squirrel@aachalon.de \
--to=christian@bricart.de \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox