From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 694C53EA2F for ; Mon, 11 Mar 2002 07:15:52 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2BCFp501658 for ; Mon, 11 Mar 2002 07:15:51 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2BCFp915363 for axp-list@listman.redhat.com; Mon, 11 Mar 2002 07:15:51 -0500 Received: from devserv.devel.redhat.com (IDENT:39i1M4LTEvdmFpvI6BOIC+zrmFhhAwqo@devserv.devel.redhat.com [172.16.58.1]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2BCFpR15359 for ; Mon, 11 Mar 2002 07:15:51 -0500 Received: from localhost (mharris@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) with ESMTP id g2BCFnA04592 for ; Mon, 11 Mar 2002 07:15:49 -0500 X-Authentication-Warning: devserv.devel.redhat.com: mharris owned process doing -bs Date: Mon, 11 Mar 2002 07:15:49 -0500 (EST) From: "Mike A. Harris" X-X-Sender: mharris@devserv.devel.redhat.com To: axp-list@redhat.com Subject: Re: XFree86 4.2.0 RPM question, /usr/local? In-Reply-To: <200203100602.g2A62NR20581@gtedhcp-55.inetarena.com> Message-ID: Organization: Red Hat Inc. X-Unexpected-Header: The Spanish Inquisition MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Sat, 9 Mar 2002, Robert M. Riches Jr. wrote: >Wow! The spec file in the XFree86-4.2.0-6.32 source RPM is >certainly formidable. I sure appreciate Mike Harris' maintenance >efforts. Formidable is putting it lightly. ;o) I can't sleep at night. I toss and turn all night to see "%ifnarch s390x ppc...." and "#define BuildFoo".... ;o) >I'd like to build and install this package _but_ install it in >/usr/local/X11R6 without disturbing the existing 4.1.0 RPM >installation. Yes, I'm both a chicken and crazy. :-) It is funny you mention that.... I have not mentioned it to anyone as of yet, lest someone nag me... ;o) But.... There is the very very initial beginnings of adding support to the spec file to allow relocatable builds by using the ProjectRoot and other directives. It will be simple to replace all the dir paths with specfile defines, but more complex to deal with all sorts of other complex issues, so I haven't spent much time on it yet... I figure by the time 4.3.0 rolls around I might have something semi-useable in place, that can be switched on with a %define flick. >A little research appears to show that the way to do this is to >do the following steps: > > 1) do "rpm -bpl" (after installing the source RPM, of course) > to unpack the sources, apply patches, and check files. > > 2) edit xc/config/cf/site.def to do the following defines: > (which is how I installed from xfree86 sources) > > #define ProjectRoot /usr/local/X11R6 > #define NothingOutsideProjectRoot YES In the specfile you'll see a hint of my future surprise... ;o) /* FIXME: Future enhancement ... no ETA, dont ask. *#define ProjectRoot /usr/local/X11R6 *#define NothingOutsideProjectRoot YES *#define EtcX11Directory ProjectRoot/etc */ > 3) do "rpm --short-circuit -bc" to build the package > > 4) do "make install" from the xc directory to install the > stuff in /usr/local/X11R6. (For paranoia, to make sure > this doesn't try to install anything outside /usr/local, > do this once as a non-privileged user and watch for > permission issues.) Dont forget the EtcX11Directory directive too or the install stage will blow away files in /etc on ya. >My motivation for wanting to use Redhat's 4.2.0 is to get the >advantage of all of Mike Harris' very excellent work, and to see >if this will put a stop to the signal 8 X server deaths, scan >rates changing to something outside what the monitor can handle, >etc. > >Is it rational to attempt such a thing? Do I have the above >steps close to right? Should work. The hard part once I get it integrated, is rpm not wanting to install 2 packages of same name simultaneously, how to handle upgrades, and other assortia... I want to avoid making the specfile overly complex *cough cough*, so it may be tricky... ;o) -- ---------------------------------------------------------------------- Mike A. Harris Shipping/mailing address: OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie, XFree86 maintainer Ontario, Canada, P6C 5B3 Red Hat Inc. Phone: (705)949-2136 http://www.redhat.com ftp://people.redhat.com/mharris Red Hat XFree86 mailing list: xfree86-list@redhat.com General open IRC discussion: #xfree86 on irc.openprojects.net ----------------------------------------------------------------------