You are not logged in.

#1 2015-11-14 17:43:45

Damianjb
Member
From: Rosario
Registered: 2014-12-18
Posts: 3

[SOLVED] DWM 6.1 - statuscolor patch and config.h changes

I`m installing dwm 6.1 from ABS.
When i try to patch it after a clean install with

cd src/dwm6.1
patch -p1 < statuscolor6.1.diff

It rejects everything.

I`ve tried manually replacing the - lines with the + ones but there are some inconsistencies in the patch like

-			drw_setscheme(drw, &scheme[SchemeNorm]);
+			drw_setscheme(drw, &scheme[0]);
 			drw_text(drw, x, 0, w, bh, NULL, 0);

While my dwm.c is

drw_setscheme(drw, &scheme[SchemeNorm]);
drw_rect(drw, x, 0, w, bh, 1, 0, 1);

I have previously patched 6.0 with no problem.

I have two questions:
1 - Will I have to wait for a new patch or am I doing something wrong?
2 - While using DWM 6.0 I usually made changes to the config.h at the root of the dir, but now it only take changes when I modify the config.h in src/dwm6.1 after running makepkg -efi. Did someone experienced something similar?

Last edited by Damianjb (2015-11-15 14:23:18)


"To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour."

Offline

#2 2015-11-14 17:51:53

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

Re: [SOLVED] DWM 6.1 - statuscolor patch and config.h changes

You'll have to wait until someone updates the patch: there have been significant changes to the codebase over the last several months.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-14 17:54:48

Damianjb
Member
From: Rosario
Registered: 2014-12-18
Posts: 3

Re: [SOLVED] DWM 6.1 - statuscolor patch and config.h changes

Thank you Jason.
Any comments about the changes made to the config.h? They are only being applied if I change the config.h at src/dwm6.1

Last edited by Damianjb (2015-11-14 17:55:32)


"To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour."

Offline

#4 2015-11-14 22:39:43

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

Re: [SOLVED] DWM 6.1 - statuscolor patch and config.h changes

man PKGBUILD wrote:

The prepare() function is skipped when source extraction is skipped.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-11-15 14:23:00

Damianjb
Member
From: Rosario
Registered: 2014-12-18
Posts: 3

Re: [SOLVED] DWM 6.1 - statuscolor patch and config.h changes

man PKGBUILD wrote:
The prepare() function is skipped when source extraction is skipped.

That's correct.
Thank you for your time.


"To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour."

Offline

Board footer

Powered by FluxBB