# (#23581) Stefan Jones <cretin@gentoo.org> says:
# There is a bug in the makefiles which makes the xc/exports/lib dir not being
# made. This causes the libXau.so lib not to be installed. Patch from splite
# <splite-gentoo@sigint.cs.purdue.edu>. However, I had already added a patch
# to do the same thing. The bug is just for reference.
0119_all_exports-lib-v2.patch

# (#21417) Add commented-out xfs port to xorg.conf.example
0124_all_4.3.0-xorgconf-xfs-example.patch

# v2: (#49455) Remove pointless dependency on xvt
0126_all_4.2.99.3-startx-v2.patch

# From RH. Bypass the main Makefile clean and depend targets when make World is
# run. Speeds things up quite a bit.
0127_all_4.3.99-makefile-fastbuild.patch

# (#5736) imake writes temporary shell scripts to /tmp and executes them.
# Use $TMPDIR instead.
0128_all_4.2.0-imake-tmpdir-v2.patch

# Add '-nolisten-tcp' to startx arguments to keep network closed by default.
0129_all_startx-nolisten-tcp.patch

# If we're building servers and SharedLibXau is defined, always build libXau
# by adding it to EXTRASYSLIBS.
0130_all_4.2.1-fix-shared-libXau-link.v2.patch

# From RH, customized by us. Make Xcursor ICONDIR and XCURSORPATH build time
# configurable and default the cursors to install into /usr/share/icons.
# Gentoo customization: Look in /usr/local/share/icons also.
0131_all_4.2.99.3-Imake-make-icondir-configable-v3.patch

0132_all_4.2.1-libX11-build-order-fix.patch
0160_all_4.2.99.4-IncludeSharedObjectInNormalLib.patch
0165_all_4.2.99.901-dont-install-Xcms.txt.patch

# Depends on 0129_all_startx-nolisten-tcp.patch
# v2: (#42235) Instead of hard-coding crosshatch out, add '-br' to startx.
0199_all_4.2.0-die-ugly-pattern-die-die-die-v2.patch

0202_all_4.2.1-gl-matrix-man-fixes.patch
0205_all_6.7.99.1-xman-bzip2-v2.patch
0208_all_4.2.99.901-fix-xfree86-man-version-string.patch
0270_all_4.1.0-s390-cpp.patch
0350_all_4.2.0-vt7.patch
0350_all_4.3.0-xbiff-FHS.patch
0410_all_4.3-keyboard-fixes-and-hp-symbols.patch

# (#21120) Support Sun Type6 keyboards
0425_all_6.7.0-sun-type6-keyboard.patch

# (#63994) This plus other ebuild modifications from that bug should enable
# sparc guys to use 6.8.0-r1.
0430_all_6.8.0-sparc-add-mach64-to-devel-dri-drivers.patch

# (#63767). This adds support for the Cherry CyMotion Master XPress and the
# IBM Space Saver keyboards. It's from upstream CVS.
0440_all_6.8.0-support-cymotion-master-and-ibm-space-saver-keyboards.patch

0475_all_4.3.99.13-xterm-resources-home-end-keys.patch

# (fd.o #1114, #61063) Ferris McCormick:
# This is the xorg-x11 patch which allows sunffb+cfb to work with dlloader.
# According to ajax, only the sparc graphics drivers still use cfb, so the
# change is needed only for sparc+xorg+dlloader, and dlloader is really only
# needed for building xorg-hardened.  (Without dlloader, xorg+hardened must
# actually force 'softening'.)
0485_all_6.8.0-afb-cfb-dlloader-fixes.patch

# (#85363, fd.o #1765) Add another relocation type to the ELF loader.
0487_all_6.8.2-add-relocation-type-10-to-elfloader.patch

# (#61063) Ferris McCormick:
# If Mesa is built for the dlloader, its Imake files need something useful in
# 'LargePositionIndependentCflags'. Without this fix, all they get is the string
# 'LargePositionIndependentCflags'. The patch puts the definition in 'xorg.cf'
# because I think the problem is not linux-specific, but rather, gcc-specific.
0490_all_6.8.0-sparc-dlloader-cflags.patch

# (#61063) Ferris McCormick:
# Currently, when sunffb builds, it goes through a lot of effort to make sure
# that it does not build a 64-bit version when it shouldn't. This results in a
# CFLAGS combination '-mcpu=ultrasparc -mv8' which is semantically incoherent
# with gcc.  (Maybe, OK with sun compiler?)
#
# It then goes on to ensure that the assembly code will run on ultrasparc, and
# when everything is put together, it forces the driver NOT to be typed V8+.
#
# Consequently, if you build xorg-x11 for ultrasparc, the ONLY part of it which
# will load on your SS20 is the sunffb driver, and that would be a Bad Idea(tm).
#
# This little experimental Imake change disables all that for SparcLinux.
0495_all_6.8.0-sunffb-imake.patch

