Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Mike A. Harris" <mharris@redhat.com>
To: axp-list@redhat.com
Subject: Re: XFree86 4.2.0 RPM question, /usr/local?
Date: Mon, 11 Mar 2002 07:15:49 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0203110708420.21881-100000@devserv.devel.redhat.com> (raw)
In-Reply-To: <200203100602.g2A62NR20581@gtedhcp-55.inetarena.com>

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
----------------------------------------------------------------------




      reply	other threads:[~2002-03-11 12:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-10  6:02 XFree86 4.2.0 RPM question, /usr/local? Robert M. Riches Jr.
2002-03-11 12:15 ` Mike A. Harris [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox