2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2004-02-27 07:16:37 +08:00
|
|
|
<para><command>( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log
|
2004-02-15 05:01:53 +08:00
|
|
|
&& exit $PIPESTATUS )</command>:
|
2003-03-03 06:18:58 +08:00
|
|
|
This command runs multiple makefiles to completely rebuild the system.
|
2004-02-15 05:01:53 +08:00
|
|
|
<envar>WORLDOPTS</envar>="" disables the default setting to continue after
|
|
|
|
encountering an error. <parameter>2>&1</parameter> redirects error messages
|
|
|
|
to the same location as normal output. The <command>tee</command> command
|
|
|
|
allows viewing of the output while logging the results to a file. The parentheses
|
|
|
|
around the command run the entire comand in a subshell and finally the
|
|
|
|
<command>exit $PIPESTATUS</command> ensures the result of the <command>make</command>
|
|
|
|
is returned as the result and not the result of the <command>tee</command> command.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<note><para>When rebuilding <application>XFree86</application>, a separate command that may be used if only minor
|
|
|
|
changes are made to the sources is <command>make
|
|
|
|
Everything</command>. This does not automatically remove generated
|
2002-09-15 05:47:22 +08:00
|
|
|
files and only rebuilds those files or programs that are out
|
|
|
|
of date.</para></note>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-04-18 05:09:48 +08:00
|
|
|
<para><screen><command>ln -sf ../X11R6/bin /usr/bin/X11
|
2004-05-02 06:11:07 +08:00
|
|
|
ln -sf ../X11R6/lib/{X11,libGL.so{,.1}} /usr/lib
|
2004-05-02 03:55:44 +08:00
|
|
|
ln -sf ../X11R6/include/{X11,GL} /usr/include</command></screen>
|
2004-04-18 05:09:48 +08:00
|
|
|
These commands are present to enable other (broken) packages to build
|
2003-10-02 23:28:50 +08:00
|
|
|
against <application>XFree86</application>. We do this even though the Filesystem Hierarchy Standard
|
2002-07-08 04:28:42 +08:00
|
|
|
says:
|
|
|
|
"In general, software must not be installed or managed via the above
|
2003-03-08 13:51:34 +08:00
|
|
|
symbolic links. They are intended for utilization by users only."</para>
|
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para><command>make CC=/opt/gcc-2.95.3/bin/gcc -f Makefile.linux</command>: This builds the
|
|
|
|
<application>XFree86</application> compatible kernel modules using the same compiler used to compile
|
2003-09-20 15:07:33 +08:00
|
|
|
the kernel.</para>
|
2003-03-08 13:51:34 +08:00
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para><command>cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o
|
|
|
|
/lib/modules/`uname -r`/kernel/drivers/char/drm/</command>: Put the kernel
|
2003-10-02 13:21:41 +08:00
|
|
|
module(s) where the kernel can find them. You only need to copy the driver you
|
|
|
|
need to support your video card.</para>
|
2003-03-08 13:51:34 +08:00
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<para><command>depmod -a</command>: Update the modules.dep file for module
|
2003-03-08 13:51:34 +08:00
|
|
|
management.</para>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|