0700_all_4.2.0-sessreg-highuid.patch
1010_all_fontconfig-2.1-slighthint.patch
1030_all_XFree86-4.2.99.3-embeddedbitmap-v2.patch

# (#61940) Fixes kbd issues when using the 2.4 kernel (added for sparc)
1000_all_6.8.2-fix-kbd-on-kernel-2.4.patch 

# (#79467) Add xaa/RENDER support to sunffb, as well as some upstream fixes
# for sunleo
1001_all_6.8.2-sunffb-xaa-extension.patch
1002_all_6.8.2-sunleo-fixes.patch

# (#85153, fd.o #1958, fd.o #1951) libXft dies when passing FT_Face objects
# directly to Xft.
1050_all_6.8.2-xft-releasefile-crash.patch

# When BuildClients is off and BuildFonts is on, mkfontscale and mkfontdir
# aren't built. But mkfontscale is used during the build process and mkfontdir
# is needed later, so we should build them anyway if UseInstalled isn't on.
# This fixes the USE=minimal build. Also, build the RGB database and xinit for
# a couple of non-essential but nearly always desired things. We require
# bdftopcf too. Also add xauth so startx works nicely.
1110_all_6.8.0-force-build-font-utils-if-needed.patch

1110_all_6.8.0-force-build-font-utils-if-needed.patch
1214_all_4.3.0-radeon-disable-VideoRAM-option.patch

# (fd.o #1895, #38549) DIX didn't always convert RGB to BGR
2000_all_6.8.0-fb-convert-rgb-to-bgr-when-needed.patch

# (#38232) This allows quoted expressions in /etc/X11/xdm/Xservers to be used
# properly. For example, ':2 local /usr/X11R6/bin/X :2 vt10 -layout
# "Small Layout"'.
4152_all_4.3.0-allow-xdm-server-quotes.patch

# (fd.o #2901) This patch fixes several problems arising if xdm is compiled
# with IPv6 support, but the (linux) kernel does not support IPv6.
4155_all_6.8.99.14-xdm-ipv6-without-kernel-ipv6.patch

5115_all_4.3.0-radeon-reinit.patch
5130_all_4.3.0-ati-r128-chip-names-touchup.patch

# (fd.o #2089) This patch adds the "VGAAccess" option (defaults to NO on PPC
# and YES on others) that disables all legacy VGA stuffs in the driver, since
# they are causing various issues on non-x86 machines.
5135_all_6.8.1-r128-ppc-vgaaccess.patch

# (#82039) Fix direct rendering on R128 because of undefined WRITE_DEPTH
5137_all_6.8.2-fix-r128-undefined-write-depth.patch

5150_all_4.3.0-ia64-radeon-preint10.patch

