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 1R4QHP-00062D-1B for garchives@archives.gentoo.org; Fri, 16 Sep 2011 04:43:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14DB821C12E; Fri, 16 Sep 2011 04:43:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D3DE121C0BB for ; Fri, 16 Sep 2011 04:43:19 +0000 (UTC) Received: from mail-vw0-f48.google.com (mail-vw0-f48.google.com [209.85.212.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mattst88) by smtp.gentoo.org (Postfix) with ESMTPSA id 17C921B401B for ; Fri, 16 Sep 2011 04:43:19 +0000 (UTC) Received: by vws7 with SMTP id 7so3538307vws.21 for ; Thu, 15 Sep 2011 21:43:17 -0700 (PDT) Received: by 10.52.173.180 with SMTP id bl20mr775584vdc.59.1316148197170; Thu, 15 Sep 2011 21:43:17 -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.52.186.137 with HTTP; Thu, 15 Sep 2011 21:42:57 -0700 (PDT) In-Reply-To: References: From: Matt Turner Date: Fri, 16 Sep 2011 00:42:57 -0400 Message-ID: Subject: [gentoo-dev] Re: How to handle dependencies on protocol headers? To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e687053dbcce4ea191cb9abee26238b4 On Fri, Sep 16, 2011 at 12:32 AM, 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 > =A0- add proto package to dependency list of packages using X11 libs > =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. > > 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 Another similar situation: https://bugs.gentoo.org/show_bug.cgi?id=3D342393