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 1R4QBA-0005JO-K9 for garchives@archives.gentoo.org; Fri, 16 Sep 2011 04:37:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF3AF21C160; Fri, 16 Sep 2011 04:37:22 +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 134B121C138 for ; Fri, 16 Sep 2011 04:36:52 +0000 (UTC) Received: by wwg14 with SMTP id 14so4101997wwg.10 for ; Thu, 15 Sep 2011 21:36:52 -0700 (PDT) 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 Received: by 10.216.131.39 with SMTP id l39mr1530601wei.39.1316147812234; Thu, 15 Sep 2011 21:36:52 -0700 (PDT) Sender: antarus@scriptkitty.com Received: by 10.216.169.72 with HTTP; Thu, 15 Sep 2011 21:36:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Sep 2011 21:36:52 -0700 X-Google-Sender-Auth: r5jCKKQ0Gio8o5BNNQ237k68Hxw Message-ID: Subject: Re: [gentoo-dev] How to handle dependencies on protocol headers? From: Alec Warner To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: c6e557f13e469e45048e322addf3436a On Thu, Sep 15, 2011 at 9:32 PM, Matt Turner wrote: > Often packages depending on X11 libraries will also have to specify > the X11 libraries' proto packages in DEPEND. This is because the X11 > library itself #includes files provided by the proto package. It's not > really that the X11 library depends on this at run-time, so the > protocol packages aren't specified in the RDEPEND of the libraries. > > This is documented in a number of bug reports (see 379545), and it > seems that the decision is between > =C2=A0- add proto package to dependency list of packages using X11 libs > =C2=A0- add proto package to rdepend list of the relevant library itself > > The first is more correct, I think, but it's also much more annoying. > Mesa winds up having x11-proto/inputproto in DEPEND for some long > forgotten reason, for instance. Why is it annoying? -A > > The second option is much simpler and less error prone, but removes > the ability to depclean the proto packages. > > It seems that some sort of DEPEND variable that means "I only need > this when other packages are building against me" would be useful. > Thoughts? > > Matt > >