From owner-freebsd-questions@FreeBSD.ORG Mon Jun 28 19:33:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB15016A4CE for ; Mon, 28 Jun 2004 19:33:24 +0000 (GMT) Received: from makeworld.com (makeworld.com [198.92.228.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AC7243D55 for ; Mon, 28 Jun 2004 19:33:24 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from racerx.makeworld.com (racerx@racerx.makeworld.com [198.92.228.34]) by makeworld.com (8.12.10/8.12.10) with ESMTP id i5SJXAoT096571; Mon, 28 Jun 2004 14:33:10 -0500 (CDT) (envelope-from racerx@makeworld.com) From: Chris To: freebsd-questions@freebsd.org Date: Mon, 28 Jun 2004 14:33:09 -0500 User-Agent: KMail/1.6.2 References: <20040628161012.82589.qmail@web53406.mail.yahoo.com> <20040628184508.GD83630@spamcop.net> <20040628192628.GB68724@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040628192628.GB68724@happy-idiot-talk.infracaninophile.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406281433.09907.racerx@makeworld.com> X-makeworld.com-MailScanner-Information: Please contact the ISP for more information X-makeworld.com-MailScanner: Found to be clean X-MailScanner-From: racerx@makeworld.com Subject: Re: Guide to x.org update? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: racerx@makeworld.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 19:33:25 -0000 On Monday 28 June 2004 02:26 pm, Matthew Seaman wrote: > On Mon, Jun 28, 2004 at 02:45:08PM -0400, Jim Trigg wrote: > > On Mon, Jun 28, 2004 at 01:22:32PM -0500, Vulpes Velox wrote: > > > On Mon, 28 Jun 2004 13:17:56 -0400 > > > > > > Jim Trigg wrote: > > > > AFAICT, this won't really do anything -- there does not appear to be > > > > a real way to tell the ports system that you want X ports to depend > > > > on xorg instead of xfree. Every X port appears to have xfree > > > > hardcoded. > > > > > > Not sure, I think some do, but everything I have hear does not seem to > > > have that problem. > > > > OK, so how do you get cvsup to use xorg? As best I can tell, it will > > depend on either XFree86 (XFree86 v. 3) or XFree86-4-libraries (XFree86 > > v. 4), with no option to depend on xorg-libraries. > > Both the XFree86-4-libraries and xorg-libraries provide the > /usr/X11R6/lib/libX11.so.6 shared library (amongst others). It's the > same ABI independent of which port the shlib comes from. > > The short answer is "just install the x11/xorg-libraries port before > you install cvsup". > > In fact, cvsup works perfectly well even if you replace the XFree86 > libs with the xorg ones underneath a previously installed copy of > cvsup. Doesn't even need a recompile. The same goes for most X based > software. > > Here's how it works: when the Makefile in the cvsup port says > "USE_XLIB" that gets transformed into a LIB_DEPENDS line in > /usr/ports/Mk/bsd.ports.mk: > > LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/XFree86-4-libraries > > (assuming you've not got XFREE86_VERSION == 3). > > That LIB_DEPENDS line is in two parts separated by a colon. The first > bit: > > X11.6 > > means that the port needs to link against libX11.so.6, and it checks > to see if a suitable shlib is installed and accessible by grep'ing in > the output of ldconfig: > > % ldconfig -r | fgrep X11.6 > 116:-lX11.6 => /usr/X11R6/lib/libX11.so.6 > > Since last night on my system that's from: > > % pkg_info -W /usr/X11R6/lib/libX11.so.6 > /usr/X11R6/lib/libX11.so.6 was installed by package > xorg-libraries-6.7.0 > > If make(1) can find a suitable shlib, everything is happy and the > compile continues -- all make looks for is the presence of the > library. It doesn't check what (if any) port the library is part of. > Only if it can't find the correct shlib does the right hand side of > that LIB_DEPENDS line get considered: > > ${PORTSDIR}/x11/XFree86-4-libraries > > That's simply a suggestion of a suitable port that will provide the > required shlib, and fulfil the dependency. But there are several such > ports in the tree, any of which could be used. Often in such > situations there will be some sort of 'WANT_FOO' or 'WITH_FOO_VER' > make variable to select which one gets used. Unfortunately, no such > mechanism for saying "I want X.Org ports in preference to XFree86 > ones" has yet been committed. > > One annoyance due to the lake of make(1) infrastructure is that the > suggested port will be listed in the package dependencies of the > installed port, rather than the actual port that provided the shlib > you used to build against. That, however, is just an administrative > detail which you can fix up with pkgdb(1), and has no real bearing on > the effectiveness of the software. > > Cheers, > > Matthew Odd - all I did was remove XFree, install the Xorg meta-port. Rename XF86Config to xorgcfg in /etc/X11R6, restart X and bingo. Now, I am cvsup'in as we speak - then again, I don't use the gui version of cvsup. If anyone is interested, I'll post a follow-up. -- Best regards, Chris -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.