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 <gentoo-dev+bounces-47650-garchives=archives.gentoo.org@lists.gentoo.org>) id 1R4Q7k-0004hL-K0 for garchives@archives.gentoo.org; Fri, 16 Sep 2011 04:34:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4CE921C110; Fri, 16 Sep 2011 04:33:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E906B21C025 for <gentoo-dev@lists.gentoo.org>; Fri, 16 Sep 2011 04:33:11 +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 3BBE51B401D for <gentoo-dev@lists.gentoo.org>; Fri, 16 Sep 2011 04:33:11 +0000 (UTC) Received: by vws7 with SMTP id 7so3522787vws.21 for <gentoo-dev@lists.gentoo.org>; Thu, 15 Sep 2011 21:33:09 -0700 (PDT) Received: by 10.52.176.67 with SMTP id cg3mr441276vdc.461.1316147589069; Thu, 15 Sep 2011 21:33:09 -0700 (PDT) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> 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:32:49 -0700 (PDT) From: Matt Turner <mattst88@gentoo.org> Date: Fri, 16 Sep 2011 00:32:49 -0400 Message-ID: <CAEdQ38EpZVFZktC3LnT06YbXqC5iErmw6RhifEyAV0D9ftusSw@mail.gmail.com> Subject: [gentoo-dev] How to handle dependencies on protocol headers? To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: X-Archives-Hash: 2e128cb0fcc160604057584f11b04b53 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 - add proto package to dependency list of packages using X11 libs - 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