You are not logged in.

#1 2010-08-11 23:06:39

rednano12
Member
Registered: 2009-10-23
Posts: 56

[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?

Offline

#2 2010-08-11 23:09:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] nmaster patch for DWM

rednano12 wrote:

I then placed the nmaster.c file in the same directory as the other dwm files.

Did you place it in dwm/src/dwm-5.8.2/ ? Because it looks like it is not there...

If you did, it might help to post your config.h.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-08-11 23:15:57

rednano12
Member
Registered: 2009-10-23
Posts: 56

Re: [Solved] nmaster patch for DWM

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

Offline

#4 2010-08-11 23:22:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] nmaster patch for DWM

I'd need to look into further, but it looks like nmaster was a patch for 5.6 and you are, presumably, running 5.8.2

You could try with the newer nmaster-sym - a few of the 5.7.2 patches apply to 5.8 with no issues...

# edit typo


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-08-11 23:24:05

rednano12
Member
Registered: 2009-10-23
Posts: 56

Re: [Solved] nmaster patch for DWM

Alright, will do.

It compiled, but if I pick either of the new layouts, dwm crashes.

EDIT:

This is what happens when a newbie doesn't think. I forgot to modify two crucial lines in my config.h and had a key conflict. I apologize. It works now.

Last edited by rednano12 (2010-08-11 23:53:14)

Offline

Board footer

Powered by FluxBB