[Solved]How to patch dwm?

Sorry for my stupid question
I just want to patch DWM so I follow this introduction
PATCHES
diff generation
For mercurial users:
cd dwm-directory
hg diff > dwm-X.Y-yourpatchname.diff
patch application
For mercurial users:
cd dwm-directory
hg patch path/to/patch.diff
I think I got a .diff file and then run "hg diff > dwm-X.Y-yourpatchname.diff" in dwm-directory,right?(I got dwm by download using  'hg clone http://hg.suckless.org/dwm')
Everything went fine untill I try to do "hg patch path/to/patch.diff" where is exactly "path/to/patch.diff" be?
If you don't mind can you give me the step-by-step guild? I afraid that I did something wrong:(
I've try to find the way to solve it by using google and search in this forum but I still can't patch dwm:(
Last edited by megacyber (2012-03-11 04:28:14)

Thank you everyone
I patched it now
It fails at first because I put .diff in difference directory i should put it in surf directory
So this's what I do
1. In ter terminal 'hg clone http://hg.suckless.org/surf' (without ' )
2. In the terminal 'cd surf' then edit the config.mk file with my favorite editor find the 'PREFIX' , 'X11INC' and 'X11LIB' then edit to
PREFIX = /usr
X11INC = /usr/include/X11
X11LIB = /usr/lib/X11
3. download .diff file to surf directory I downloaded by command 'wget http://surf.suckless.org/patches/surf-0.3-homepage.diff' but this patch have to add '#define HOMEPAGE "http://google.com" ' to the config.h so I add it to config.def.h because config.haven't existed yet but it will be created from config.def.h
4. In the terminal 'hg diff > thenameyouwant.diff'
5. In ther terminal 'hg patch < surf-0.3-homepage.diff'
6. In the terminal 'sudo make clean install'
Done;)

Similar Messages

  • [SOLVED] How to patch package build (uzbl-git)

    Hello,
    I am experiencing a similar issue while building uzbl-git as reported here in the last few posts https://aur.archlinux.org/packages.php? … 2&detail=1
    When running "makepkg -s", I receive the following error:
    creating /usr/lib/python3.2/site-packages/uzbl
    error: could not create '/usr/lib/python3.2/site-packages/uzbl': Permission denied
    make: *** [install-event-manager] Error 1
    A user on the page posted a patch for this issue:
    PKGBUILD diff:
    ======
    14,15c14,15
    < source=()
    < md5sums=()
    > source=('Makefile.patch')
    > md5sums=('1fb21dc7128e11d9a91351702c5fee53')
    45a46,48
    >
    > # fix python site-packages installation
    > patch -p0 < "$srcdir/Makefile.patch"
    =====
    Makefile.patch:
    =====
    --- Makefile 2012-06-26 15:00:00.017779376 +0000
    +++ Makefile.fixed 2012-06-26 14:54:24.969594488 +0000
    @@ -12,6 +12,7 @@
    PYTHON=python3
    PYTHONV=$(shell $(PYTHON) --version | sed -n /[0-9].[0-9]/p)
    COVERAGE=$(shell which coverage)
    +PYINSTALL_EXTRA=--prefix="${DESTDIR}${PREFIX}"
    # --- configuration ends here ---
    =====
    Could someone enlighten me on how this patch should be applied? I have looked over the patching page on the arch wiki, but am still not sure. Should those lines be added at lines 14,15 and 45,46,48 in the PKGBUILD, respectively, and should I then create the file makefile.patch in the same directory with the second part of the code? It is unclear to me as both source=() and md5sums=() are not anywhere in the PKGBUILD, so I can't remove these lines as the patch suggests if I am reading it correctly (I have no coding experience).
    Someone posted an alternative patch, I am note sure if this is any easier to apply (https://github.com/keis/uzbl/commit/d4c … 6874dda0ea)
    Thank you in advance.
    Last edited by OLSHoya (2012-09-11 19:51:24)

    PKGBUILD
    # Maintainer: Mark Foxwell <[email protected]>
    # Contributor: Dieter Plaetinck <[email protected]>
    # Contributer: Brendan Taylor <[email protected]>
    # Contributer: L42y <[email protected]>
    pkgname=uzbl-git
    pkgver=20120212
    pkgrel=1
    pkgdesc="All uzbl web interface tools: latest from the git master branch"
    arch=('i686' 'x86_64')
    url="http://github.com/Dieterbe/uzbl/"
    license=('GPL3')
    depends=('libwebkit3' 'socat' 'zenity' 'xclip' 'dmenu' 'python2' 'pygtk')
    makedepends=('git' 'pkgconfig' 'libwebkit>=1.2.0')
    source=('Makefile.patch')
    md5sums=('1fb21dc7128e11d9a91351702c5fee53')
    provides=('uzbl-core' 'uzbl-browser' 'uzbl-tabbed')
    conflicts=('uzbl-core' 'uzbl-browser' 'uzbl-tabbed' 'uzbl-experimental-git')
    _gitroot="git://github.com/Dieterbe/uzbl.git"
    _gitname="uzbl"
    build() {
    cd "$srcdir"
    msg "Connecting to GIT server...."
    if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot $_gitname
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    rm -rf "$srcdir/$_gitname-build"
    git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
    cd "$srcdir/$_gitname-build"
    patch -p0 < "$srcdir/Makefile.patch"
    for file in bin/*; do
    sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' $file
    done
    sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
    $(find ./ -name '*.py')
    make
    package(){
    cd "$srcdir/$_gitname-build"
    make DESTDIR="$pkgdir" PREFIX=/usr install
    Makefile.patch
    --- Makefile 2012-06-26 15:00:00.017779376 +0000
    +++ Makefile.fixed 2012-06-26 14:54:24.969594488 +0000
    @@ -12,6 +12,7 @@
    PYTHON=python3
    PYTHONV=$(shell $(PYTHON) --version | sed -n /[0-9].[0-9]/p)
    COVERAGE=$(shell which coverage)
    +PYINSTALL_EXTRA=--prefix="${DESTDIR}${PREFIX}"
    Save them both in the same folder and run makepkg. After you save Makefile.patch run "md5sum Makefile.patch" and update the md5sums array in the PKGBUILD if you need to.

  • [Solved] how to patch source file from AUR for gcc46 ?

    In a topic from yesterday, I was seeking help to get AUR package 'insight' installed, but so far no luck, since there seems to be a bug in the source that won't work with the gcc47 compiler.  I'm posting this new topic, since the subject has changed a bit - I'm now trying to compile gcc46 because another user had success with that version in compiling the 'insight' package, and I need to patch the gcc46 source to get it to compile.
    I'm looking for help to fix the problem myself, or if anyone wants to create a new PKGBUILD to handle the problem, that would be nice too
    Originally, I thought I would try to install gcc42 from AUR and use that to run makepkg on the 'insight' app, since one user had success with this version of gcc.  Both gcc42 and gcc46 give me the same errors with an 'unwind' file, and I couldn't get either to compile (errors about unwind.h or linux-unwind.h).
    I found a post with a link to a patch (for gcc46), but I have no idea where to apply or how to apply this patch.  I think I'm supposed to apply it to this file, but again, I'm not sure how to apply a patch:
    /home/briphi/builds/gcc46/src/gcc-4.6.3/gcc/unwind-dw2.c
    , but this c file has includes to other "unwind" header files.  Here is a link to the unwind-dw2.c file at my dropbox folder, if anyone needs to see this file without downloading/compiling gcc46: http://dl.dropbox.com/u/8169867/unwind-dw2.c
    Sticking with gcc46 for the moment (since I found the patch for this version)...
    The post with the link to the patch to gcc46 is here: https://bbs.archlinux.org/viewtopic.php … 0#p1229880
    The patch at pastebin.com is here: http://pastebin.com/VkgE27Pd and looks like this:
    --- a/gcc/config/i386/linux-unwind.h 2011-01-03 20:52:22.000000000 +0000
    +++ b/gcc/config/i386/linux-unwind.h 2012-07-06 12:23:51.562859470 +0100
    @@ -133,9 +133,9 @@
    struct rt_sigframe {
    int sig;
    - struct siginfo *pinfo;
    + siginfo_t *pinfo;
    void *puc;
    - struct siginfo info;
    + siginfo_t info;
    struct ucontext uc;
    } *rt_ = context->cfa;
    /* The void * cast is necessary to avoid an aliasing warning.
    The package that I'm actually trying to install is 'insight', here: https://aur.archlinux.org/packages/insight/
    My error when compiling (running makepkg -s on gcc46) looks like this:
    /home/briphi/builds/gcc46/src/gcc-build/./gcc/xgcc -B/home/briphi/builds/gcc46/src/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -g -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -O2 -g -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -I. -I. -I../.././gcc -I/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc -I/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/. -I/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc -I/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../include -I/home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c /home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
    In file included from /home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/unwind-dw2.c:333:0:
    /home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/config/i386/linux-unwind.h: In function ‘x86_fallback_frame_state’:
    /home/briphi/builds/gcc46/src/gcc-4.6.3/libgcc/../gcc/config/i386/linux-unwind.h:138:17: error: field ‘info’ has incomplete type
    make[3]: *** [unwind-dw2.o] Error 1
    make[3]: Leaving directory `/home/briphi/builds/gcc46/src/gcc-build/i686-pc-linux-gnu/libgcc'
    make[2]: *** [all-stage1-target-libgcc] Error 2
    make[2]: Leaving directory `/home/briphi/builds/gcc46/src/gcc-build'
    make[1]: *** [stage1-bubble] Error 2
    make[1]: Leaving directory `/home/briphi/builds/gcc46/src/gcc-build'
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Last edited by stringchopper (2013-02-15 08:29:39)

    Lone_Wolf wrote:
    @ stringchopper
    The file(s) that need patching are mentioned in the patch, so you don't have to know yourself where they are.
    patch files like these are usually applied from the directory where you build stuff.
    On your system that is probably this folder :   /home/briphi/builds/gcc46/src/gcc-4.6.3/
    for details about the command used to apply the patch, t0m5k1's link above should help.
    Thanks Lone_Wolf for the help.  I'm suffering from information overload at the moment, so (@t0m5k1) even though I found the same results that you found through google, they weren't explicit enough.

  • [SOLVED] How to Patch Base OS WIMs in a non-SCCM Environment?

    My new employer doesn't have SCCM but they're at least using MDT, even if it is 2010.  We (System Engineers for servers; Desktop Engineers for workstations) have historically been using Windows Update to patch the machine in question, but that (a) requires
    a bit of baby sitting, (b) takes ages and (c) is done every time a new server is stood up or new image is built.
    Being one of the new guys, I've been asked if there's a way to automate the installation of OS updates for Windows 7 up to Server 2012 R2.  My process has been to mount the WIM and apply as many updates as I can offline by pointing DISM to a directory
    full of updates.
    However, I've been in situations where updates break the WIM because dependencies weren't in place, namely .NET which can't be installed offline.  And its such a hassle to go through that troubleshooting process narrow it down to the offending update
    - augh!
    Having said all that, I'm in need of some advice for how to handle
    stock WIMs from stock Microsoft ISO's.
    What process do you experts follow for getting that WIM fully up to date?
    I'm talking all the [recommended] updates offered via Windows Update: from updates for Windows, IE, .NET; standard security updates to IE upgrades (e.g. from 9 to 9, 9 to 10, 10 to 11), MSXML updates, Silverlight etc..
    Does update installation order matter?
    Is it safe to point DISM to a directory of cabs for offline updates & let it rip or does it require a bit of structure?
    I'm sort of doing a hybrid: Pulled down over 200 updates from the Microsoft update catalog, extracted the cabs into a centralized location & separated them into two groups, group 2 being updates that
    seem to cause problems when done offline or can't be done offline due to a prerequisite.  (Group 1 is bit more than 200 updates, Group 2 is about a dozen including 2685811, 2685813, 2533552, 2819745)
    Can I assume that for updates like WMF 4.0, UMDF 1.11, KMFD 1.11, MSXML and straight upgrades like .NET 4.5, IE 10/11, you're laying down the OS, installing the pre-requisites, installing the updates - maybe even running Windows Updates, then capturing?
    I'm just really curious as to how far off the mark I am, how I can automate as much of this as possible and of course doing it right! :)
    Thanks

    Although it is possible to install many updates offline, some just must be performed online, as you mention above.
    My recommendation (and that of Niehaus, Arwidmark, Nystrom, Hunter, MCS, et. al.) is to create a MDT deployment share ( called the create share ) with task sequences for each image type. Install the OS, update the machine (via WSUS or Windows Update),
    install your favorite applications, (UPdate again), and then Sysprep and Capture. All done within a Virtual Machine, preferably Hyper-V.
    If you can automate all of your applications, then you can pretty much do the entire process with a single click.
    I have a beefy i7-4771 with 32GB of ram, and *TWO* speedy SSD Drives. Imaging *8* machines in parallel takes about 4 hrs.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com
    I need a moment to collect myself after reading your hardware.
    Seriously though, I'm down with doing it with MDT in a VM because its the cleanest it can be at that point.  My only concern were those 'gotchas':
    Is DISM smart enough to know the proper installation order of the updates in that directory?  If not do I have to run DISM multiple times (pointing it to the same collection of CABs) to make sure I got everything?
    Is there a fairly comprehensive list of updates that should be handled with special care/attention?
    Anything else I didn't think of.
    I really appreciate your responses - thank you kindly for putting up with me Keith. :)

  • [SOLVED]How to patch a kernel using PKGBUILD

    Hello guys,
    Sorry if my question looks stupid but I'm trying to compile my first kernel following this wiki page and I wonder how to apply a patchset...
    The patchset to apply is the ck one and I've downloaded the patch file from http://ck.kolivas.org/patches/3.0/3.3/3 … .3-ck1.bz2 and placed the patch itself at the root of my PKGBUILD folder.
    At my first attempt to run makepkg, I could see several 'found xxx.patch' (the other patches which were already in the abs tree) but not my ck patch.
    After taking a look in my PKGBUILD file I modified the source instruction as follow to include my pach:
    source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.3.tar.xz"
            "http://www.kernel.org/pub/linux/kernel/ … pkgver}.xz"
            # the main kernel config files
            'config' 'config.x86_64'
            # standard config files for mkinitcpio ramdisk
            "${pkgname}.preset"
            'fix-acerhdf-1810T-bios.patch'
            'change-default-console-loglevel.patch'
            'i915-fix-ghost-tv-output.patch'
            'ext4-options.patch'
        'patch-3.3-ck1')
    Now when I run makepkg, it founds my patch but right after I get  a md5 cheksum error:
    -> Found config
    -> Found config.x86_64
    -> Found linux-custom.preset
    -> Found fix-acerhdf-1810T-bios.patch
    -> Found change-default-console-loglevel.patch
    -> Found i915-fix-ghost-tv-output.patch
    -> Found ext4-options.patch
    -> Found patch-3.3-ck1
    ==> ERROR: Integrity checks (md5) differ in size from the source array.
    [sclarckone@archLaptop linux]$
    I could disable the checksum in makepkg.conf but maybe I'm doing it wrong so I'd like to know the clean way to do it ;-)
    Thanks for your help.
    Last edited by sclarckone (2012-04-18 19:42:01)

    makepkg -g >> PKGBUILD will do this automatically for ya.  FYI, there is a linux-ck package in the AUR you can use as a model if you wish.

  • [SOLVED]How to patch the kernel? And other questions

    Like the same user who started this thread I'm suffering from hibernation resuming troubles using kernel 2.6.38. In that thread was posted a soluttion that involves patching the kernel.
    The patch to apply is this:
    http://git.kernel.org/?p=linux/kernel/g … e3e9fc8684
    Waiting for the bug to be corrected and a new version supplied is not an option, because this laptop is my main computer and I heavly rely on hibernation.
    Here's my trouble now. I don't know if it is possible to patch without recompiling the whole kernel, or it has to be compiled with that patch applied. I have seen the archlinux's wiki guide about compiling the kernel, but found nothing about applying patches (maybe I didn't searched with enought depth).
    In case there is needed a full compilation, should I use the vanilla kernel, the Arch Linux one or any of the AUR ones (I said AUR because they're the first that came to my mind)? Should i expect a performance gain with this (apart from fixing the hibernation bug)?
    Maybe i'm just doing a bunch of dumb questions, and the only thing I need is to search deeply on the wiki. In that case, please tell me. If not, I rather get some answers around kernel patching and / or compiling questions.
    Edit: In addittion, it is possible that all this questions are just newbie ones, I don't know, but as I am willing to learn from this I will appreciate any info or documentation about it.
    Thank you.
    Last edited by ethail (2011-04-12 06:30:48)

    From the source tree (/usr/src/linux-whatever) execute
    patch -p1 < /path/to/fix.patch
    then recompile kernel from the source tree.
    Basically that consists of executing the following commands from the source tree:
    make menuconfig
    make
    make modules_install
    cp -v System.map /boot/System.map-CUSTOM
    cp -v arch/x86/boot/bzImage /boot/vmlinuz-CUSTOM
    mkinitcpio -k 2.6.38-CUSTOM -g /boot/kernel-CUSTOM.img
    and you need to add menu entry in /boot/grub/menu.lst
    -k 2.6.38-CUSTOM should corespond to /lib/modules/2.6.38-CUSTOM (replace 2.6.38-CUSTOM with the name of your module directory, name depends on the kernel version and suffix that you gave in menuconfig). Regarding kernel configuration in menuconfig - I can't help you, you could use arch stock kernel config (zcat /proc/config.gz > /usr/src/linux-whatever/.config)
    I do these kind of things this way - maybe someone else have a more elegant solution.

  • My problem/Q not solved- how/what correct signal setting on the Macbook pro for ther PC config on Bravia defn

    Regrettably Shane mu Q/problem is not solved-how does one check the comptability of defn (1020x...) for the computer and Bracia?

    Don't know, I do know the TV has a higher refresh rate, check out SwitchResX online for more control options over HDMI.

  • [SOLVED]Need help with dwm...

    Hi,
    I need help with dwm.I want to apply only 2 patches but everytime when i try i get error... I need xft or pango patch and systray patch.Please help.
    Thanks.
    Last edited by grobar87 (2013-06-01 13:49:55)

    [dejan@archtop dwm-6.0]$ patch < 00-dwm-6.0-buildflags.diff
    patching file config.mk
    [dejan@archtop dwm-6.0]$ patch < dwm-6.0-xft.diff
    patching file dwm.c
    [dejan@archtop dwm-6.0]$ patch < 02-dwm-6.0-systray.diff
    patching file dwm.c
    [dejan@archtop dwm-6.0]$ sudo make clean install
    [sudo] password for dejan:
    cleaning
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -DVERSION="6.0" -DXINERAMA -DXFT
    LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -L/usr/X11R6/lib -lXft
    CC = cc
    creating config.h from config.def.h
    CC dwm.c
    dwm.c: In function ‘keypress’:
    dwm.c:1062:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    CC -o dwm
    installing executable file to /usr/local/bin
    installing manual page to /usr/local/share/man/man1
    [dejan@archtop dwm-6.0]$
    And here is my config.h:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "Ohsnap";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const unsigned int systrayspacing = 2; /* systray spacing */
    static const Bool showsystray = True; /* False means no systray */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "uxterm", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },

  • Can't watch video on CNN with IPAD after installation IOS 6 any tip to solve how to solve this issue.

    Can't watch video on CNN with IPAD after installation IOS 6 any tip to solve how to solve this issue.
    Thanks for your support in advance

    I have a few TV type Apps that are doing the same think since the  IOS6 update . I figure the problem is at there end and there will be an update from them soon.

  • [Solved] How to: Automatically add Semicolons at end of line

    Q. Is it possible to set JDeveloper to automatically add Semicolons to the end of a line of code?
    A. "While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon." [Solved] How to: Automatically add Semicolons at end of line
    Original Message:
    I'm spoiled from using Basic and similar programming languages, adding semicolons manually is something that'll take me time to get used to
    Thanks in advance,
    Abdulla
    Tags (for search engines):
    Jdeveloper automatic semicolon
    Message was edited by:
    Abdulla

    While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon.

  • [SOLVED] how i can install this packages ?

    hi
    im try to compile a software (xfardic : a persian dictionary)
    and this software need this packages to compile
    1. aspell-dev
    2. libxml2-dev
    3. libgnome-desktop-dev
    4. libnotify-dev (0.7.0 minimum)
    5. libsqlite3-dev
    6. libespeak-dev
    but i cant install this packages our find this sources to compile
    please help me
    Last edited by omidimo (2012-01-03 14:36:25)

    omidimo wrote:
    karol wrote:Please remember to mark the thread as solved.
    how can i remark . i cant find options
    Please read the forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

  • [SOLVED]no sound on kernel 3.2.5-1 (alsa /how to patch conexant audio)

    Hello
    I'm not sure if I have to post this in Newbie Corner or Multimedia, if I'm false here please move the Topic.
    I installed arch yesterday so I'm new to it. My hardware is a Thinkpad Edge e325.
    Now to my issue, I cant get my speakers to work.
    I've read about a few issues and people sugested to downgrade the kernel but is there any other solution?
    I've already checked if alsamixer is unmuted and the only sound I could produce so far is a beep but nothing from vlc, amarok or audacious.
    On win 7 I used the Conexant Audio Driver and already found a patch for alsa (http://www.linuxant.com/alsa-driver/) but shame on me, I cant figure out how to install it.
    Hope you can help me.
    Last edited by jayr (2012-02-17 10:37:40)

    It seems the default ALSA soundcard is the HDMI output while the "regular" sound chip is recognized as card 1.
    From blog.
    Google for changing the default soundcard.

  • How to solve problem After patch 10.2.0.4 applying on owb 10.2.0.1

    HI OWB Gurus,
    We have recently a patchapplied for oracle 10g .
    prev version was oracle 10 g r2 10.2.0.1
    new version is 10.2.0.4 ( patchset 4)
    After patch applied at database and owb level there are some problem we are facing like
    ETL process is very slow , cpu is going to 100% after start any mapping.
    and audit browser are not opening.
    Can any one help me on this so that we can resolve the problem.
    - Umesh

    Hi Umesh,
    This might help you in diagnosing the client's performance
    Accurate optimizer statistics are generally very important. They are gathered automatically at OWB install time and the Design Center -> Tools -> Optimize Repository menu selection is available to refresh them on an as needed basis.
    The DBA can always help by pre-expanding tablespaces, making sure multiple tablespaces are available on separate disks or disk arrays so that I/O to indexes, metadata tables, snapshot tables, DB undo and redo logs, etc., can be evenly distributed.
    With more complex metadata in this OWB release, you can expect many JDBC round-trips to the DB. Network latency can have a big impact on performance. To see how much time the owbclient uses for JDBC roundtrips to the DB, add the following line to Preference.properties in <owb home>/owb/bin/admin on your client machine:ClientProfile=true
    Run OWB, then check ClientProfile.log in the admin directory. Keep in mind that a ping to localhost is probably about 0.025 ms, to another machine in the LAN about 0.25 ms. If the roundtrips are greater than 40 ms, then the issue is likely related network latency.
    The two basic workarounds for network latency are:
    -Remote control an OWB client machine that is physically close to the server.
    -Do design-time work on a local repository, then MDL export the work for import to a central repository.
    If the client and server are not on the same (high bandwidth) LAN, then total available bandwidth may become a factor. Same thing if the DB server is heavily loaded with respect to CPU or I/O, or if all your OWB design-time metadata is located on the same tablespace on the same hard drive. Distributing projects across multiple repositories which use their own
    tablespaces spread across multiple hard drives would be very desirable.
    The object editors are more functional and complex, as such, the required processing power to render them is greater (processor > 2GHz) Also note the OWB client software is mostly single-threaded, so it won't take advantage of multiple processors on one machine.
    Long running sessions or large bulk operations (MDL import, validation, generation, deployment over large or multiple modules) can push up against the JVM memory limit. If performance begins to suffer due to memory, either:
    a)exit and restart the OWB session;
    b) if adequate physical memory exists, increase the -Xmx and -Dlimit values in the owbclient and OMBPlus startup scripts to better accommodate large operations.
    ie.
    If you have 2 GB or more, backup and edit owb\bin\win32\owbclient.bat file and modify line starting with %JAVAPATH
    ie.
    %JAVAPATH%\jre\bin\java -Xms128M -Xmx1024M -Dlimit=1024M -XX:MaxPermSize=1024M
    This will add more memory to JVM for OWB client. Do the same for owb.cl file
    Hope this will add some value.
    Best Regards,
    Prasad Bolla.

  • [SOLVED] How do I patch the kernel?

    EDIT (again): Doesn't seem like the patch is needed anymore. 3.3.1 kernel from the repos seems identical to my custom kernel (also 3.3.1).
    EDIT: The patches are for an older kernel but I was able to apply them manually.
    Hello. I'm trying to patch the kernel using the patch found on this page: http://lists.freedesktop.org/archives/i … 09584.html
    Now, I don't know much about patching but the patch in that post looks more like the program output of several diff commands. How do I format this to create a valid .patch file?
    Last edited by Splooshie123 (2012-04-10 04:52:40)

    To get back to my original question, making a patch out of what was in that mailing list post:
    Does this look ok?
    drivers/gpu/drm/i915/i915_drv.c | 4 ++++
    drivers/gpu/drm/i915/i915_drv.h | 1 +
    drivers/gpu/drm/i915/intel_display.c | 34 +++++++++++++++++++++-------------
    3 files changed, 26 insertions(+), 13 deletions(-)
    diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
    index 004880aa3a948669b8b4e23d9ad73d132cff81d0..1d88f059a27321ecb681e2b7927bb69029fcb49a 100644
    --- a/drivers/gpu/drm/i915/i915_drv.c
    +++ b/drivers/gpu/drm/i915/i915_drv.c
    @@ -49,6 +49,10 @@ module_param_named(powersave, i915_powersave, int, 0600);
    unsigned int i915_lvds_fixed = 1;
    module_param_named(lvds_fixed, i915_lvds_fixed, int, 0600);
    +unsigned int i915_lvds_channels = 0;
    +module_param_named(lvds_channels, i915_lvds_channels, int, 0600);
    +MODULE_PARM_DESC(lvds_channels, "LVDS channels in use: 0=(default) probe hardware 1=single 2=dual");
    +
    unsigned int i915_lvds_downclock = 0;
    module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400);
    diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
    index 3fa8681459aa596e12e885568e5b48f0c9a60719..a6aab43e5f39f2d5b92a69a284bf8f72a254ea7c 100644
    --- a/drivers/gpu/drm/i915/i915_drv.h
    +++ b/drivers/gpu/drm/i915/i915_drv.h
    @@ -886,6 +886,7 @@ extern int i915_max_ioctl;
    extern unsigned int i915_fbpercrtc;
    extern unsigned int i915_powersave;
    extern unsigned int i915_lvds_fixed;
    +extern unsigned int i915_lvds_channels;
    extern unsigned int i915_lvds_downclock;
    extern unsigned int i915_lvds_24bit;
    diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
    index 09f57f29c30c371c213944be473090a780a287db..4dc91400edd8935be45a229cf91292339bca0ce8 100644
    --- a/drivers/gpu/drm/i915/intel_display.c
    +++ b/drivers/gpu/drm/i915/intel_display.c
    @@ -642,6 +642,20 @@ static const intel_limit_t intel_limits_ironlake_display_port = {
    .find_pll = intel_find_pll_ironlake_dp,
    +static int intel_is_dual_channel_mode(struct drm_crtc *crtc)
    +{
    + struct drm_device *dev = crtc->dev;
    + struct drm_i915_private *dev_priv = dev->dev_private;
    + if (i915_lvds_channels) {
    + /* User has specified desired channel mode */
    + return (i915_lvds_channels == 2);
    + }
    +
    + /* User has not specified mode so let's see
    + what the hardware is doing. */
    + return ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) == LVDS_CLKB_POWER_UP);
    +}
    +
    static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    struct drm_device *dev = crtc->dev;
    @@ -653,8 +667,7 @@ static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    if (dev_priv->lvds_use_ssc && dev_priv->lvds_ssc_freq == 100)
    refclk = 100;
    - if ((I915_READ(PCH_LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP) {
    + if (intel_is_dual_channel_mode(crtc)) {
    /* LVDS dual channel */
    if (refclk == 100)
    limit = &intel_limits_ironlake_dual_lvds_100m;
    @@ -677,18 +690,16 @@ static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    static const intel_limit_t *intel_g4x_limit(struct drm_crtc *crtc)
    - struct drm_device *dev = crtc->dev;
    - struct drm_i915_private *dev_priv = dev->dev_private;
    const intel_limit_t *limit;
    if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
    - if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc)) {
    /* LVDS with dual channel */
    limit = &intel_limits_g4x_dual_channel_lvds;
    - else
    - /* LVDS with dual channel */
    + } else {
    + /* LVDS with single channel */
    limit = &intel_limits_g4x_single_channel_lvds;
    + }
    } else if (intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI) ||
    intel_pipe_has_type(crtc, INTEL_OUTPUT_ANALOG)) {
    limit = &intel_limits_g4x_hdmi;
    @@ -821,8 +832,7 @@ intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    * reliably set up different single/dual channel state, if we
    * even can.
    - if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc))
    clock.p2 = limit->p2.p2_fast;
    else
    clock.p2 = limit->p2.p2_slow;
    @@ -871,7 +881,6 @@ intel_g4x_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    int target, int refclk, intel_clock_t *best_clock)
    struct drm_device *dev = crtc->dev;
    - struct drm_i915_private *dev_priv = dev->dev_private;
    intel_clock_t clock;
    int max_n;
    bool found;
    @@ -886,8 +895,7 @@ intel_g4x_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    lvds_reg = PCH_LVDS;
    else
    lvds_reg = LVDS;
    - if ((I915_READ(lvds_reg) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc))
    clock.p2 = limit->p2.p2_fast;
    else
    clock.p2 = limit->p2.p2_slow;

  • [SOLVED]How to apply a patch- first attempt

    I need to apply a patch to python2-pillow, which was kindly created by manisandro, to allow my HP Officejet 6700 scanner to work.  I'm following the directions at Patching in ABS.  I already have the python2-pillow package installed via pacman.  I generated the md5sum for the patch by copying and pasting the text into gedit and saving it locally as a .diff file.  I then ran md5sum on the file.  The following is a copy of my PKGBUILD:
    # $Id: PKGBUILD 105239 2014-02-03 10:02:23Z heftig $
    # Maintainer: Kyle Keen <[email protected]>
    # Contributor: minder
    pkgbase=python-pillow
    pkgname=(python2-pillow)
    pkgver=2.3.0
    pkgrel=3
    _appname=Pillow
    _py2basever=2.7
    _py3basever=3.3m
    pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
    arch=('i686' 'x86_64')
    url="http://python-imaging.github.io/"
    license=('BSD')
    makedepends=('python-setuptools' 'python2-setuptools' 'lcms' 'libwebp' 'tk' 'sane')
    source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip" "https://github.com/manisandro/Pillow/co … 37c43.diff")
    md5sums=('56b6614499aacb7d6b5983c4914daea7' 'a0bcc91288508e1d572e89b8a074c215')
    build() {
      cd "cd $srcdir/$pkgname-$pkgver"
      patch -p1 -i $srcdir/8324a9a3e08413423c8ade7fb02db7ace0637c43.diff
      cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver"
    package_python-pillow() {
      depends=('python' 'lcms' 'libwebp')
      optdepends=('tk: for the ImageTK module'
                  'sane: for the Sane module'
                  'python-pyqt4: for the ImageQt module')
      cd "$srcdir/$_appname-$pkgver"
      python3 setup.py install --root="$pkgdir/" --optimize=0
      pushd Sane
        python3 setup.py install --root="$pkgdir/" --optimize=0
      popd
      install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
      install -dm755 "$pkgdir/usr/include/python$_py3basever/"
      install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h
      # clean up bins
      cd "$pkgdir/usr/bin"
      for f in *.py; do
        mv "$f" "${f%.py}"
      done
    package_python2-pillow() {
      pkgdesc="Python Imaging Library (PIL) fork. Python2 version."
      depends=('python2' 'lcms' 'libwebp')
      optdepends=('tk: for the ImageTK module'
                  'sane: for the Sane module'
                  'python2-pyqt4: for the ImageQt module')
      provides=('python-imaging' 'python2-imaging')
      conflicts=('python-imaging' 'python2-imaging')
      replaces=('python2-imaging')
      cd "$srcdir/${_appname}2-$pkgver"
      python2 setup.py install --root="$pkgdir/" --optimize=0
      pushd Sane
        python2 setup.py install --root="$pkgdir/" --optimize=0
      popd
      install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
      install -dm755 "$pkgdir/usr/include/python$_py2basever/"
      install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h
      # clean up bins
      cd "$pkgdir/usr/bin"
      for f in *.py; do
        mv "$f" "${f%.py}2"
      done
    When I run makepkg I get an error saying I am missing several dependancies: tk, python2-setuptools.  I don't get this error if I reinstall the package using pacman.  Shouldn't the dependancies be the same?  It also seems to be packaging python-pillow rather than python2-pillow.  Is there a way to fix this?
    Thanks for any help.
    Last edited by barronmo (2014-03-08 06:18:38)

    Fixed checksum problem.  The makepkg had worked in part the the .diff file was in the source directory.  I ran md5 on that and it worked.  However, new problem:
    ==> Starting build()...
    /home/sl/abs/pillow/PKGBUILD: line 21: cd: cd /home/sl/abs/pillow/src/Pillow-2.3.0: No such file or directory
    ==> ERROR: A failure occurred in build().
        Aborting...
    However,
    [sl@localhost pillow]$ cd /home/sl/abs/pillow/src/Pillow-2.3.0
    [sl@localhost Pillow-2.3.0]$
    Changing permissions to 777 didn't help.

Maybe you are looking for

  • How do i format a external hard drive?

    i got a external hard drive to use as a back out. but i have no idea how to format the external HD. what should i do? how? thank u

  • Need help connecting a remote MySql database from Iphone

    Hi, i need to connect to a remote MySql DataBase in windows from IPhone but..... i'm a noob with Xcode and Objective-C. Can someone help me or explain me the way to do it plz? Message was edited by: Krovax87 Message was edited by: Krovax87

  • GR based Invoice Verification issue

    Hi, In PO, GR based IV ticked. Did GR and cancelled. Now system is allowing to post invoice without GR. No error observed. Please let me know is it standard SAP behavior that it will allow to post invoice (after first GR) without a GR. Regards, Nagar

  • Adobe Creative Cloud  Student and Teacher Edition prepaid card invalid?

    We purchased a 12-month prepaid membership at the Student Store today as staff and tried to redeem it at home but the code constantly showed up as invalid. Is there currently something wrong with the redemption system? The lady at the register activa

  • Importing emails from Entourage into MAIL with Leopard

    Went through the importing procedure but only 20% of emails imported into MAIL and then all emails were deleted from Entourage. Any similar problems or ideas on how to retrieve emails in Entourage?