Changeset 3109c7ce for x/installing/xfree86.xml
- Timestamp:
- 05/24/2007 02:53:23 PM (17 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d4d6592
- Parents:
- cf1537ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/xfree86.xml
rcf1537ba r3109c7ce 60 60 </itemizedlist> 61 61 62 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 63 <itemizedlist spacing="compact"> 64 <listitem> 65 <para>Required patch: <ulink 66 url="&patch-root;/XFree86-&xfree86-version;-freetype_internals-1.patch"/></para> 67 </listitem> 68 </itemizedlist> 69 62 70 <bridgehead renderas="sect3">XFree86 Dependencies</bridgehead> 63 71 … … 170 178 <sect2 role="installation"> 171 179 <title>Installation of XFree86</title> 180 181 <sect3> 182 183 <title>Preparing the Sources</title> 184 185 <para>Three fixes are needed for <application>XFree86</application>. 186 First, a patch is needed to build against newer <application>FreeType</application> 187 releases. Second, the macro "PAGE_MASK" is manually defined because 188 including <filename>asm/page.h</filename> from the Linux kernel headers 189 does not work when compiling with <parameter>-ansi</parameter>. Finally, 190 the Linux kernel headers no longer install the unneeded header 191 <filename>linux/config.h</filename>. A <command>sed</command> is used 192 to remove all usage of this header. Perform these actions with the 193 following commands:</para> 194 195 <screen><userinput>patch -Np1 -i ../XFree86-&xfree86-version;-freetype_internals-1.patch && 196 sed -i '/page.h/c #define PAGE_MASK (~(getpagesize() - 1))' \ 197 programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c && 198 grep -rl '^#include <linux/config.h>' . | \ 199 xargs sed -i '\@^#include <linux/config.h>@d'</userinput></screen> 200 201 </sect3> 172 202 173 203 <sect3> … … 268 298 following commands:</para> 269 299 270 <screen><userinput>sed -i 's:^.*asm.*$:# define PAGE_MASK (~(getpagesize() - 1)):' \ 271 ../xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c && 272 sed -i -e "s@^#include <linux/config.h>@/* & */@" \ 273 `grep -lr linux/config.h ../xc` && 274 ( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS ) 275 </userinput></screen> 300 <screen><userinput>( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS )</userinput></screen> 276 301 277 302 <para>This package does not come with a test suite.</para> … … 352 377 <sect2 role="commands"> 353 378 <title>Command Explanations</title> 354 355 <para><command>sed -i 's:^.*asm.* ... fbdevhw.c</command>: This sed fixes a356 problem compiling against headers from kernels newer than linux-2.6.8.</para>357 358 <para><command>sed -i -e "s@^#include <linux/config.h>@...</command>:359 The <application>Linux-Libc-Headers</application> package installed in360 LFS installs a <filename>/usr/include/linux/config.h</filename> file which361 is not compatible with userspace applications. The recommended fix for362 applications including this file is to remove it (see <ulink363 url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">364 linux-libc-headers FAQ</ulink>). The <command>sed</command> uses365 <command>grep -lr</command> to replace all occurrences. If you desire, just366 remove (comment) the line in the appropriate video driver file if you367 customized <filename>host.def</filename>.</para>368 379 369 380 <para><command>( make World 2>&1 | tee xfree-compile.log
Note:
See TracChangeset
for help on using the changeset viewer.