From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9A44F138010 for ; Fri, 31 Aug 2012 20:04:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22B5CE068E; Fri, 31 Aug 2012 20:04:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CBAE3E0586 for ; Fri, 31 Aug 2012 20:03:03 +0000 (UTC) Received: from [192.168.26.5] (ip98-164-193-252.oc.oc.cox.net [98.164.193.252]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id E58E133D71C for ; Fri, 31 Aug 2012 20:03:02 +0000 (UTC) Message-ID: <50411874.4060204@gentoo.org> Date: Fri, 31 Aug 2012 13:03:00 -0700 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120802 Thunderbird/14.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo development Subject: [gentoo-dev] HDEPEND (host dependencies for cross-compilation) for EAPI 5? X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 75052e26-ea07-4af7-8460-29c939e549a7 X-Archives-Hash: 7e808b95cf6c3e93f12c606c3bbf0625 For those who may not know, chromium-os currently uses a hard-host-depends ebuild as a workaround for our lack of HDEPEND support [1]. We could easily add HDEPEND in EAPI 5 if we want, since we already have a Portage patch attached to bug #317337 [2]. Here is a summary of what that Portage patch will do: In EAPI 5 or later, DEPEND has been divided into two parts: DEPEND for build-time target dependencies, and HDEPEND for build-time host dependencies. This division is designed specifically to minimize difficulty in the process of adapting ebuilds that were written for earlier EAPIs, and therefore it also minimizes the adjustments that ebuild developers will have to make to the thought processes involved when writing ebuilds from scratch. In an environment that does not involve cross-compilation, HDEPEND behaves the same as DEPEND. When an ebuild is converted from EAPI 4 or earlier to EAPI 5 or later, in order to support cross-compilation environments, some dependencies may need to be migrated to HDEPEND. For ebuilds that have EAPI 5 or later, the emerge --root-deps option has no effect since it is made obsolete by division between DEPEND and HDEPEND. If EAPI 4 or earlier ebuilds are used in combination with EAPI 5 or later ebuilds, the --root-deps behavior will still be applied to the EAPI 4 or earlier ebuilds (there is no behavior change for ebuilds having older EAPIs). [1] http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/portage-build-faq [2] https://bugs.gentoo.org/show_bug.cgi?id=317337 -- Thanks, Zac