# (fd.o #2064) Collection of Benjamin Herrenschmidt's Radeon PPC patches:
#
# 1. This patch adds the "VGAAccess" option (defaults to NO on PPC and YES on
# others) that disables all legacy VGA stuffs in the driver, since they are
# causing various issues on non-x86 machines.
#
# 2. This patch makes sure CRTC2_OFFSET_CNTL is cleared. None of the options in
# this register should be enabled with our current driver, and some firmwares
# setup a tiled display, which we _must_ disable for now. Without this, the
# second screen is completely scrambled on some PowerMacs.
#
# 3. This patch fix the routine that probes for PLL values in absence of a
# BIOS ROM. The measure is more precise, done several times to avoid
# "gliches" caused by scheduling latencies, plus the patch fixes actual
# bugs in the previous iteration of the code. It also add calculation of
# the mclk and sclk values for proper display bandwidth calculation and
# adds proper min/max PLL values for r420 type cards.
#
# 4. The display bandwidth calculation code has a small bug when looking at
# the memory controller setup on r300 chips. Hui from ATI confirmed that
# this was the right fix.
#
# 5. When using MergedFB, the driver would call RADEONInitPLLRegisters for the
# first head even when UseBiosDividers was set to TRUE, which was incorrect.
# This patch fixes it by moving the test of UseBiosDividers into
# RADEONInitPLLRegisters which simplifies the code in the caller and is more
# logical.
#
# 6. The dual head setup was recently re-broken (after having been fixed a while
# ago) with SURFACE_CNTL beeing written with the wrong value from the second
# head. The problem is that usually, only the first head had a correct value
# in there, and the driver would regular mixup which register setup was used to
# restore that value. This patch fixes it once for all by making sure the
# second head does carry the proper value too.
#
# 7. The second digital output of the radeon chip doesn't like when the P2PLL
# is set with an odd post-divider value. This makes sure we never chose
# a "wrong" value when calculating the P2PLL setting on a non-CRT screen.
#
# 8. On some cards where no BIOS provided output mapping infos is available, the
# driver would get the DDC flipped between the two outputs of the card. This
# typically happen on recent Mac cards. This adds an option to force the
# driver to reverse what it thinks is the primary display DDC and the
# secondary display DDC. Ultimately, we'll have to do a better job of
# recognizing those Mac cards though.
#
# 9. RadeonValidateFPModes() has a bug where it could try to dereference
# a NULL pointer in some cases when linking in modes. This fixes it.
#
# 10. This patch adds an option for probing the PLL value at server init time
# for LVDS panels and re-using it later (by setting UseBiosDividers). It's
# useful on machines without an X86 BIOS image providing the proper set of
# divider values for the LVDS, as the value calculated by
# RADEONInitPLLRegisters() tend not to be suitable for some LVDS panels.
# It also changes a bit the way the panel infos are extracted, the previous
# code didn't quite work for me, and after discussing with Hui, I decided
# to move the detection earlier in the discovery process and to do it slightly
# differently.
# v2: (fd.o #2144) In absence of an x86 BIOS, the driver tries to calculate the
# values for MCLK and SCLK (since my patches). However, the formula I used
# fails to take into account a factor of 2 that has to be applied on one of
# the deviders, thus causing the clocks to be underestimated. Enclosed is a fix
# for it, now, the clocks calculated by X do match the values advertised by
# Open Firmware.
5160_all_6.8.1-benh-radeon-ppc-fixes-v2.patch

# (#79033, fd.o #2000) Radeon driver disables hotkeys. Provide a new option
# BIOSHotkeys to enable hotkey switching.
5170_all_6.8.1.904-radeon-add-bioshotkeys-option.patch

# Somehow when applying fd.o #1220 and fd.o #1912, things got mixed up. An extra
# call to RadeonSetFBLocation() was added to RADEONAdjustFrame(). Back this out.
# Michel Daenzer says:
# As I said before: it's unnecessary writes to GPU memory controller
# registers. In the best case, there's an unnecessary slight delay maybe;
# in the worst case, the GPU might wedge.
5180_all_6.8.2-back-out-extra-radeonsetfblocation.patch

# (#81283, fd.o #2164) Forgot to return TRUE at the end of
# RADEONSetupRenderByteswap() so some render-accelerated stuff was screwed up.
5190_all_6.8.2-radeon-render-byteswap.patch

# (#38549) Adds acceleration for Newport cards
# Patch is by Dominik Behr, with mods by Adam Jackson.
# v4: Return to v2 patch, because v3 tried to fix color swap problems that were
# really elsewhere (fd.o #1895).
5200_all_6.8.0-newport-accel-v4.patch

5350_all_4.3.99.902-ia64-hp-nv-memory-barrier.patch
5800_all_6.7.99.1-tdfx-libglide-name-v2.patch
5851_all_6.7.99.1-tdfx-dri-fix-low-texmem-hang.patch

5900_all_6.7.0-acecad-v2.patch

# v2: (#89852) Stop removing LINUX_INPUT, because it breaks BSD.
5901_all_4.2.99.3-acecad-debug-v2.patch

7000_all_4.1.0-ia64-hp-vgaHW-memory-barrier2.patch
7100_all_4.3.0-ia64-pci-infinite-loop.patch
7200_all_4.3.0-ia64-slowbcopy.patch
7500_all_4.0.1-s390-nohardware.patch

# (#29953, #56159) Add event interface device support
# 9001_all_4.3.0-lnx-evdev-keyboard-v2.patch: (#63568) Restore case
# insensitivity of Option "Protocol" "Standard" for keyboard, by Alan Swanson
# <swanson@ukfsn.org>.
# core-v3: Update for Imakefile changes in 6.8.1.901
# (#82705) dont-grab: Don't grab the keyboard, so combo keyboard/mice work.
9000_all_6.7.99.2-lnx-evdev-core-v3.patch
9001_all_4.3.0-lnx-evdev-keyboard-v2.patch
9002_all_6.7.0-lnx-evdev-mouse.patch
9003_all_6.8.2-lnx-evdev-keyboard-dont-grab.patch

# (#29953, #56159) Add support for the PS/2++ protocol used by some of the
# newer Logitech mice
9010_all_6.7.99.1-logitech-ps2-plusplus-v2.patch

