Title: My patchwork Summary: This is a collection of my free software patches. Each patch is accompanied by a short description and related links to external resources, if any. Copyright: (c) 2009-2015 Vitaly Minko Content is available under GNU Free Documentation License 1.3 and Creative Commons Attribution-Share Alike 3.0 Unported License Date: 22 Feb 2015 Web: http://vminko.org/patchwork Introduction ------------ This is a collection of my free software patches. Each patch is accompanied by a short description and related links to external resources, if any. If you don't know how to apply a patch, please see the [wiki manual][wiki_manual] or the [man page][man_patch]. [wiki_manual]: http://en.wikipedia.org/wiki/Patch_%28Unix%29 [man_patch]: http://linux.die.net/man/1/patch Vim --- [debian_fix_466088.patch][vim_font_resize_patch] is a [Vim][vim_home] patch. It fixes the following issue: >When using a maximized gvim (GTK2), changing the font size does not >cause the window to re-evaluate its size in order to stay maximized. Related bugs: [Ubuntu][vim_ubuntu_bug], [Debian][vim_debian_bug]. This patch is already included (svn@1642) in the Vim version 7.2.283 and later. [vim_home]: http://www.vim.org/ [vim_font_resize_patch]: /storage/patches/vim/debian_fix_466088.patch [vim_ubuntu_bug]: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/183760/?loggingout=1 [vim_debian_bug]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466088 [vim_geom.patch][vim_geom_patch] is another Vim patch, which fixes the following issue: >GTK2: when using the -geom argument with an offset from the right >edge and the size is smaller than the default, the Vim window is >not positioned properly. This patch is already included (svn@1613) in the Vim version 7.2.263 and later. [vim_geom_patch]: /storage/patches/vim/vim_geom.patch [vim_unmax.patch][vim_unmax_patch] is another Vim patch. It fixes the following issue: >GTK2: When the Vim window is maximized setting 'columns' or >'lines' doesn't work. This patch is already included (svn@1614) in the Vim version 7.2.264 and later. [vim_unmax_patch]: /storage/patches/vim/vim_unmax.patch SDL --- [sdl-fbcon-rotation.patch][sdl_patch] is an [SDL][sdl_home] patch. It adds the `SDL_VIDEO_FBCON_ROTATION` environment variable to control output orientation on the framebuffer console. Valid values are: * not set - Not rotating, no shadow. * `NONE` - Not rotating, but still using shadow. * `CW` - Rotating screen clockwise. * `UD` - Rotating screen upside down. * `CCW` - Rotating screen counter clockwise. This patch is already included (svn@4874) in the SDL version 1.2.14 and later. [sdl_home]: http://www.libsdl.org [sdl_patch]: /storage/patches/sdl-fbcon-rotation.patch fbpanel ------- [tclock_font.patch][fbpanel_patch] is an [fbpanel][fbpanel_home] patch. It allows user to select font for tclock plugin: Plugin { type = tclock config { ClockFmt = %R TooltipFmt = %A %x Font = Liberation Sans 16 } } The alternative way is to set a font style in `gtkrc`, for example: style "fbpanel-tclock" { font_name="Desired Font" } widget "*.tclock.*" style "fbpanel-tclock" [fbpanel_patch]: /storage/patches/tclock_font.patch [fbpanel_home]: http://fbpanel.sourceforge.net REminiscence ------------ [reminiscence-0.1.9-64bit-fix.patch][rs_patch] is a [REminiscence][rs_home] patch. It fixes the version 0.1.9, which fails to unpack CT data on 64-bit systems with the following message: ERROR: Bad CRC for collision data! [rs_home]: http://cyxdown.free.fr/reminiscence/ [rs_patch]: /storage/patches/reminiscence-0.1.9-64bit-fix.patch [rs_gentoo_bug]: http://bugs.gentoo.org/show_bug.cgi?id=120787 ePDFView -------- [epdfview-svn-345_dual-pages.patch][epdf_patch] is an [ePDFView][epdf_home] patch. It implements a dual page mode. Related bugs: * The ePDFView [enhancement ticket][epdf_bug]. * The [feature request][epdf_debian_bug] from the Debian bug tracker. The patch should be applied to svn@345. [epdf_home]: http://trac.emma-soft.com/epdfview/ [epdf_patch]: /storage/patches/epdfview-svn-345_dual-pages.patch [epdf_bug]: http://trac.emma-soft.com/epdfview/ticket/227 [epdf_debian_bug]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529938 Text::MultiMarkdown ------------------- [MultiMarkdown-1.000033-crossrefs.patch][mmkd_patch] is a patch for the [Text::MultiMarkdown][mmkd_pm] perl module. It fixes support of the cross-references supplied by a optional label. Here is an example: Header One [h1] =============== [Reference to the header one][h1] Related CPAN bug [#60067][cpan_bug]. The patch should be applied to the version 1.000033. [mmkd_patch]: /storage/patches/MultiMarkdown-1.000033-crossrefs.patch [mmkd_pm]: http://search.cpan.org/~bobtfish/Text-MultiMarkdown-1.000033/lib/Text/MultiMarkdown.pm [cpan_bug]: https://rt.cpan.org/Public/Bug/Display.html?id=60067 Linux ----- [shoulderized-fn-layout.patch][kbd_patch] is a [Linux][linux_home] patch, which changes layout of the [Pandora][pandora_home] keyboard. It maps Fn to the right shoulder button and does few additional swappings. See [this sheet][kbd_layout] for details. This patch won't be merger to the [Pandora Kernel Repository][pandora_repo] since it contradicts the official keymap. Should be applied to the version 2.6.27. [linux_home]: http://kernel.org/ [pandora_home]: http://www.openpandora.org/ [kbd_patch]: /storage/patches/shoulderized-fn-layout.patch [kbd_layout]: /gallery/Pandora/Russian%20keyboard%20layout%20with%20shoulderized%20Fn [pandora_repo]: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=summary xf86-video-omapfb ----------------- [pandora_backlight_dim_v2.patch][xdrv_patch_v2] is another Pandora-related patch. It implements Pandora-specific screen blanking in the [xf86-video-omapfb][xdrv_home] driver. The functionality is similar to the [pandora_backlight_dim.patch][xdrv_patch_v1], but is not dependent on user environment and works faster since it does not run shell script. The related OpenPandora [bug report][op_bug]. The patch should be applied to the version 0.1.1. [xdrv_home]:http://cgit.pingu.fi/xf86-video-omapfb/ [xdrv_patch_v1]: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=openembedded.git;a=blob;f=recipes/xorg-driver/xf86-video-omapfb/pandora_backlight_dim.patch;h=4a0b8432d083c6e7297192a2920c7a777ae3d098;hb=16f3fff44323bd6b4349d909667b51a2fef3f278 [xdrv_patch_v2]: /storage/patches/pandora_backlight_dim_v2.patch [op_bug]: http://bugs.openpandora.org/index.php?do=details&task_id=185 Empathy ------- Here is a list of various [Empathy][empathy_home] bug fixes. All of them are already available in the version 3.1.1 and later. * [bug_532832.patch][emp_patch_532832] fixes [#532832][emp_bug_532832] - Spelling propositions when multi language support * [bug_550775.patch][emp_patch_550775] fixes [#550775][emp_bug_550775] - Can't add words to dictionary in empathy * [bug_573283.patch][emp_patch_573283] fixes [#573283][emp_bug_573283] - Most options should be disabled when right clicking on in a chatroom * [bug_594145.patch][emp_patch_594145] fixes [#594145][emp_bug_594145] - should enable accounts after import * [bug_609942.patch][emp_patch_609942] fixes [#609942][emp_bug_609942] - URLs are split at apostrophes * [bug_612205.patch][emp_patch_612205] fixes [#612205][emp_bug_612205] - Ctrl-C not working in the topic * [bug_614319.patch][emp_patch_614319] fixes [#614319][emp_bug_614319] - Search bar shouldn't resize the chat window * [bug_616339.patch][emp_patch_616339] fixes [#616339][emp_bug_616339] - Problem with & symbol from status messages links in tooltips * [bug_619858.patch][emp_patch_619858] fixes [#619858][emp_bug_619858] - contacts list should autoscroll when drag-n-dropping * [bug_619961.patch][emp_patch_619961] fixes [#619961][emp_bug_619961] - Drag and drop should work onto a collapsed group * [bug_625745.patch][emp_patch_625745] fixes [#625745][emp_bug_625745] - Tabs not displayed in chat text in theme * [bug_625780.patch][emp_patch_625780] fixes [#625780][emp_bug_625780] - Not attaching to minimized window * [bug_629261.patch][emp_patch_629261] fixes [#629261][emp_bug_629261] - Shouldn't allow jid without domain * [bug_631101.patch][emp_patch_631101] fixes [#631101][emp_bug_631101] - Enforce a format for birthday * [bug_632024.patch][emp_patch_632024] fixes [#632024][emp_bug_632024] - Be able to start contact search using menu * [bug_633481.patch][emp_patch_633481] fixes [#633481][emp_bug_633481] - AccountChooser filters should be asynchronous * [bug_634688.patch][emp_patch_634688] fixes [#634688][emp_bug_634688] - Search bar is not visible [empathy_home]: http://live.gnome.org/Empathy [emp_bug_532832]: https://bugzilla.gnome.org/show_bug.cgi?id=532832 [emp_bug_550775]: https://bugzilla.gnome.org/show_bug.cgi?id=550775 [emp_bug_573283]: https://bugzilla.gnome.org/show_bug.cgi?id=573283 [emp_bug_594145]: https://bugzilla.gnome.org/show_bug.cgi?id=594145 [emp_bug_609942]: https://bugzilla.gnome.org/show_bug.cgi?id=609942 [emp_bug_612205]: https://bugzilla.gnome.org/show_bug.cgi?id=612205 [emp_bug_614319]: https://bugzilla.gnome.org/show_bug.cgi?id=614319 [emp_bug_616339]: https://bugzilla.gnome.org/show_bug.cgi?id=616339 [emp_bug_619858]: https://bugzilla.gnome.org/show_bug.cgi?id=619858 [emp_bug_619961]: https://bugzilla.gnome.org/show_bug.cgi?id=619961 [emp_bug_625745]: https://bugzilla.gnome.org/show_bug.cgi?id=625745 [emp_bug_625780]: https://bugzilla.gnome.org/show_bug.cgi?id=625780 [emp_bug_629261]: https://bugzilla.gnome.org/show_bug.cgi?id=629261 [emp_bug_631101]: https://bugzilla.gnome.org/show_bug.cgi?id=631101 [emp_bug_632024]: https://bugzilla.gnome.org/show_bug.cgi?id=632024 [emp_bug_633481]: https://bugzilla.gnome.org/show_bug.cgi?id=633481 [emp_bug_634688]: https://bugzilla.gnome.org/show_bug.cgi?id=634688 [emp_patch_532832]: /storage/patches/empathy/bug_532832.patch [emp_patch_550775]: /storage/patches/empathy/bug_550775.patch [emp_patch_573283]: /storage/patches/empathy/bug_573283.patch [emp_patch_594145]: /storage/patches/empathy/bug_594145.patch [emp_patch_609942]: /storage/patches/empathy/bug_609942.patch [emp_patch_612205]: /storage/patches/empathy/bug_612205.patch [emp_patch_614319]: /storage/patches/empathy/bug_614319.patch [emp_patch_616339]: /storage/patches/empathy/bug_616339.patch [emp_patch_619858]: /storage/patches/empathy/bug_619858.patch [emp_patch_619961]: /storage/patches/empathy/bug_619961.patch [emp_patch_625745]: /storage/patches/empathy/bug_625745.patch [emp_patch_625780]: /storage/patches/empathy/bug_625780.patch [emp_patch_629261]: /storage/patches/empathy/bug_629261.patch [emp_patch_631101]: /storage/patches/empathy/bug_631101.patch [emp_patch_632024]: /storage/patches/empathy/bug_632024.patch [emp_patch_633481]: /storage/patches/empathy/bug_633481.patch [emp_patch_634688]: /storage/patches/empathy/bug_634688.patch Telepathy --------- Here is a couple of [Telepathy][telepathy_home] bug fixes. * [bug_30298.patch][tlp_patch_30298] fixes [#30298][tlp_bug_30298] - shows wrong date for some messages. Not yet included in the master branch. * [bug_30414.patch][tlp_patch_30414] fixes [#30414][tlp_bug_30414] - Unable to search terms with special characters in logs. Already committed. [telepathy_home]: http://telepathy.freedesktop.org/wiki/ [tlp_bug_30298]: https://bugs.freedesktop.org/show_bug.cgi?id=30298 [tlp_bug_30414]: https://bugs.freedesktop.org/show_bug.cgi?id=30414 [tlp_patch_30298]: /storage/patches/telepathy/bug_30298.patch [tlp_patch_30414]: /storage/patches/telepathy/bug_30414.patch GNUnet ------ [gnunet-0.9.0pre1_expand-hostlistfile.patch][gn_patch_1607] is a [GNUnet][gnunet_home] patch. It makes the `HOSTLISTFILE` configuration parameter $-expand. Included in GNUnet 0.9.0pre2 and later. Related bug [#1607][gn_bug_1607]. [gnunet_home]: https://gnunet.org/ [gn_bug_1607]: https://gnunet.org/bugs/view.php?id=1607 [gn_patch_1607]: /storage/patches/gnunet/gnunet-0.9.0pre1_expand-hostlistfile.patch The following patches implement a simple chat application, which is a port of [the 0.8 version][gn_chat_08] plus P2P layer: [gnunet-svn@14186-chat.patch][gn_patch_1644], [gnunet-svn@14325-chat-update.patch][gn_patch_1657], [gnunet-svn@14557-chat-update.patch][gn_patch_1665a] and [gnunet-svn@14325-chat-indentation-fix.patch][gn_patch_1665b]. All the patches are included in the SVN repository. Related bugs [#1644][gn_bug_1644], [#1657][gn_bug_1657], [#1665][gn_bug_1665]. [gn_bug_1644]: https://gnunet.org/bugs/view.php?id=1644 [gn_bug_1657]: https://gnunet.org/bugs/view.php?id=1657 [gn_bug_1665]: https://gnunet.org/bugs/view.php?id=1665 [gn_patch_1644]: /storage/patches/gnunet/gnunet-svn@14186-chat.patch [gn_patch_1657]: /storage/patches/gnunet/gnunet-svn@14325-chat-update.patch [gn_patch_1665a]: /storage/patches/gnunet/gnunet-svn@14557-chat-update.patch [gn_patch_1665b]: /storage/patches/gnunet/gnunet-svn@14557-chat-indentation-fix.patch [gn_chat_08]: https://gnunet.org/svn/GNUnet/src/applications/chat/ xrick ----- [xrick-021212-exit.patch][xrick_patch_exit] is an [xrick][xrick_home] patch. It fixes incorrect fullscreen mode when the display aspect ratio is higher than 320/200 = 1.6. For example, it makes xrick choose 640x400 instead of 320x200 when the screen resolution is 840x480. It's probably related to *"[bug?] not sure fullscreen runs ok on laptops"* in [the Bugs'n Things to Do list][xrick_status]. [xrick_home]: http://www.bigorno.net/xrick/ [xrick_patch_exit]: /storage/patches/xrick/xrick-021212-exit.patch [xrick-021212-fullscreen.patch][xrick_patch_fs] fixes freezing on exit when joystick is enabled. Probably related to *"[bug?] does xrick segfaults on exit? I can't reproduce this"* [the Bugs'n Things to Do list][xrick_status]. Related bug [#351672][xrick_gentoo_bug] in the Gentoo bug tracker. [xrick_status]: http://www.bigorno.net/xrick/status.html [xrick_patch_fs]: /storage/patches/xrick/xrick-021212-fullscreen.patch [xrick_gentoo_bug]: http://bugs.gentoo.org/show_bug.cgi?id=351672 fancontrol ---------- In certain circumstances it's useful to configure [`fancontrol`][lms_home] to obtain temperature of a sensor from output of a command rather than from a `/sys`-file. In particular, it is useful for NVIDIA video chips, which shows their temperature via `nvidia-settings` with ease, but it's not a big change to make `lm_sensors` read the sensors. [fancontrol-cmds.patch][fc_patch] implements the feature. It sould be applied to the version 0.70. Here is an example of the configuration format: 01 INTERVAL=10 02 DEVPATH=hwmon0=devices/platform/it87.656 hwmon1=devices/platform/coretemp.0 03 DEVNAME=hwmon0=it8718 hwmon1=coretemp 04 FCTEMPS=hwmon0/device/pwm1=hwmon1/device/temp1_input hwmon0/device/pwm2=CMD0 05 FCFANS=hwmon0/device/pwm1=hwmon0/device/fan1_input hwmon0/device/pwm2=hwmon0/device/fan2_input 06 MINTEMP=hwmon0/device/pwm1=60 hwmon0/device/pwm2=55 07 MAXTEMP=hwmon0/device/pwm1=70 hwmon0/device/pwm2=80 08 MINSTART=hwmon0/device/pwm1=170 hwmon0/device/pwm2=150 09 MINSTOP=hwmon0/device/pwm1=55 hwmon0/device/pwm2=75 10 CMDS=/usr/local/bin/gpu-temp.sh At the line 4 of the config file, `CMD0` is specified as the source of temperature. `CMD0` is the first command in the list of commands. The full list is defined in the variable `CMDS` (at the line 10). Each command should print temperature of the sensor in Celsius. The executable file `/usr/local/bin/gpu-temp.sh` may look like this: #!/bin/sh # Shows temperature of NVIDIA chips in Celsius # Shows always 100 if X-server is not running if [[ -z `pgrep xinit` ]] then echo 100 exit fi DISPLAY=":0.0" /usr/bin/nvidia-settings -q [gpu:0]/GPUCoreTemp\ | grep "Attribute" | sed -e "s/.*: //g" -e "s/\.//g" [lms_home]: http://www.lm-sensors.org/ [fc_patch]: /storage/patches/fancontrol-0.70-cmds.patch Wallpaper Slideshow ------------------- [Wallpaper Slideshow][ws_home] is an Android live wallpaper. It cycles through user defined directory of images. [android-wallpaper-slideshow-crop.diff][ws_patch] does the following: 1. It adds a new option to disable cropping: "Crop photos to make them fill whole screen"; 2. It enables large heap in order to get rid of "out of memory" exceptions on high resolution devices; 3. If the image is larger than the screen size, the original Wallpaper Slideshow downscales images to the size smaller or equal to the screen size (in order to minimize memory comsumption) and upscales it afterwards to the actual screen size. This patch makes the live wallpaper application not to downscale images to the size smaller then the screen size. So essentially the patch makes quality of displayed images slightly better. The patch should be applied to svn@9. [ws_home]: http://code.google.com/p/android-wallpaper-slideshow/ [ws_patch]: /storage/patches/android-wallpaper-slideshow-crop.diff Trebuchet --------- [Trebuchet][trb_home] is the default Android launcher application in CyanogenMod 9+. [trebuchet-0.2_allapps_btn_visibility.diff][trb_patch] adds a new boolean option named `ui_homescreen_all_apps_button`. The option controls whether to show the all apps button in the top right corner of the homescreen. If the option is disabled, user can invoke the all applications screen through long press on empty space of the homescreen. The patch should be applied to git@bb74ce8b22f683522aae793ca11bcb957c2872f5. [trb_home]: https://github.com/CyanogenMod/android_packages_apps_Trebuchet [trb_patch]: /storage/patches/trebuchet-0.2_allapps_btn_visibility.diff Android Terminal Emulator ------------------------- [Android Terminal Emulator][ate_home] is one of the most popular terminal emulators for Android. Unfortunatelly, Android 4.3 introduces a serious issue, affecting the terminal running a superuser process: the size of the terminal may become incorrect. The issue itself and the proposed solution is described [here][ate_note]. [Android-Terminal-Emulator-1.0.63-su-pty.patch][ate_patch] is the patch implementing this solution. The patch sould be applied to version 1.0.63. [ate_home]: https://github.com/jackpal/Android-Terminal-Emulator [ate_patch]: /storage/patches/Android-Terminal-Emulator-1.0.63-su-pty.patch [ate_note]: /technoblog/fixing_android_terminal Netsurf ------- [netsurf-3.2-segfault.patch][ns_patch] fixes a [Netsurf][ns_home] segfault. In certain circumstances Netsurf crashes when user closes the preferences window. The problem is described [here][ns_desc]. Still no reply from the upstream developers. The patch sould be applied to version 3.2 or 3.3. [ns_home]: http://www.netsurf-browser.org/ [ns_patch]: /storage/patches/netsurf-3.2-segfault.patch [ns_desc]: http://permalink.gmane.org/gmane.comp.web.netsurf.devel/10268 VirtualBox ---------- [vboxvideo-4.3.38-dpi.patch][vb_patch] fixes a bug in the X11 video driver of [VirtuaBox][vb_home]. When X11-server is configured to use a custom DPI setting, vboxvideo driver just ignored this value and used hard-coded DPI=96. The bug is reported in the bug tracker: [Ticket #15704][vb_bug]. The patch sould be applied to version 4.3.38. The bug is fixed in version 5.1.2. [vb_home]: https://www.virtualbox.org/ [vb_patch]: /storage/patches/vboxvideo-4.3.38-dpi.patch [vb_bug]: https://www.virtualbox.org/ticket/15704