My current main gentoo machine is a laptop, as such I have found it necessary to have different make.conf features depending on the location I am using it. At work I have another machine sharing its distfiles and portage tree as well as a small compile cluster so I set SYNC, GENTOO_MIRRORS, PREROOTPATH, and MAKEOPTS using another script sourced from make.conf. Since I usually forget to uncomment the line to enable this, it would simplify matters if make.conf had support for conditional statements, so for instance I could use something like this to set these variables automatically when my pc is plugged into the LAN: (example in shell syntax for simplicity) if ifconfig eth0 | grep -q '10.0.10.58'; then source /etc/make.conf.work fi
This isn't supported by the underlying parser module, so we'd have to implement/find a completely new parser, which won't happen anytime soon.
Hello, I have a netbook and for now, I manually edit make.conf when I am at home or not, so that I can use or not the machines at home for DISTCC (+ MAKEOPTS). The only solution I see now is manually editing or write a wrapper that detects DISTCC servers somethink like http://forums.gentoo.org/viewtopic-t-371316-start-0-postdays-0-postorder-asc-highlight-.html So, I vote to add that feature to portage ! Thanks in advance, Xavier Miller