9016_all_4.3.0-libfontenc-IncludeSharedObjectInNormalLib.patch
9133_all_4.3.0-SDK-add-missing-includes-for-vnc.patch
9180_all_4.3.0-xcursorgen-check-malloc-return.patch

# (#31982, fd.o #1043) Xcursor animated themes cause memory leak
9185_all_6.8.2-fix-cursor-memleak.patch

# From RH. This prevents writing out the HorizSync/VertRefresh lines commented
# out, which forces all default X config files written out by this library to
# rely on DDC. Poor assumption that DDC is always available. Patch by Mike
# Harris.
9235_all_xorg-x11-6.7.0-libxf86config-monitor-freq-fix.patch

# Don't build the config tools when I tell you not to build them.
9250_all_6.8.1.904-respect-xfree86configtools-setting.patch

# (#54132, fd.o #826) Stops xorgconfig from adding /usr/X11R6 font paths when
# fonts are installed elsewhere.
9355_all_6.7.99.2-xorgconfig-fontdir-fixes-v2.patch

# (fd.o #303, fd.o #1577) Mike Harris:
# Elliot Lee wrote an initial PPC64 patch which essentially patched the Imake
# config files and some Imakefiles. I added things to that. Then we found SuSE
# had a PPC64 patch also.  I merged everything into one patch, then fixed up
# some more stuff.
9360_all_6.7.99.2-ppc64-support-updates-v2.patch

# (#79497) xorgcfg / X -configure produce a bunch of unresolved cfb symbols.
# (#80736) This can break the build.
# v2: Use more correct version committed to HEAD rather than from our Bugzilla.
9370_all_6.8.1.904-fix-duplicate-cfb-symbols-v2.patch

# (#78147, #80736) Build can break because of duplicate mfb symbols.
9375_all_6.8.1.904-fix-duplicate-mfb-symbols.patch

# (#49155) Add a keymap new in G4/G5 macs
9390_all_6.7.0-add-french-belgian-azerty-ppc-keyboard.patch

# Given to Tim Roberts by anonymous user, posted to devel@xfree86.org mailing
# list. Without this patch, an attempt to use Xrandr with shadowFB-based
# rotation will result in an unusable display.
9395_all_6.7.0-savage-disable-xrandr-for-shadowfb-rotate.patch

9400_all_4.3.0-mkcfm-FHS-install.patch
9820_all_4.3.99.15-AuthLib.patch

# (#50562) Fix a module naming problem on pie builds, which resulted in the SDK
# install breaking.
9855_all_6.7.0-fix-SDK-pie-build.patch

# (#48307) Fix broken windows keys.
9860_all_xorg-xkb_winkeys.patch

# (#70712) Enable deadkeys for gb keymap. They got lost sometime between XFree86
# 4.3.0 and X.Org 6.8.0.
9865_all_add-nodeadkeys-to-gb.patch

9900_all_4.3.0_propolice-gentoo.patch

# (#64618) In combination with HardenedGccSpecs YES, this will fix up a lot of
# the unresolved symbol problems with dlloader. Patch is by Adam Jackson
# <ajax@nwnk.net> with some mods by solar, applied to 6.8.0 by swtaylor.
9910_all_use-nonow-ldflag-for-hardenedgccspecs.patch.

# (#80685) GCC4 compile fixes
9913_all_6.8.2-cfbgc-gcc4.patch
9914_all_6.8.2-mmx-gcc4.patch
9915_all_6.8.2-radeon-gcc4.patch

# (fd.o #2750) Fix case where a smaller write-combining region blocks
# write-combining setting of the whole frame buffer. Fix bug in wc setting code
# when regions are first splitted and setting of write-combining then fails.
9920_all_6.8.2-fix-write-combining.patch

# (#fd.o 2750) Prevent mtrr_remove_offending from ending up in an endless loop
# if the offending region refuses to be removed.
9925_all_6.8.2-fix-mtrr-endless-loop.patch

# (#83598, fd.o #1920) More overflows...
9930_all_6.8.0-xpm-secfix-CAN-2005-0605.patch

9962_all_text-relocations-BUSmemcpy.S.patch
9980_all_6.7.99.904-fix-encodings.patch

# (#68726) Xbox's nvidia driver
# (#76807) Break up into two patches: nv driver (9990) and pci scanning (9991)
9990_x86_6.8.0-nvxbox-20050107.patch
9991_x86_6.8.1.904-xbox-pci-20050207.patch

# (#105688) buffer overflow in pixmap memory allocation
# (#105859) updated (September 16, 2005 - Joshua Baergen)
9995_all_CAN-2005-2495.patch
