Adding patches to dwm

I have been using wmii for the past year or so, and decided to switch to dwm due to it's even lighter weight, and better handling of dual heads. I have it all up and running, and there is great arch-specific documentation in the wiki, but decided I wanted to add a patch, push. So, I downloaded the build scripts from abs, downloaded push.c, modified source.h to trigger push, and when I try to build it, I get
==> Validating source files with md5sums...
dwm-5.8.2.tar.gz ... Passed
config.h ... FAILED
dwm.desktop ... Passed
==> ERROR: One or more files did not pass the validity check!
How do I implement this patch?
Thanks.
Last edited by chapatt (2011-02-20 17:59:02)

Meyithi wrote:
See below PKGBUILD for example of adding patch.
# $Id: PKGBUILD 18861 2010-06-16 09:09:52Z spupykin $
Are you sure that this works?
When I tried this, the patched config.h got overwritten by the one that comes with the abs.
This Version Worked for me
# $Id: PKGBUILD 18861 2010-06-16 09:09:52Z spupykin $
# Maintainer: Sergej Pupykin <[email protected]>
# Contributor: Dag Odenhall <[email protected]>
# Contributor: Grigorios Bouzakis <[email protected]>
pkgname=dwm
pkgver=5.8.2
pkgrel=2
pkgdesc="A dynamic window manager for X"
url="http://dwm.suckless.org"
arch=('i686' 'x86_64')
license=('MIT')
options=(zipman)
depends=('libx11' 'libxinerama')
install=dwm.install
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz \
config.h
dwm.desktop
dwm-5.9-uselessgap.diff)
build() {
cd $srcdir/$pkgname-$pkgver
cp $srcdir/config.h config.def.h
patch -Np1 -i ../dwm-5.9-uselessgap.diff || return 1
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
make PREFIX=/usr DESTDIR=$pkgdir install || return 1
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README && \
install -m644 -D $srcdir/dwm.desktop $pkgdir//etc/X11/sessions/dwm.desktop
md5sums=('f0b422bfeaa812d66c6dd15c3cc92a6b'
'b2e7ebdeb77ecb075ae67400f70d70b6'
'939f403a71b6e85261d09fc3412269ee'
'bf8bf3ed1edc0a72ab77135b73a0c8cc')

Similar Messages

  • How to Add patches to dwm?

    I cp the dwm directory to my builds directory.
    I then makepkg -i and install dwm, it runs fine.  I want to compile dwm with the bottom stack patch from their website.
    I download the dwm-5.3-bstack.diff  file into my dwm directory.  I saw in another thread to add
    patch -p1 < dwm-5.3-bstack.diff || return 1
    into my package build.  I am just unclear of where to add it.
    my PKGBUILD is
    # $Id: PKGBUILD,v 1.19 2008/12/05 09:41:07 sergej Exp $
    # Maintainer: Sergej Pupykin <[email protected]>
    # Contributor: Dag Odenhall <[email protected]>
    # Contributor: Grigorios Bouzakis <[email protected]>
    pkgname=dwm
    pkgver=5.3
    pkgrel=1
    pkgdesc="A dynamic window manager for X"
    url="http://www.suckless.org/wiki/dwm"
    arch=('i686' 'x86_64')
    license=('MIT')
    options=(zipman)
    depends=('libx11')
    install=dwm.install
    source=(http://code.suckless.org/dl/dwm/dwm-$pkgver.tar.gz \
    config.h)
    md5sums=('ee47a2adcc3bbc3c053307e6ef35e3e0'
    '8093b1bea675dea404913e828cabfa04')
    build() {
    cd $srcdir/$pkgname-$pkgver
    cp $srcdir/config.h config.h
    make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
    make PREFIX=/usr DESTDIR=$pkgdir install || return 1
    install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
    install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
    I then know i need to enter #include "bstack.c" into my config.h file.  I am just a little unclear of it I add it to the original config.h in my dwm directory. Or must I add it to the config.h that is in the src directory?  Thanks, Justin.

    Thanks for the reply.  I can it to install, but I still do not get the option for bottom stack.  Do I need to add it to my config somewhere? I assumed the patch would add it to the config.h intself?
    Here is a link to the patch
    http://bsdgroup.org/files/dwm-5.3-bstack.diff
    PKGBUILD
    # $Id: PKGBUILD,v 1.19 2008/12/05 09:41:07 sergej Exp $
    # Maintainer: Sergej Pupykin <[email protected]>
    # Contributor: Dag Odenhall <[email protected]>
    # Contributor: Grigorios Bouzakis <[email protected]>
    pkgname=dwm
    pkgver=5.3
    pkgrel=1
    pkgdesc="A dynamic window manager for X"
    url="http://www.suckless.org/wiki/dwm"
    arch=('i686' 'x86_64')
    license=('MIT')
    options=(zipman)
    depends=('libx11')
    install=dwm.install
    source=(http://code.suckless.org/dl/dwm/dwm-$pkgver.tar.gz \
    config.h
    http://code.suckless.org/dl/dwm/dwm-$pkgver.tar.gz \
    dwm-5.3-bstack.diff
    md5sums=('ee47a2adcc3bbc3c053307e6ef35e3e0'
    '8093b1bea675dea404913e828cabfa04')
    build() {
    cd $srcdir/$pkgname-$pkgver
    patch -p0 < ../dwm-5.3-bstack.diff || return 1
    cp $srcdir/config.h config.h
    make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
    make PREFIX=/usr DESTDIR=$pkgdir install || return 1
    install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
    install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
    config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#cccccc";
    static const char normbgcolor[] = "#cccccc";
    static const char normfgcolor[] = "#000000";
    static const char selbordercolor[] = "#0066ff";
    static const char selbgcolor[] = "#0066ff";
    static const char selfgcolor[] = "#ffffff";
    static unsigned int borderpx = 1; /* border pixel of windows */
    static unsigned int snap = 32; /* snap pixel */
    static Bool showbar = True; /* False means no bar */
    static Bool topbar = True; /* False means bottom bar */
    static Bool readin = True; /* False means do not read stdin */
    static Bool usegrab = False; /* True means grabbing the X server
    during mouse-based resizals */
    /* tagging */
    static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
    static Rule rules[] = {
    /* class instance title tags mask isfloating */
    { "Gimp", NULL, NULL, 0, True },
    { "Firefox", NULL, NULL, 1 << 8, True },
    /* layout(s) */
    static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static Bool resizehints = True; /* False means respect size hints in tiled resizals */
    static 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_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 } },
    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 a tag number (starting at 0),
    * 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} },
    #include "bstack.c"
    I then get this
    [justin@beast dwm]$ makepkg -g >> PKGBUILD
    ==> Retrieving Sources...
    -> Found dwm-5.3.tar.gz in build dir
    -> Found config.h in build dir
    -> Found dwm-5.3-bstack.diff in build dir
    ==> Generating checksums for source files...
    I can then install
    [justin@beast dwm]$ makepkg -efi
    ==> Making package: dwm 5.3-1 x86_64 (Mon Dec 22 23:39:52 EST 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> WARNING: Skipping source retrieval -- using existing src/ tree
    ==> WARNING: Skipping source integrity checks -- using existing src/ tree
    ==> WARNING: Skipping source extraction -- using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    patching file bstack.c
    patching file config.def.h
    Hunk #1 succeeded at 30 (offset 2 lines).
    dwm build options:
    CC dwm.c
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.3"
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11
    CC = cc
    CC -o dwm
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="5.3"
    LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11
    CC = cc
    installing executable file to /home/justin/builds/dwm/pkg/usr/bin
    installing manual page to /home/justin/builds/dwm/pkg/usr/share/man/man1
    ==> Tidying install...
    -> Compressing man pages...
    -> Stripping debugging symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Adding install script...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: dwm 5.3-1 x86_64 (Mon Dec 22 23:39:53 EST 2008)
    ==> Installing package dwm with pacman -U...
    Password:
    loading package data...
    checking dependencies...
    (1/1) checking for file conflicts [#########################################################################################################################################################] 100%
    -- Edit config.h in PKGBUILD's directory (generally /var/abs/community/x11/dwm/)
    -- and rebuild package if you want to change settings.
    (1/1) upgrading dwm
    Thanks.

  • How to install patches in DWM?

    I've been trying but I can't figure out how to install patches in DWM. For instance I'm trying to install the Fancybar pathc from the DWM. I tried to do this by going to my dwm directory, run patch -p1 < ~/fancybar-r1496.diff, then rebuild DWM with makepkg -efi --skipinteg and finally restart DWM.. But it doesn't work
    What am I doing wrong?

    patroclo7 wrote:If you compile dwm, by hand, you obviously need to run plain "make clean install" and not resort to makepkg. If you want to resort to makepkg (which is in this specific case, IMOO, overkill) you can: apply the patch in the PKGBUILD itself; apply the patch by hand in $startdir/src/dwm-<version>, but then you need to use the specific option "-e", so to instruct makepkg to use the existing $startdir/src without untarring again the source tarball.
    Well, the reason I'm using PKGBUILD is because that's what the Arch Wiki says. But if make's better then I'll use that instead. How exactly do I do that?

  • [SOLVED] Error compiling systray patch for dwm 6.0

    Hello folks.
    This is makepkg's output.
    ┌─[parazyd][archbox][~/dwm]
    └──╼ makepkg -ef
    ==> Making package: dwm 6.0-1 (Wed Nov 19 17:33:05 CET 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:329:0:
    config.h:67:1: warning: initialization from incompatible pointer type
    static const char *scratchpadcmd[] = { termcmd, "-title", scratchpadname, "-geometry", "150x40", NULL };
    ^
    config.h:67:1: warning: (near initialization for ‘scratchpadcmd[0]’)
    dwm.c: In function ‘cleanup’:
    dwm.c:551:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray) {
    ^
    dwm.c:551:5: note: each undeclared identifier is reported only once for each function it appears in
    dwm.c: In function ‘clientmessage’:
    dwm.c:593:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && cme->window == systray->win && cme->message_type == netatom[NetSystemTrayOP]) {
    ^
    dwm.c: In function ‘drawbar’:
    dwm.c:866:6: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘getsystraywidth’:
    dwm.c:1124:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray)
    ^
    dwm.c:1125:42: error: ‘systrayspacing’ undeclared (first use in this function)
    for(i = systray->icons; i; w += i->w + systrayspacing, i = i->next);
    ^
    dwm.c:1125:56: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    for(i = systray->icons; i; w += i->w + systrayspacing, i = i->next);
    ^
    dwm.c: In function ‘keypress’:
    dwm.c:1252:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    dwm.c: In function ‘removesystrayicon’:
    dwm.c:1541:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !i)
    ^
    dwm.c: In function ‘resizebarwin’:
    dwm.c:1560:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘togglebar’:
    dwm.c:1996:5: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray) {
    ^
    dwm.c: In function ‘updatebars’:
    dwm.c:2130:6: error: ‘showsystray’ undeclared (first use in this function)
    if(showsystray && m == selmon)
    ^
    dwm.c: In function ‘updatesystrayiconstate’:
    dwm.c:2343:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !i || ev->atom != xatom[XembedInfo] ||
    ^
    dwm.c: In function ‘updatesystray’:
    dwm.c:2372:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray)
    ^
    dwm.c:2378:79: error: ‘DC’ has no member named ‘sel’
    systray->win = XCreateSimpleWindow(dpy, root, x, selmon->by, w, bh, 0, 0, dc.sel[ColBG]);
    ^
    dwm.c:2382:28: error: ‘DC’ has no member named ‘norm’
    wa.background_pixel = dc.norm[ColBG];
    ^
    dwm.c:2402:8: error: ‘systrayspacing’ undeclared (first use in this function)
    w += systrayspacing;
    ^
    dwm.c: In function ‘wintosystrayicon’:
    dwm.c:2509:6: error: ‘showsystray’ undeclared (first use in this function)
    if(!showsystray || !w)
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    I'm trying to apply systray to my dwm-6.0, but I get errors when compiling and I'm not exactly sure what's the problem. Could anyone help?
    Here's the dwm.c after applying the patch: http://pastebin.com/Aie3Uw0n
    This is my dwm.c prior to patching (this one works): http://pastebin.com/ra0NhGnV
    And here's Unia's patch I'm trying to use: https://github.com/Unia/dwm-patches/blo … stray.diff
    Any help would be kindly appreciated.
    -- mod note: split from https://bbs.archlinux.org/viewtopic.php?id=92895&p=28 - Trilby --
    Last edited by parazyd (2014-11-19 17:03:03)

    Thanks a lot for that. Now I seem to be stuck on another thing :-/
    I have no idea what to do...
    ==> Making package: dwm 6.0-1 (Wed Nov 19 17:39:04 CET 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:329:0:
    config.h:25:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
    tatic const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
    ^
    In file included from dwm.c:329:0:
    config.h:71:1: warning: initialization from incompatible pointer type
    static const char *scratchpadcmd[] = { termcmd, "-title", scratchpadname, "-geometry", "150x40", NULL };
    ^
    config.h:71:1: warning: (near initialization for ‘scratchpadcmd[0]’)
    dwm.c: In function ‘keypress’:
    dwm.c:1252:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    dwm.c: In function ‘updatesystray’:
    dwm.c:2378:79: error: ‘DC’ has no member named ‘sel’
    systray->win = XCreateSimpleWindow(dpy, root, x, selmon->by, w, bh, 0, 0, dc.sel[ColBG]);
    ^
    dwm.c:2382:28: error: ‘DC’ has no member named ‘norm’
    wa.background_pixel = dc.norm[ColBG];
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...

  • Adding patches to an offline .WIM file

    Hi guys
    I am trying to update my companies Windows Server 2008 R2 x64 install.wim file with some patches I have downloaded from the Microsoft Catalogue.
    So a little background, I have taken the install.wim file from the sources directory of our server image which is saved on our deployment server, and I have copied it locally to my PC. I am a domain admin and I am also a local admin on my PC.
    I downloaded the latest ADK and ran the Deployment and Imaging Tools Environment tool as an administrator. I mounted the install.wim file to a mount folder with no problems.
    When I try to inject a single patch using this command line DISM /image: <mount_directory> /Add-Package /Packagepath: <msu_file> (obviously replacing mount_directory and msu_file with the correct paths) I get the below error.
    Image version: 6.17600.16385Processing 1 of 1 – adding package…………(package path details ect)
    99.5%
    An error occurred applying the Unattend.xml file from the .msu package.
    For more information, review the log file.
    Error: 0x80070005
    Error: 5
    Access is denied.
    Edited copy of the log file:
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed processing package changes - CDISMPackageManager::ProcessChanges(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to process package changes in unattend file. - CPackageManagerUnattendHandler::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to Apply the unattend. - CDISMPackageManager::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Unattend Manager: PID=9880 d:\w7rtm\base\ntsetup\opktools\dism\providers\unattendprovider\dll\unattendmanager.cpp:400 - CUnattendManager::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed applying the unattend file from the MSU package. - CMsuPackage::ApplyMsuUnattend(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to apply the MSU unattend file to the image. - CMsuPackage::Install(hr:0x80070005)
    When looking at the Security tab under properties of the mount folder I can see that the account CREATOR OWNER has no permissions. When I tried to give it full control I get access is denied on the following folders:
    C:\mount\program files
    C:\mount\program files (x86)
    C:\mount\windows
    If I check the permissions for my account name, it does have full control of the mount folder.
    I am wondering if anyone can help me get rid of this error?
    Or even better still as I have 63 patches to inject into this .wim file, can anyone suggest an easier way, as I wouldn’t like to sit here all day doing one patch at a time?
    Thanks in advance.
    Dave

    Hi David Smale,
    From your current description and base on my experience, it usually caused by the WIM file corrupt, please try to copy a new Wim file then try to patch again, if it not work,
    please post your DISM error log, you can refer the following KB to get the DISM log.
    This error also can caused by the Mcafee AV.
    DISM.exe generates an Error: 5 or Access Denied when VSE 8.8 Access Protection is enabled
    https://kc.mcafee.com/corporate/index?page=content&id=KB76867&locale=zh_CN
    I’m glad to be of help to you!
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control
    these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the
    use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. ***
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Adding patch jar file while starting Managed Server through Node Manager

    Hi,
    I am using Weblogic Express 10.0 on Linux env, Jrockit JVM.
    I have a patch jar file from BEA, I added it to Weblogic start script, when I start the Managed server by using startManagedWeblogic.sh script, I can see that patch jar file is added to classpath when I grep for Java process.(ps -ef | grep -i java).
    But when I start the Managed server through NodeManager and grep for java process, I dont see the patch jar file added to classpath of Managed server process which is started.
    Can someone let me know if I have to add the patch jar file somewhere else along with Weblogic start script if starting Managed server through Node Manager?
    Weblogic Consultant

    Thanks for your response.
    I found another way to do this.
    Edit nodemanager.properties file and set StartScriptEnabled=true (By default it is false), and then restart the Node Manager process.
    Enabling this setting to true will enable the NodeManager process to use startManagedWeblogic.sh script while starting the managed server, all the added jar files, memory settings will be taken from start script of Weblogic
    Weblogic Consultant

  • [SOLVED-ish] Useless gaps patch on dwm failing to build

    Trying to apply uselessgaps unsuccessfully.
    Here's the error at compilation:
    ┌─[parazyd][archbox][~/dwm]
    └──╼ makepkg -efi
    ==> Making package: dwm 6.0-2 (Wed Feb 18 00:45:08 CET 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing $srcdir/ tree
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -I /usr/include/freetype2 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama -lXft -lfontconfig
    CC = cc
    CC dwm.c
    In file included from dwm.c:336:0:
    config.h:52:2: warning: initialization makes integer from pointer without a cast
    { "", tile }, /* first entry is default */
    ^
    config.h:52:2: warning: (near initialization for ‘layouts[0].addgaps’)
    config.h:52:2: error: initializer element is not computable at load time
    config.h:52:2: error: (near initialization for ‘layouts[0].addgaps’)
    config.h:53:2: warning: initialization makes integer from pointer without a cast
    { "", NULL }, /* no layout function means floating behavior */
    ^
    config.h:53:2: warning: (near initialization for ‘layouts[1].addgaps’)
    config.h:54:2: warning: initialization makes integer from pointer without a cast
    { "", monocle },
    ^
    config.h:54:2: warning: (near initialization for ‘layouts[2].addgaps’)
    config.h:54:2: error: initializer element is not computable at load time
    config.h:54:2: error: (near initialization for ‘layouts[2].addgaps’)
    config.h:55:2: warning: initialization makes integer from pointer without a cast
    { "", spiral },
    ^
    config.h:55:2: warning: (near initialization for ‘layouts[3].addgaps’)
    config.h:55:2: error: initializer element is not computable at load time
    config.h:55:2: error: (near initialization for ‘layouts[3].addgaps’)
    config.h:56:2: warning: initialization makes integer from pointer without a cast
    { "", dwindle },
    ^
    config.h:56:2: warning: (near initialization for ‘layouts[4].addgaps’)
    config.h:56:2: error: initializer element is not computable at load time
    config.h:56:2: error: (near initialization for ‘layouts[4].addgaps’)
    config.h:57:2: warning: initialization makes integer from pointer without a cast
    { "", bstack },
    ^
    config.h:57:2: warning: (near initialization for ‘layouts[5].addgaps’)
    config.h:57:2: error: initializer element is not computable at load time
    config.h:57:2: error: (near initialization for ‘layouts[5].addgaps’)
    In file included from dwm.c:336:0:
    config.h:75:1: warning: initialization from incompatible pointer type
    static const char *scratchpadcmd[] = { termcmd, "-title", scratchpadname, "-geometry", "160x40", NULL };
    ^
    config.h:75:1: warning: (near initialization for ‘scratchpadcmd[0]’)
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    And here are dwm.c and config.h I want this to work with:
    https://raw.githubusercontent.com/paraz … ster/dwm.c
    https://raw.githubusercontent.com/paraz … r/config.h
    Any ideas on making this work?
    Last edited by parazyd (2015-02-19 06:01:15)

    jasonwryan wrote:
    The scratchpad error is pretty evident from your config.h; the others look like the uselessgaps patch needs updating...
    This, however, isn't a support thread as such.
    It's the uselessgaps I'm trying to fix. Do I just open a new thread?

  • [SOLVED] Applying bottom stack patch to dwm

    I have finally moved to a tiling window manager and am finding it equal parts rewarding and frustrating. I'm using dwm-5.6.1-1.
    I would like to apply the bottom stack patch but, after having read the instructions on the dwm site I get the following error:
    can't find file to patch at input line 37
    Perhaps you used the wrong -p or --strip option?
    I used -p0 as the patch page states: http://dwm.suckless.org/patches/bottom_stack
    I have also looked at these couple of posts to try and work it out, but the advice seems to conflict:
    http://bbs.archlinux.org/viewtopic.php?id=78263
    http://bbs.archlinux.org/viewtopic.php?id=61499
    Is there a definitive way to apply the patch, or should I just skulk back to a simpler WM?
    /edit
    OK: so after some experimentation, it works... The updated dwm patch page and the second post solved it.
    Last edited by jasonwryan (2009-09-09 00:11:28)

    axion419 wrote:
    sorry to sound dense, I am at work and not at teh dwm pc at home.  After I patch, do I just stick this in
    '+    { "TTT",      bstack },'
    Yes, that line, exactly.

  • [Solved] nmaster patch for DWM

    Hello all!
    I was using a very stock version of DWM. Now I want to get my hands dirty and customize it more.
    I downloaded the nmaster.c patch off of the official dwm website. I then made the changes to the config.h as directed by the website. I then placed the nmaster.c file in the same directory as the other dwm files. However, I try to compile it with makepkg -i --skipinteg and I get this:
    ==> Making package: dwm 5.8.2-2 (Wed Aug 11 18:12:03 CDT 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found dwm-5.8.2.tar.gz
    -> Found config.h
    -> Found dwm.desktop
    ==> WARNING: Skipping integrity checks.
    ==> Extracting Sources...
    -> Extracting dwm-5.8.2.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -g -std=c99 -pedantic -Wall -O0 -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8.2" -DXINERAMA
    LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -g -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:279:0:
    config.h:17:21: fatal error: nmaster.c: No such file or directory
    compilation terminated.
    make: *** [dwm.o] Error 1
    Aborting...
    What am I doing wrong?

    Wow, I put it in the wrong directory... 1 folder too high
    Here's my config.h http://pastebin.com/6K1wMTZz
    When I try to compile now, I get this error:
    In file included from config.h:17:0,
    from dwm.c:279:
    nmaster.c: In function 'incnmaster':
    nmaster.c:23:2: error: too few arguments to function 'arrange'
    dwm.c:157:13: note: declared here
    nmaster.c: In function 'setnmaster':
    nmaster.c:31:2: error: too few arguments to function 'arrange'
    dwm.c:157:13: note: declared here
    make: *** [dwm.o] Error 1

  • Expdp has errors after adding patches set?

    Hi there,
    After adding Oracle patches set and upgrade the database from 10.2.01 to 10.2.0.3, we got the following errors:
    UDE-00008: operation generated ORACLE error 31626
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2747
    ORA-39086: cannot retrieve job information
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.KUPV$FT_INT", line 1489
    ORA-12805: parallel query server died unexpectedly
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3712
    ORA-06512: at line 1
    Notes: expdp used to work in version 10.2.0.1.
    now it has errors above in version 10.2.0.3
    What should we do to fix it?
    Thanks,

    Check this metalink note:
    EXPDP CLIENT GETS UDE-00008 ORA-31626 ORA-39086
    Doc ID: NOTE:549781.1
    Despite of the error stack, expdp may be run successfully.
    Werner

  • Adding Patches

    We have some patches that is required in our environment (802.1x authentication). These patches are not in the "released" channels for Microsoft, so they do not show in either Windows Update or downloaded patches in ZPM.
    My question is, is there a specific format that bundles need to be in before adding them to ZPM? I found the documentation on how to add, but not how to formulate the bundle before adding.
    We are running ZENworks 11.3.2.

    I am curious about adding a patch remediation bundle/content manually. Do you have a reference for it?
    When we have needed to do this sort of thing we usually just create a manual bundle to copy down and launch the .exe or if it is an MSU file we copy the file down, launch WUSA and pass it the required parameters.

  • Error While adding patches

    Hi,
    i am trying to add an lppatch to my servers. but eventhough the initial showrev -p does not show the patch installed the patchadd command is failing with the following error.
    Checking installed patches...
    Verifying sufficient filesystem capacity (dry run method)...
    Installing patch packages...
    Pkgadd failed. See /var/tmp/109320-16.log.1415 for details
    Removing partially installed patch
    Checking installed patches...
    Patch 109320-16 was installed without backing up the original files.
    It cannot be backed out.
    Patchrm is terminating.
    Failed to remove partially installed patch.
    Patchadd is terminating.
    The showrev -p after this shows a few of the packages from the patch installed but not all
    Please provide a solution for this

    Issue Solved..
    This error was due to corrupted patches. Dunno how it happened.... Dowloaded a new set and it worked...
    Thanks anyway...

  • Adding patch to kernel

    Hi, someone can explane me how to add patch to kernel for a my own personal kernel?
    Thanks a lot,
    Riccardo

    Edit: k i'm compiling my kernel but i see some warning like this:
    arch/i386/kernel/apm.c: In function 'suspend':
    arch/i386/kernel/apm.c:1192: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
    arch/i386/kernel/apm.c:1227: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
    arch/i386/kernel/apm.c: In function 'check_events':
    arch/i386/kernel/apm.c:1340: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
    it's a problem?
    Last edited by Bola (2007-10-26 16:10:28)

  • [dwm] fibonacci patch doesn't work and DWM dual screen.

    How does dwm handle dual screen?
    (I am now an Awesome user, and i am thinking installing dwm. I love the spiral/dwindle layout in Awesome and I am trying to install the fibonacci patch in dwm(link). But i think it's failing. When i do makepkg, this is the last output before the error. Does anyone have any ideas?)
    Last edited by Vintendo (2008-07-21 17:09:05)

    Dwm has minimal support for dual screens.   AFAIK they are still working on the best way to support it.  If you must have dual screens the way awesome handles them, I'd suggest you use awesome for the time being.
    For the record I am a dwm user, but I'm using 4.7 because the code got cluttered when they started adding dual screen support.  Once it is implemented in a sensible way I'll upgrade.

  • DWM Hackers Unite! Share (or request) dwm patches.

    I'm not interested in getting yet another conversation about how people configuring their dwm or in having yet another thread full of screenshots. I'm starting this thread so people have a channel to share their dwm patches and hacks. Feel free to make requests or ask for help as well with your own endeavors as well.
    Here are mine:
    nbalanced
    Its a one or two line tweak of nmaster.c. Behaves saner, imho. It no longer rushes to fill the master area, behaving kinda like gaplessgrid until the nmaster "level" is reached. Probably not the best name, but meh. Both tile and bstack version are "corrected".
    nbalanced.c = http://github.com/simongmzlj/dwm/blob/m … balanced.c
    opacify
    A modified transparency patch. Requires xcompmgr to be running. I changed the transparency level to an int and added functions to allow runtime increasing/decreasing of transparency.
    opacify.c = http://github.com/simongmzlj/dwm/blob/master/opacity.c
    opacify.diff = http://github.com/simongmzlj/dwm/blob/m … acity.diff
    cycle
    This one is a product of collaboration between me and some other archers. Adds keybinding to add a way to move left and right through tags with the ability to pull the focused window with you. Like ctrl+alt or ctrl+alt+shift left and right in gnome.
    cycle.c = http://github.com/simongmzlj/dwm/blob/master/cycle.c
    tagmon
    The only patch completely of my doing. Changes how dwm manages multiple monitors. Unless explicitly dragged across, this patch causes dwm to reapply the rules set for the window on the new monitor.
    tagmon.diff = http://github.com/simongmzlj/dwm/blob/m … agmon.diff
    gaps
    This version of the patch, while still adding gaps on monocle - thats my preference - adds gaps around windows. Does not add a double width gap between adjacent windows.
    gaps.diff = http://github.com/simongmzlj/dwm/blob/master/gaps.diff
    Last edited by simongmzlj (2010-03-10 18:29:30)

    erno wrote:anyone got nbalanced or nmaster working with pertag?
    The issue is that the pertag patch moves the Monitor struct to just after the #include "config.h" line:
    typedef struct Monitor Monitor;
    typedef struct Client Client;
    struct Client {
    <snip>
    /* configuration, allows nested code to access above variables */
    #include "config.h"
    struct Monitor {
    char ltsymbol[16];
    float mfact;
    int num;
    int by; /* bar geometry */
    int mx, my, mw, mh; /* screen size */
    int wx, wy, ww, wh; /* window area */
    unsigned int seltags;
    unsigned int sellt;
    unsigned int tagset[2];
    Bool showbar;
    Bool topbar;
    Client *clients;
    Client *sel;
    Client *stack;
    Monitor *next;
    Window barwin;
    const Layout *lt[2];
    int curtag;
    int prevtag;
    const Layout *lts[LENGTH(tags) + 1];
    double mfacts[LENGTH(tags) + 1];
    Bool showbars[LENGTH(tags) + 1];
    It does this because the monitor structure now requires access the number of tags to function. This now precludes the ability of any code included in the config.h to use the Monitor struct as they see it as declared but undefined. My current solution is to split out a tags.h header with just the tags declared in them. Then this can be done like this
    #include "tags.h"
    struct Monitor {
    char ltsymbol[16];
    float mfact;
    int num;
    int by; /* bar geometry */
    int mx, my, mw, mh; /* screen size */
    int wx, wy, ww, wh; /* window area */
    unsigned int seltags;
    unsigned int sellt;
    unsigned int tagset[2];
    Bool showbar;
    Bool topbar;
    Client *clients;
    Client *sel;
    Client *stack;
    Monitor *next;
    Window barwin;
    const Layout *lt[2];
    int curtag;
    int prevtag;
    const Layout *lts[LENGTH(tags) + 1];
    double mfacts[LENGTH(tags) + 1];
    Bool showbars[LENGTH(tags) + 1];
    /* configuration, allows nested code to access above variables */
    #include "config.h"
    and it all works. I'll post a version later tonight that allocates the length at runtime to avoid this circular dependency of files.
    EDIT: Hows this? http://github.com/simongmzlj/dwm/blob/m … ertag.diff. I'm not sure if I should bother freeing those arrays seeing that they're constantly in use. Please test, if its okay I'll make pushing this one to the dwm website a priority as the on site one is broken.
    Last edited by simongmzlj (2010-03-12 18:46:04)

Maybe you are looking for

  • Why Can't I see or access my external hard drive anymore using finder

    I have a MacBook using Lion 10.7.5 and I use a Seagate 1 TByte external hard drive to store large photo and video files so that these won't take up space on my system hard drive. I also use the drive to share files with friends, colleagues and family

  • Error -17501 flxCVIadp.​dll when starting CVI full featured user interface on Windows 7

    We see the following error dialog when we launch the CVI full-featured user interface (TestExec.exe): "Error: Unable to load test environment adapter 'flxCVIadp.dll'. Run setup to re-install or remove this adapter. Could not connect to TSAutoMgr.exe

  • Ayuda con adobe photoshop cs 3 extend se me cierra.

    Hola a tod@s. Os escribo por lo siguiente. Tengo un powerbookg4 1,67mhz procesador ram 2 gb hd 80 gb sistema opearativo mac os x 10 .5.2 leopard. Tengo instalado adobe web premium cs 3 . Mi problema biene con adobe photoshop cs3 extend me mide que se

  • Hi8 video to mac

    I'm a new switcher, and have got loads of analogue home video of friends etc I would like to put onto my mac & burn DVDs of. How can I do it? Thanks in advance! Mazda

  • Rename file in file adapter after processing

    Hi All, My requirement is, i need to rename the file in receiver file adapter after the file is written to the folder. and this file should have a counter attached to its name. For eg. If i had a file created with name Material, i want to change it t