You are not logged in.

#1 2009-08-18 02:10:50

axion419
Member
Registered: 2007-04-12
Posts: 185

How to Apply Bottom Stack Patch to DWM?

I feel sorry for posting this, I had this same issue a December of Last Year (Old Thread - http://bbs.archlinux.org/viewtopic.php?id=61499 ), and here I am with the same problem again.  I am using dwm 5.6.1 and I am trying to apply the 5.6.1 bstack.diff  file from suckless.org.  I tried including the patch in the PKGBUILD and recompiling with makepkg -efi per the dwm wiki.  I dont get any errors.. I just dont end up with the bstack applied either.  Any clues as to what I am doing wrong?

# $Id: PKGBUILD 417 2009-07-29 10:28:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>

pkgname=dwm
pkgver=5.6.1
pkgrel=1
pkgdesc="A dynamic window manager for X"
url="http://dwm.suckless.org"
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  dwm-5.6.1-bstack.diff)
md5sums=()

build() {
  cd $srcdir/$pkgname-$pkgver
  cp $srcdir/config.h config.h
  
  patch -p0 -i /home/justin/dwm/dwm-5.6.1-bstack.diff

  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
}

This is what makepkg -efi gets me.

[justin@justin-beast dwm]$ makepkg -efi
==> Making package: dwm 5.6.1-1 x86_64 (Mon Aug 17 22:09:22 EDT 2009)
==> 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
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.6.1" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC       = cc
CC dwm.c
CC -o dwm
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="5.6.1" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
CC       = cc
installing executable file to /home/justin/dwm/pkg/usr/bin
installing manual page to /home/justin/dwm/pkg/usr/share/man/man1
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping debugging symbols from binaries and libraries...
  -> Generating .PKGINFO file...
==> Creating package...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: dwm 5.6.1-1 x86_64 (Mon Aug 17 22:09:24 EDT 2009)
==> 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                                 [#########################] 100%
[justin@justin-beast dwm]$

Thanks you even looking.
The Patch - http://dwm.suckless.org/patches/bottom_stack

Offline

#2 2009-08-18 07:58:56

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: How to Apply Bottom Stack Patch to DWM?

The patch does only patch config.def.h. If you look at the bottom of the patch file, there's one tiny little new line in config.def.h with a "+" in front of it - just add that to your own customized config.h and you should be able to use the layout.

Offline

#3 2009-08-18 15:12:54

axion419
Member
Registered: 2007-04-12
Posts: 185

Re: How to Apply Bottom Stack Patch to DWM?

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 },'

Offline

#4 2009-08-18 22:35:28

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: How to Apply Bottom Stack Patch to DWM?

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.

Offline

Board footer

Powered by FluxBB