The Patch Pile
All patches linked from this page are hereby placed in the public
domain, unless text in the patch file indicates otherwise. These patches
are provided as-is; use at your own risk.
Package index
atari800
- no-mouse-joystick-patch.diff (2.0.3)
- A simple patch to prevent mouse movements from being interpreted as joystick input.
binutils
- 8-digit-sizes.diff (2.18)
- Changes the output of the "size" command to use 8 digits rather than 7 for printing sizes and to use spaces rather than tabs between columns.
coreutils
- dd-noxfer-default.diff (6.9 | 6.10 | 6.11 | 6.12)
- Makes "status=noxfer" the default for the "dd" command, and adds the option "status=xfer" to cause transfer statistics to be displayed. "status=noxfer" is still supported, though it is no longer displayed in the help text.
- ls-enforce-min-column-width.diff (6.9 | 6.10 | 6.11 | 6.12)
- Enforces minimum column widths on the link count, owner, group, device number, and file size columns to prevent them from being squeezed too closely together.
- tail-classic-syntax.diff (6.9 | 6.10 | 6.11 | 6.12)
- Restores classic syntax to the "tail" command, allowing the use of "tail +N" instead of "tail -n+N".
diffutils
- disable-nanosecond-resolution.diff (2.8.1 | 2.8.7)
- Adds a --disable-nanosecond-resolution to the configure script to explicitly prevent diff from writing timestamps to nanosecond resolution.
- compile-error-fixes.diff (7.0 | 7.1)
- Fixes various errors which occur during compilation.
dvdauthor
- invalid-aspect-ratio-warning.diff (0.6.14)
- Prevents multiple warnings from being output for consecutive frames with invalid aspect ratio flags.
- subgen-debug-info.diff (0.6.14)
- Modifies a debug message in subgen to print timestamps with fractional resolution.
- until-next-sub.diff (0.6.14)
- Fixes an issue with subgen I can't recall.
dvgrab
- no-more-junk.diff (2.1 | 3.1)
- Suppresses the writing of JUNK chunks to AVI files.
e2fsprogs
- lsdel-large-files-fix.diff (1.40)
- Fixes debugfs's "lsdel" command to work correctly with large files.
- retry-prompt.diff (1.40 | 1.40.8)
- Adds a "Retry?" prompt to the read error handler, allowing recovery from transient read errors.
gcc
- no-shared-libgcc.diff (4.1.2 | 4.2.2 | 4.3.1)
- Makes GCC default to linking the static version of the internal "libgcc" library rather than the shared version.
gdb
- external-readline.diff (6.7.1 | 6.8)
- Patches the configure script and Makefiles to use the "readline" library installed on the system instead of the one included in the GDB distribution archive.
gtk+
- gtkitemfactory-prototype-fix.diff (2.12.9)
- Fixes an incomplete function prototype in gtkitemfactory.h.
iiimecf
- surrogate-border-fix.diff (0.75)
- Works around a problem arising from the combination of Emacs 22, IIIMECF, and ATOK X3 which causes the error "invalid pos (larger than string length or at the surrogate border)" to occur when certain non-kana, non-kanji characters appear in the preedit string. Can be reproduced by e.g. entering "s-" in Japanese input mode.
jpeg
- cjpeg-dpi-options.diff (6b)
- Adds "-xdpi", "-ydpi", "-xdpcm", and "-ydpcm" command-line options to cjpeg to allow setting the output image's resolution in dots per inch or centimeter.
libquicktime
- prototypes.diff (0.9.8 | 1.0.1)
- Ensures that all functions in library headers are properly prototyped to prevent warnings in GCC.
libusb
- no-wait-on-error.diff (0.1.12)
- Ensures that errors are immediately reported to the caller regardless of any specified timeout, so callers don't wait indefinitely on (e.g.) a disconnected device.
linux
- cylinder-overflow-warning.diff (2.6.19 | 2.6.23 | 2.6.24 | 2.6.25)
- Outputs a warning when an attempt is made to access a sector beyond the 65535th cylinder of an IDE device in CHS mode, as can happen with sufficiently large hard disks on some defective BIOSes.
- export-pgoff_t.diff (2.6.19 | 2.6.23)
- Exports the "pgoff_t" type from <linux/types.h> even when __KERNEL_STRICT_NAMES is defined. (This was, at least at one point, required to compile some program or module that I can't recall.)
- ext2_fs-header-fix.diff (2.6.23 | 2.6.24 | 2.6.25)
- Includes <linux/fs.h> in <linux/ext2_fs.h> (and <linux/ext3_fs.h>) to prevent a compilation error in sash-3.7.
- header-fix-for-vmware.diff (2.6.19 | 2.6.23)
- Prevents redefinitions of the "false" and "true" constants and the "bool" type when compiling kernel modules written in C++, such as modules used by some versions of VMware.
- ieee1394-dump-full-packet.diff (2.6.19 | 2.6.23 | 2.6.24 | 2.6.25)
- Causes the IEEE1394 driver to dump the full contents of all packets sent, rather than just the packet headers, when debugging.
- if_fddi-type-fix.diff (2.6.23)
- Ensures that <linux/if_fddi.h> includes <linux/types.h> so that the __be16 type is defined.
- japanese-text-on-console.diff (2.2.16 | 2.4.13 | 2.6.7)
- Allows Japanese (ISO-2022-JP, EUC-JP) text to be displayed on the console when using a framebuffer console.
- loop-ioctl-fix.diff (2.6.19 | 2.6.23 | 2.6.24 | 2.6.25)
- Changes <linux/loop.h> to use the _IO() macro rather than literal numeric constants to define ioctl values for the loop device.
- proc-fd-file-position.diff (2.6.13 | 2.6.19 | 2.6.23 | 2.6.24 | 2.6.25)
- Changes the behavior of file descriptor entries in the /proc/NNN/fd directory so that the size (stat.st_size) field is set to the file descriptor's current file position. This allows lsof to show the current file position when invoked with the "-o" option.
- tdfx-allow-256-pixel-modes.diff (2.6.19 | 2.6.23 | 2.6.24 | 2.6.25)
- Allows the use of 256-pixel-wide modes when using the tdfx framebuffer device.
mercurial
- subversion-1.5-import-fix.diff (1.0 | 1.0.1)
- Fixes the Subversion import module in "hg convert" to work with the Subversion 1.5 API (avoiding an "svn_ra_get_log: Assertion `*path != '/'' failed" error). This patch is untested with Subversion 1.4.
mpeg4ip
- height-1080.diff (1.6.1)
- Records a height of 1080 pixels if the input stream height is 1088 pixels (required for PlayStation 3 playback).
- mp4chaps.diff (1.6.1)
- Adds the ability to record Nero/QuickTime-style chapter markers in MP4 files. Patch taken from post on http://sourceforge.net/forum/forum.php?thread_id=1837284&forum_id=59136 by Ullrich Pollaehne.
- mp4v-buffer-size.diff (1.5.0.1 | 1.6.1)
- Increases the MPEG-4 video packet buffer from 256kB to 1024kB to avoid buffer overflow errors on high-bitrate streams.
mplayer
- detect-AVI-EOF.diff (1.0rc2)
- Detects EOF chunks in AVI files, and stops processing when one is encountered.
- ignore-keypress-in-slave-mode.diff (1.0rc2)
- Makes MPlayer Ignore keypress events when running in slave mode.
- mpeg-seek-fix.diff (1.0rc2)
- Fixes seek failures in high-bitrate MPEG-2 streams.
- no-proprietary-codec-message.diff (1.0rc2)
- Suppresses the snide remark about proprietary codecs displayed for certain types of files.
- no-system-slow-message.diff (1.0rc2)
- Suppresses the "system too SLOW" message displayed when the audio and video get out of sync.
- nodup.diff (1.0rc2)
- Adds a -nodup option to mencoder which prevents frames from being duplicated.
- noskip-fix.diff (1.0rc2)
- Ensures that no frames are actually skipped when the -noskip option is passed to mencoder.
- time-left-in-seconds.diff (1.0rc2)
- Displays the time remaining
ncurses
- disable-char-insert-delete.diff (5.6)
- Disables the "ic" (insert character) and "dc" (delete character) terminal actions. This was needed at one point to correct some sort of misbehavior, possibly related to wide characters, but I can't remember any details.
- disable-linux-console-cursor-type.diff (5.6)
- Disables the "civis", "cnorm", and "cvvis" terminal actions on Linux consoles (the "linux" console type). The same effect can be achieved on a per-user basis by compiling the updated terminal data into the $HOME/.terminfo directory.
nvidia-drivers
- minimized-SDL-crash-fix.pl (169.12)
- Modifies the NVIDIA X11 driver module to work around a bug which crashes the X server when switching to another virtual console while an SDL (or possibly other MITSHM-using) program is minimized (NVIDIA bug 413808). The bug appears to be fixed in the 173.14.05 release of the driver.
patch
- fix-bouncing-offsets.diff (2.5.4)
- Prevents patch from alternately reporting nonzero and zero offsets when applying a patch which has a constant offset with respect to the target file.
portage
- autopatch.diff (2.1.3.16 | 2.1.3.19 | 2.1.4 | 2.1.5 | 2.1.5.4 | 2.2)
- Allows packages to be automatically patched before compilation without the necessity of creating and maintaining separate ebuilds to apply the patches. Set PORTAGE_PATCHDIR in /etc/make.conf; then for package CATEGORY/PACKAGE-VERSION, store version-independent patches in ${PORTAGE_PATCHDIR}/CATEGORY/PACKAGE and version-dependent patches in ${PORTAGE_PATCHDIR}/CATEGORY/PACKAGE/VERSION . Based on a patch by wdsci at http://forums.gentoo.org/viewtopic-t-339019.html
- concise-progress.diff (2.1.3.16 | 2.1.3.19 | 2.1.4 | 2.1.5 | 2.1.5.4 | 2.2)
- Implements a more concise progress display for downloading files and compiling packages. Add "concise-progress" to ${FEATURES} to activate. (work in progress)
- delete-locale-files.diff (2.1.3.16 | 2.1.3.19 | 2.1.4 | 2.1.5 | 2.1.5.4 | 2.2)
- Automatically deletes all locale files (in /usr/share/locale/*/LC_MESSAGES) after installation if USE="-nls" is specified in make.conf.
procps
- HZ-calculation-fix.diff (3.2.7)
- Fixes a bug in the calculation of the system clock tick frequency (the HZ constant).
- extreme-prejudice.diff (3.2.7)
- For those nostalgic about old Linux man pages.
rxvt-unicode
- detailed-codeset-warnings.diff (8.8 | 9.02)
- Prints more detailed warning messages when the codeset for a font cannot be determined.
- iso-646-fix.diff (8.8 | 9.02)
- Fixes a typo preventing the ISO-646.1991 character set from being recognized.
- japanese-symbol-width.diff (8.3 | 8.8 | 9.02)
- A crude patch to force all Unicode characters in the range U+2000...U+27FF to be treated as double-width, to ensure proper alignment when using a Japanese font.
SDL
- no-xim.diff (1.2.13)
- Prevents SDL from creating an XIM (X Input Method) context, which seems to cause some SDL programs to freeze at startup.
shadow
- chkname-fix.diff (4.0.18.2-gentoo)
- Changes the definition of an allowable user or group name to anything matching /^[A-Za-z0-9_.-]\$?$/. Note that this can cause problems with certain system utilities or daemons if not used correctly.
snd-util
- device-selection-patch.diff (3.5)
- Allows different OSS devices to be selected from the command line (mixer -d /dev/mixerN, vplay -D /dev/dspN).
snes9x
- hires-typo-fix.diff (1.43 | 1.51)
- Fixes a typo preventing high-resolution graphics from being used in certain video resolutions.
- linux-2.6.17-joystick_h-fix.diff (1.43 | 1.51)
- Works around a compilation error under (at least) Linux 2.6.17 in which the <linux/joystick.h> header defines a field named "class", causing an error when used in C++ source.
- loadsave-key-binding-fix.diff (1.43)
- Inverts the meaning of the Shift key with respect to save states (so Shift-F# saves a state while the unshifted F# loads it), to avoid accidentally overwriting save states with a wayward keypress.
- sound-capture.diff (1.43)
- Allows the emulated sound output to be captured when using the SVGAlib or X11 interfaces. Capturing can be started by pressing Ctrl-R ("Record") and stopped by pressing Ctrl-S ("Stop") at any time. Captured sound is written as raw PCM data to the file "audio.raw" in the current directory; the file is truncated each time a new capture is started.
- window-height-fix.diff (1.43 | 1.51)
- Fixes a bug in X11 mode causing the window to be 1 pixel (2 pixels in high-resolution mode) too short to display the entire emulated screen.
sox
- 8svx-preserve-repeat.diff (14.0.0)
- Preserves the repeat (loop) start and length stored in IFF 8SVX files when changing such a file's sampling rate.
strace
- support-loop-ioctls.diff (4.5.16)
- Adds support for Linux loop device ioctl calls.
- support-sound-ioctls.diff (4.5.16)
- Adds support for Linux audio device ioctl calls.
svgalib
- gcc4-fixes.diff (1.4.3)
- Fixes compilation errors when compiling with GCC 4.x.
- make-depend-fix.diff (1.4.3)
- Fixes a failure when running "make depend".
- mmap-fix.diff (1.4.3)
- Fixes a false error result when mmap() returns an address with the high bit set.
- new-fbdev-driver.diff (1.4.3)
- Replaces the distributed fbdev driver with a better-functioning one.
tcsh
- ignore-unknown-ls-colors.diff (6.15.00)
- Ignores unknown color types in the LS_COLORS environment variable, rather than aborting.
tetrinet
- brute-force-decryption.diff (0.11)
- Allows the server to decrypt clients' connection messages using brute force if the standard algorithm (based on the client's IP address) does not work, so thatclients behind NAT can connect to the server.
- no-ipv6-fix.diff (0.11)
- Fixes a careless error causing compilation to fail if IPv6 support was disabled.
- server-lines.diff (0.11)
- Adds the "server lines" feature from the original Windows version of Tetrinet, causing the server to start adding lines to all players' fields if the game does not end within a certain period of time.
uae
- currprefs-stereo-fix.diff (0.8.25 | 0.8.26)
- Fixes compilation errors resulting from use of the obsolete currprefs.stereo field name.
- extra-file-mode-support.diff (0.8.25 | 0.8.26)
- Maps the AmigaOS file modes FIBF_SCRIPT (command script), FIBF_DELETE (deletable), and FIBF_PURE (pure executable) to the Unix file modes S_ISUID (set-user-id), S_ISGID (set-group-id), and S_ISVTX (sticky) respectively.
- gcc4-fixes.diff (0.8.25)
- Fixes compilation errors that occur when compiling with GCC 4.x.
- missing-header-fix.diff (0.8.25 | 0.8.26)
- Adds the missing header src/cpu_prefetch.h.
- nogui-cleanup.diff (0.8.25 | 0.8.26)
- Adds a missing function to src/nogui.c, and removes two unused local functions (one of which conflicts with a system header declaration).
unzip
- disable-filename-translation.diff (5.52)
- Disables the translation of filenames into the ISO 8859-1 character set (which can corrupt Japanese filenames, for example).
util-linux
- lomount-32-byte-key-fix.diff (2.12r | 2.13)
- Fixes a bug which caused the last byte of a 32-byte key to be truncated.
VisualBoyAdvance
- arm-core-rewrite.diff (1.7.2)
- Replaces the ARM/Thumb emulation core with a rewritten version that compiles significantly more quickly and runs 5-10% faster (patch #1292942 on Sourceforge). Requires cvs-20080121.diff to be applied first.
- cvs-20080121.diff (1.7.2)
- Applies all changes committed to sourceforge.net CVS as of 2008/1/21 (note that the most recent change seems to be September 2006).
- debug-key-change.diff (1.7.2)
- Changes the key to activate debugging from F11 to D (so that debugging is not accidentally activated if the user intends to press F10 but misses).
- sai-asm-fix.diff (1.7.2)
- Fixes build errors in the file src/i386/2xSaImmx.asm after applying cvs-20080121.diff.
- sound-outfile.diff (1.7.2)
- Adds the command-line option "--sound-outfile=..." to allow sound to be output to a file rather than the system audio device.
webalizer
- extended-history.diff (2.01.10)
- Extends the monthly history summary so that more than one year's worth of data is listed. (The patch uses a default of 256 months; this can be changed via the HIST_SIZE macro in preserve.h.)
- timezones.diff (2.01.10)
- Properly handles time zones given in access log entries, and converts all times to the local time of the environment in which the program is run.
whois
- getaddrinfo-fix.diff (4.7.24)
- Retries the getaddrinfo() call without the AI_IDN (internationalized domain name support) flag if the first call returns an EAI_BADFLAGS (invalid flags) error. Required to avoid runtime errors in environments where glibc is compiled without libidn.
xawtv
- include-pathname-fix.diff (3.95)
- Fixes an incorrect #include pathname.
- yuv420p-avi.diff (3.95)
- Allows YUV 4:2:0 planar data to be written to AVI files.
- no-flush-buttons.diff (1.2.2)
- Disables the "button flush" logic used when activating the X11 virtual terminal, which causes spurious button-release events to be propogated to X clients when switching from a text console back to X. (As a result, any buttons held down while switching away from X will still be considered "pressed" after switching back.) See: http://bugs.freedesktop.org/show_bug.cgi?id=13930
xfractint
- filename-buffer-overflow-fix.diff (3.10 | 20.04p07)
- Fixes an off-by-one bug in filename handling that can cause corruption of the stack.
- gcc331-fixes.diff (3.10)
- Fixes compilation errors that occur when compiling with GCC 3.3.1 and later.
xgospel
- menu-crash-fix.diff (1.12d)
- Fixes a crash that can occur when using menus.
xkbdata
- jp106-fixes.diff (1.0.1)
- Fixes the X.Org keyboard data to properly recognize extended keys on Japanese 106-key keyboards.
xkeycaps
- gcc331-fixes.diff (2.46)
- Fixes compilation errors that occur when compiling with GCC 3.3.1 and later.
xmbdfed
- gcc41-fixes.diff (4.7)
- Fixes compilation errors that occur when compiling with GCC 4.1.
xmon
- gcc4-fixes.diff (1.5.6)
- Fixes compilation errors that occur when compiling with GCC 4.x.
xmp
- envelope-reset-fix.diff (2.4.1 | 2.5.1)
- Ensures that the waveform envelope is reset when appropriate, even when no note is given in the corresponding row (fixes playback of mod.AKingIsBorn).
- missing-difftime-prototype-fix.diff (2.4.1)
- Includes <time.h> in src/misc/control.c to ensure that difftime() is declared.
- multiple-song-fix.diff (2.4.1)
- Allows the second and later songs in a file with multiple independent songs (such as separate sequence loops in a MOD file) to be played. Also removes an extraneous "if" statement.
- no-porta-on-tick-zero.diff (2.5.1)
- Prevents portamento from being applied on the first tick of each row (fixes the speed of the portamento in pattern 04 of mod.Biomechanoid).
- no-tempo-zero.diff (2.4.1 | 2.5.1)
- Ignores attempts by modules to set the playback tempo to zero.
- pan-divide-by-zero-fix.diff (2.4.1)
- Prevents division by zero when the command-line option "-P 100" is given.
- reset-dsp-on-exit.diff (2.4.1 | 2.5.1)
- Resets the DSP device on exit, terminating playback immediately rather than waiting for buffered data to finish playing.
- stop-build-on-error.diff (2.4.1 | 2.5.1)
- Changes the top-level Makefile to abort the build when a compilation error occurs in a subdirectory.
- tone-vslide-fix.diff (2.4.1 | 2.5.1)
- Fixes handling of SoundTracker effect 5 (tone portamento with volume slide), preventing sound glitches in pattern 04 of mod.Biomechanoid.
xsane
- snprintf.diff (0.991 | 0.994 | 0.995)
- Replaces sprintf() calls by snprintf() to avoid buffer overflows.
- window-position-fix.diff (0.991 | 0.994 | 0.995)
- Offsets the GTK window positions to prevent the windows from "crawling" toward the upper left corner of the display each time XSane is restarted.
xwave
- saved-mark.diff (0.7)
- Implements a "saved mark" (a second cursor position), which can be swapped with the current cursor position by pressing F12.
yudit
- gcc4-fixes.diff (2.7.8)
- Fixes compilation errors that occur when compiling with GCC 4.x.
zlib
- uninitialized-access-fix.diff (1.2.3)
- Prevents the compression algorithm from generating uninitialized data access errors when using a memory access checking tool like Valgrind, at the cost of a minor increase in execution time.