Re: [Xorg] Installing as non-root user

Alan Coopersmith <Alan.Coopersmith-UdXhSnd/[email protected]>
Newsgroups gmane.comp.freedesktop.release-wranglers,gmane.comp.freedesktop.xorg
Organization Sun Microsystems
Message-ID <[email protected]>
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-           [email protected]
	 Sun Microsystems, Inc. - X Window System Engineering
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.