Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* XFree86 4.2.0 RPM question, /usr/local?
@ 2002-03-10  6:02 Robert M. Riches Jr.
  2002-03-11 12:15 ` Mike A. Harris
  0 siblings, 1 reply; 2+ messages in thread
From: Robert M. Riches Jr. @ 2002-03-10  6:02 UTC (permalink / raw)
  To: axp-list

Wow! The spec file in the XFree86-4.2.0-6.32 source RPM is
certainly formidable.  I sure appreciate Mike Harris' maintenance
efforts.

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.  :-)

Right now, I have an RH7.1 system including the released XFree86
4.1.0 RPMs.  In order to get an X server that will work with the
Oxygen VX1 card, I have installed XFree86 4.2.0 from xfree86.org
sources in /usr/local/X11R6.  Putting it in /usr/local keeps the
rest of the system outside /usr/local stock Redhat, and it allows
switching between Redhat's 4.1.0 and xfree86.org's 4.2.0 at the
user level just by changing $PATH.

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

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

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?

Thanks.

Robert Riches
richesr1@inetarena.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XFree86 4.2.0 RPM question, /usr/local?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Mike A. Harris @ 2002-03-11 12:15 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-11 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox