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 1PTyc3-0004cN-R9 for garchives@archives.gentoo.org; Sat, 18 Dec 2010 15:22:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0A6FE0823; Sat, 18 Dec 2010 15:22:13 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 5A71EE05FE for ; Sat, 18 Dec 2010 15:21:36 +0000 (UTC) Received: by wwi18 with SMTP id 18so1637912wwi.10 for ; Sat, 18 Dec 2010 07:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=cmw1La/3T6jEuYJ6SU4M/HnYtl+G/KOiRpHtuSNAjLU=; b=u6tC77ZNull+g/ePIDGCt5qI879RspwB5eiGpIqQjId8DTfsawCn9S7P4mXYG7xQSn /BpK5KiCvbkDJOrion2pKSF4Jsky/QTYs6Dsgn8u0Pe1ROeQqeCcHe3D7piq0DgHh0nT ROvoCpv+uMRSFOibE3xV7CmFgYv+HVuPJgFpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=PFZR0L9MHnVC3CQ9yVn04cQNmV2hneN+LsRzAXvcn6nUnVpkxh6FGa5mf+G8xYMxV5 Afyn/f/9U2wgZv8tn+9xJOXKI05gl+wPm7yvORslJ4LoKGrrg7reHKol1UK4rn9ZEy9v hwY5p9r6Lu62gpqxGYb5xIl7N0olb00CyNvWk= Received: by 10.227.141.129 with SMTP id m1mr1376111wbu.68.1292685694701; Sat, 18 Dec 2010 07:21:34 -0800 (PST) Received: from snowcone (cpc1-broo3-0-0-cust98.14-2.cable.virginmedia.com [86.4.208.99]) by mx.google.com with ESMTPS id q18sm1168500wbe.5.2010.12.18.07.21.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 18 Dec 2010 07:21:21 -0800 (PST) Date: Sat, 18 Dec 2010 15:21:14 +0000 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] What are || ( ) dependencies? Message-ID: <20101218152114.7cd907f0@snowcone> In-Reply-To: <20101218021355.GA7756@comet> References: <20101217152504.30ab8f1c@snowcone> <20101218021355.GA7756@comet> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; 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_/q5ELtxhbSLB44zqGvMiP8Ne"; protocol="application/pgp-signature" X-Archives-Salt: 5970e591-1602-4dab-926c-f2907fac98a9 X-Archives-Hash: 6d923bb73d9244b143027eedb1a41e70 --Sig_/q5ELtxhbSLB44zqGvMiP8Ne Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 17 Dec 2010 20:13:55 -0600 Donnie Berkholz wrote: > > What about if you decide upon a early on, and then later on > > something hard-depends upon b? >=20 > Then you're collapsing the graph too early. =3D) > (speaking as an utter novice) Yeah, but unfortunately, there's no way to figure out when too early is. What if it's one of a's dependencies that hard-depends upon b? Until you've decided upon something, you don't know what dependencies are going to be pulled in, so you're left having to make possibly incorrect decisions and then try to undo them later on if possible. > Why is this a problem that needs to be resolved at the specification=20 > level rather than a difference between implementations? If a package=20 > manager is making strange choices, The problem's how you define strange choices. If dependencies aren't listed best-leftmost, every package manager makes strange choices for some combinations. Either this can be fixed by getting developers to always write things best-leftmost, or it can be fixed by mandating specific behaviour for all package managers for || ( ) deps. I'd much rather we did the former. > I'd thought people already knew that this was typical behavior of an > || group (as per the simple example in ebuild(5)), but you've said=20 > differently later in this thread. I certainly wouldn't mind > documenting that left is best in cases where none are installed, > since this has been expected behavior to those of us who do know. Well, we're running across a fair number of cases along the lines of the libX11 one.... https://bugs.gentoo.org/show_bug.cgi?id=3D348518 is what prompted the email -- it turns out vlc is by no means the only package doing this, though, which gives me two options for Paludis: add in a heuristic that gets that very specific case right (and update PMS requiring package manglers to do the same), or get people to list their deps the other way around. --=20 Ciaran McCreesh --Sig_/q5ELtxhbSLB44zqGvMiP8Ne Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0M0W0ACgkQ96zL6DUtXhHXVgCglvUVxkRpx9T/Haq51k5Rsl/b C/kAnjUyEtmmiQnwinOJk5Mmp5X3hb7y =BaEm -----END PGP SIGNATURE----- --Sig_/q5ELtxhbSLB44zqGvMiP8Ne--