From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RfqY5-0000Sp-Uk for garchives@archives.gentoo.org; Wed, 28 Dec 2011 10:15:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9581E21C072; Wed, 28 Dec 2011 10:15:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C25B521C068 for ; Wed, 28 Dec 2011 10:15:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 213441B4021 for ; Wed, 28 Dec 2011 10:15:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.941 X-Spam-Level: X-Spam-Status: No, score=-2.941 tagged_above=-999 required=5.5 tests=[AWL=-0.341, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q4Q8s-n-R7tF for ; Wed, 28 Dec 2011 10:15:27 +0000 (UTC) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A61F11B4012 for ; Wed, 28 Dec 2011 10:15:23 +0000 (UTC) Received: by eekc13 with SMTP id c13so12058470eek.36 for ; Wed, 28 Dec 2011 02:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=FO7SGq7gYpm76JJVrZV1upnYLLv9xYp3dXSo7ETC70k=; b=QUxfaysPU0MbQe94k4/xDM7t5xsHw9ecTkF/Nl87RqJh/lDrQvAR1aRGasd9UTua4e QUfkB2qsHFvrw9U+Erz8Xrk7cIrxv2qaA/7b8eUhTyWEUGCCuqieJIlM1aL6nJQmTKlg sWsRt+sPHDFAceWSVMU8fnUlIV9+ZvEGjrk0w= Received: by 10.213.2.212 with SMTP id 20mr473429ebk.67.1325067321731; Wed, 28 Dec 2011 02:15:21 -0800 (PST) Received: from siphos.be ([83.101.67.57]) by mx.google.com with ESMTPS id s16sm118654555eef.2.2011.12.28.02.15.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Dec 2011 02:15:20 -0800 (PST) Sender: Sven Vermeulen Date: Wed, 28 Dec 2011 11:14:49 +0100 From: Sven Vermeulen To: gentoo-doc@lists.gentoo.org Subject: [gentoo-doc] Portage per-package environment/behavior Message-ID: <20111228101449.GA912@siphos.be> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc@lists.gentoo.org Reply-to: gentoo-doc@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: ab0ac94c-5de9-4e42-ad6a-6f9b5c454743 X-Archives-Hash: f3c1439def8cd1df8b0f57fdbb7e6462 Hi guys, I noticed we don't describe in the handbook that Portage can have per-package environment variables (like CFLAGS) through /etc/portage/env. This can be even (ab?)used to execute steps before or after specific phases (based on the EBUILD_PHASE information), something I use for updating IDS systems (postinst/prerm phase). But I'm not sure if and where in the handbook this can be positioned best. The environment variable stuff could be placed in the section on "Environment Variables", but is quite off from the rest of the content (since the rest of that chapter has nothing really to do with Portage or build environments). "Configuring through Variables" is probably the best location (somewhere in the beginning as we talk there about Build-specific Options), but I do feel that this particular feature is already more targeting advanced users, where the location in the handbook somewhat suggests this for more beginner-like types. Perhaps another section in "Working with Portage", called "Advanced Portage Features" or so? This can then contain the per-package env information, but also overriding profile information and perhaps others we don't talk about yet. Any ideas on this? Sven