From owner-freebsd-x11@FreeBSD.ORG Wed Nov 18 13:47:43 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3E381065695 for ; Wed, 18 Nov 2009 13:47:43 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 89FC38FC1D for ; Wed, 18 Nov 2009 13:47:43 +0000 (UTC) Received: from [192.168.1.4] (adsl-241-172-215.bna.bellsouth.net [74.241.172.215]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nAIDldko016977 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 08:47:41 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "Carlos A. M. dos Santos" In-Reply-To: References: <200911170210.nAH2A3B2089193@freefall.freebsd.org> <1258477653.2303.48.camel@balrog.2hip.net> <19203.4505.30354.388990@gromit.timing.com> Content-Type: text/plain Organization: FreeBSD Date: Wed, 18 Nov 2009 07:47:34 -0600 Message-Id: <1258552054.2303.72.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: ports/137373: x11/libX11: make dependance on x11/libxcb X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 13:47:43 -0000 On Tue, 2009-11-17 at 22:50 -0200, Carlos A. M. dos Santos wrote: > On Tue, Nov 17, 2009 at 7:11 PM, John Hein wrote: > > Carlos A. M. dos Santos wrote at 18:22 -0200 on Nov 17, 2009: > > > On Tue, Nov 17, 2009 at 3:07 PM, Robert Noland wrote: > > > > There is a pretty fair risk of breaking several other ports with this. > > > > Other ports that also expect xcb to be present would need to be modified > > > > to either have xcb disabled or fail if libX11 does not have the needed > > > > functionality. > > > > > > That's exactly why I made it optional, default on, keeping the > > > default behavior. > > > > I think that what Robert may be saying is that even if it's default is > > 'on', people will turn it off, and we might see lots of questions > > about why this port or that port isn't working. > > If such reasoning had any value then you should start removing all the > options on all ports right now. Run! > > > Maybe you can investigate a few ports that may need the xcb-ness > > of libX11 and see what it takes to make them work in an xcb-free > > flavor of libX11 (or hint at build time that they won't work > > if libX11 doesn't have xcb). > > Ports that explicitly require xcb must do it via *DEPENDS in their > respective makefiles, not by means of some under-the-hood dependency > via libX11, which is an error. The issue I believe is that xcb is special... Ports which depend on xcb do have options and/or dependencies on xcb, however I don't think that is sufficient WRT libX11. i.e. if you build a port with xcb enabled, but libX11 was built without, I think you may be in for trouble. I might be incorrect here, but I would like to see an EXP run proving it. Preferably with some actual run-time testing as well. > > The alternative is to commit this change and just see what breaks. > > Ports that break are already broken and must be fixed. Of course we > can pretend they are not broken and keep going, but that would be a > shame. > > > But doing a little investigation ahead of time to give us a heads up > > about what to expect would be useful. > > Simply put, turn off the dependency of libX11 on libxcb. Then mark > libxb as FORBIDDEN and rebuild all packages that depend on libX11. Any > port whose build breaks is ... well, broken. If xcb is disabled for everything, then it will be fine. My concern is for cases where libX11 doesn't have xcb enabled and later a user installs a port that does have xcb enabled. robert. -- Robert Noland FreeBSD