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 356DE138010 for ; Fri, 31 Aug 2012 20:49:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9587E0660; Fri, 31 Aug 2012 20:48:47 +0000 (UTC) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 3FC47E05E4 for ; Fri, 31 Aug 2012 20:48:02 +0000 (UTC) Received: by wibhm2 with SMTP id hm2so1515717wib.10 for ; Fri, 31 Aug 2012 13:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=WK6rhE4P1wDhwL5S/nSsLtotZ0MnoraBUNq39slR2dc=; b=QWof7gRf/fQmdTGEngxJXE917/pRRYFoTZkrcCD5qEVFMzmM+D/IeTu32o+ckl96SE fZDc+ghfu1rvfjZBIlYAWt3ptImmjZB3zPAXmt0b2Ieguml7N4CN4pgieVNQL0V3VLCs BVOeuvBsc6CS70eyjdInpzu0PR+9PPgZjf4FW4pjRBdvfqraz/8xw6/3XgmPHZOrM39J GiAqC/k8V41pyo4IIvE/hpYh5H3A4LgZkPjrVKoQJEDmc0KD4LQhBLvZ80hP34z+/ajL 8LW3LLrtT89qMwdARdrZxFsdJ7WEttCQch8RkVcWWoCQ0IiLkLb6+CF0deHCbZmkjQZJ h9SA== Received: by 10.216.242.196 with SMTP id i46mr4696282wer.125.1346446082190; Fri, 31 Aug 2012 13:48:02 -0700 (PDT) Received: from localhost (cpc13-broo7-2-0-cust130.14-2.cable.virginmedia.com. [82.9.16.131]) by mx.google.com with ESMTPS id o2sm4174939wiz.11.2012.08.31.13.47.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 13:48:01 -0700 (PDT) Date: Fri, 31 Aug 2012 21:46:11 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] HDEPEND (host dependencies for cross-compilation) for EAPI 5? Message-ID: <20120831214611.088b3f50@googlemail.com> In-Reply-To: <50411874.4060204@gentoo.org> References: <50411874.4060204@gentoo.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.11; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/N/X0y53IkGOuNAkvIEwvGaK"; protocol="application/pgp-signature" X-Archives-Salt: 61f5ecff-d1cf-4adb-b532-0933df213ee0 X-Archives-Hash: 75230173b88e6b0bc933e46f74704bc3 --Sig_/N/X0y53IkGOuNAkvIEwvGaK Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 31 Aug 2012 13:03:00 -0700 Zac Medico wrote: > 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: >=20 > 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. >=20 > 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). What exactly would the rules be for handling a package that is in both DEPEND and HDEPEND, when ROOT is in effect? Would the versions be expected to match? What about use flags? Also, we're getting rather a lot of *DEPEND variables here... If we're making people make major changes to their deps, which for HDEPEND we definitely would be, then the "it's expensive since people would have to redo their deps" argument against a combined DEPENDENCIES variable goes out of the window, so we should rethink that too. --=20 Ciaran McCreesh --Sig_/N/X0y53IkGOuNAkvIEwvGaK Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlBBIpUACgkQ96zL6DUtXhFaIwCeNymCB101G8uS8jHuSPtMN+Rv s0cAoN5dhOWEe8Ni/PUfF/mcLu9GLFlB =msnb -----END PGP SIGNATURE----- --Sig_/N/X0y53IkGOuNAkvIEwvGaK--