Re: Gnome RPMs not relocateable



-----BEGIN PGP SIGNED MESSAGE-----

On Fri, 22 May 1998, Stephanos Piperoglou wrote:

> Is there a specific reason that the GNOME RPMs aren't relocateable? Or is it
> that no one has bothered to make them so? It would really help if I could
> dump GNOME under /opt/gnome and not worry about any conflicts. If anything,
> it would be easier to do an rm -rf /opt/gnome and start from scratch instead
> of constantly worrying about conflicting installations of various modules.

There is a reason. There is a good reason.

* First of all, some of the Gnome packages build their own configutation
  scripts which contain linker flags etc. For instance, this is installed
  in /home/baulig/GNOME/lib/gnomeConf.sh:

	#
	# Configuration of the gnome-libs package
	#
	
	GNOME_LIBDIR="-L/home/baulig/GNOME/lib"
	GNOME_INCLUDEDIR="-I/home/baulig/GNOME/include -DNEED_GNOMESUPPORT_H
	-I/home/baulig/GNOME/lib/gnome-libs/incl
	ude -I/home/baulig/GNOME/lib/glib/include -I/home/baulig/GNOME/include
	-I/usr/X11R6/include"
	GNOME_LIBS="-lgnome -lgnomesupport -ldl"
	GNOMEUI_LIBS="-lgnomeui -lgnome -lgnomesupport -ldl -lgdk_imlib -ltiff -lz
	-ljpeg  -ljpeg -lpng -lz -lSM -lIC
	E -L/home/baulig/GNOME/lib -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1
	-lXext -lX11 -lm"
	GTKXMHTML_LIBS="-lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE
	-L/home/baulig/GNOME/lib -L/usr/X11R6/lib -lgtk
	-1.1 -lgdk-1.1 -lglib-1.1 -lXext -lX11 -lm"

  This would fail if you move it anywhere else.

* There are some other problems (look at the `Maximum RPM' book ...)

But if you want to have them installed in another place then /usr, you
just have to change one single line in the spec files.

Get the SRPM, install it and change

	%define prefix   /usr

to

	%define prefix   /opt/gnome

Then you say 'rpm -ba --clean gnome-XXXX.spec' and everything should be
fine.

Martin





- -----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier

   baulig@castor.uni-trier.de, http://www.home-of-linux.org/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNWUu6IA8K7jIF4Q1AQGxggP/UbNTSudYfX6EaVHjA1IXRWkYgD9wXW8L
gE4a3tsIG43TeCK9CuDhYi+DsL15/Lqe36iFyXA0xmKzECRuMc2LP0d7X5vdBprk
p9f1UFERcKxPMK7Cn6az7DCSfpr8XORYuHkKmNhoYE6TA1euoHHq1JUxNhQxKhVf
vo4oIvGGkOc=
=GdET
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]