[Xorg] Installing as non-root user

Alan Coopersmith Alan.Coopersmith at Sun.COM
Fri Aug 13 15:49:35 PDT 2004


Right - DESTDIR just redirects the installation, but it still expects
to end up in ProjectRoot.

	-alan-

Markus Kuhn wrote:
> Alan Coopersmith wrote on 2004-08-13 22:13 UTC:
> 
>>you should just be able to ignore the PWD and set
>>DESTDIR directly.
> 
> 
> Thanks. Installing with
> 
>   $ DESTDIR=~/local make install
> 
> and then testing clients and libraries with 
> 
>   $ LD_LIBRARY_PATH=~/local/usr/X11R6/lib/ ~/local/usr/X11R6/bin/xev
> 
> seems to have much of the desired effect. However,
> 
>   $ LD_LIBRARY_PATH=/home/mgk25/w.xorg/install/usr/X11R6/lib/ \
>       strace /home/mgk25/w.xorg/install/usr/X11R6/bin/xev 2>&1 | grep open
>   open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
>   open("/home/mgk25/w.xorg/install/usr/X11R6/lib/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
>   open("/home/mgk25/w.xorg/install/usr/X11R6/lib/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
>   [...]
>   open("/usr/X11R6/lib/X11/locale/compose.dir", O_RDONLY) = 5
>   open("/usr/X11R6/lib/X11/locale/en_US.UTF-8/Compose", O_RDONLY) = 5
>   open("/usr/X11R6/lib/X11/XKeysymDB", O_RDONLY) = 6
> 
> shows that the binaries still know very much that they were meant to
> refer to config files under /usr/X11R6/. So I guess, one will also have
> to set PROJECTROOT and perhaps a number of other environment/make
> variables (INCROOT, USRLIBDIR, MANPATH, VARDIR, VARLIBDIR, ...?) to really
> *fully* detach a test installation from anything in /usr/X11R6/. May be,
> the /usr/X11R6/ (or root) could be factored out of the definition of
> these other variables slightly better in xc/xmakefile.
> 
> 
>>You're right that this should be documented somewhere in the build instructions.
> 
> 
> That would be wonderful.
> 
> Markus
> 


-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering


More information about the release-wranglers mailing list